]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/reports_controller.rb
Merge remote-tracking branch 'upstream/pull/3647'
[rails.git] / app / controllers / reports_controller.rb
index a04fab5b9ab36c87a19a442c07b277cc59c56250..30cb9da7cc18c526ab9b93eabbb338cf72fbf2a8 100644 (file)
@@ -28,7 +28,8 @@ class ReportsController < ApplicationController
 
       redirect_to helpers.reportable_url(@report.issue.reportable), :notice => t(".successful_report")
     else
 
       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[:notice] = t(".provide_details")
+      render :action => "new"
     end
   end
 
     end
   end