Skip to content

Commit

Permalink
v3.0.13
Browse files Browse the repository at this point in the history
Merge pull request #788 from TechforgoodCAST/develop
  • Loading branch information
suninthesky authored Nov 21, 2018
2 parents a77344f + cec2e3d commit a2b8a38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/reports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def index
private

def update_report_if_opportunities_changed!
return if @proposal.nil?
return if @proposal.nil? || @collection&.opportunities_last_updated_at.nil?
return if @proposal.updated_at > @collection.opportunities_last_updated_at

Assessment.analyse_and_update!(@collection.funds.active, @proposal)
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/migrate.rake
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace :migrate do
return puts ': no Proposals' unless proposals.any?

proposals.each do |proposal|
if funds.nil?
if funds.blank?
funds = Fund.joins(:themes).active.merge(proposal.themes).distinct
end

Expand Down

0 comments on commit a2b8a38

Please sign in to comment.