Use named routes in controllers.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10983 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -80,7 +80,7 @@ class JournalsController < ApplicationController
|
||||
@journal.destroy if @journal.details.empty? && @journal.notes.blank?
|
||||
call_hook(:controller_journals_edit_post, { :journal => @journal, :params => params})
|
||||
respond_to do |format|
|
||||
format.html { redirect_to :controller => 'issues', :action => 'show', :id => @journal.journalized_id }
|
||||
format.html { redirect_to issue_path(@journal.journalized) }
|
||||
format.js { render :action => 'update' }
|
||||
end
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user