Project

General

Profile

« Previous | Next » 

Revision 1243

Redirect to issue page after creating a new issue

Previous behavior was to redirect to the issue list with a "successful
creation" message. This patch will redirect to the page for the
newly-created issue, still with the "successful creation" message.

This matches the behavior after editing an issue and also provides
instant feedback for the user to see if anything went wrong.

Closes #261 and uses the patch contained therein

View differences:

trunk/app/controllers/issues_controller.rb
142 142
        attach_files(@issue, params[:attachments])
143 143
        flash[:notice] = l(:notice_successful_create)
144 144
        Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('issue_added')
145
        redirect_to :controller => 'issues', :action => 'index', :project_id => @project
145
        redirect_to :controller => 'issues', :action => 'show', :id => @issue,  :project_id => @project
146 146
        return
147 147
      end		
148 148
    end	

Also available in: Unified diff