]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/reports_controller.rb
Merge branch 'master' into feature/add-communities-page
[rails.git] / app / controllers / reports_controller.rb
index a04fab5b9ab36c87a19a442c07b277cc59c56250..6d05e6a57b7f24042ffcb781e8952cbeb7f52bd5 100644 (file)
@@ -28,7 +28,8 @@ class ReportsController < ApplicationController
 
       redirect_to helpers.reportable_url(@report.issue.reportable), :notice => t(".successful_report")
     else
-      redirect_to new_report_path(:reportable_type => @report.issue.reportable_type, :reportable_id => @report.issue.reportable_id), :notice => t(".provide_details")
+      flash.now[:notice] = t(".provide_details")
+      render :action => "new"
     end
   end