Skip to content

Commit

Permalink
fix error msg logic when viewing report w/out selecting summary_report
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremiah Heller committed Mar 17, 2011
1 parent 4c71cf8 commit 4e4d0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/reports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def load_summary_report
@intensity_levels = IntensityLevel.all
@grant_activities = GrantActivity.all
rescue ActiveRecord::RecordNotFound
if params[:summary_report_id]
if params[:summary_report_id].present?
flash.now[:notice] = "The requested summary report could not be found."
else
flash.now[:notice] = "No summary report was selected - previewing standard report only with default start - end periods: #{@report.start_period.strftime("%b, %Y")} - #{@report.end_period.strftime("%b, %Y")}"
Expand Down

0 comments on commit 4e4d0b8

Please sign in to comment.