Skip to content

Commit

Permalink
[webui] Don't redirect after creating a submit request.
Browse files Browse the repository at this point in the history
But show a flash note instead.
  • Loading branch information
saschpe committed Mar 15, 2012
1 parent 59a1a85 commit 46f644d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webui/app/controllers/package_controller.rb
Expand Up @@ -216,7 +216,8 @@ def submit_request
end

Rails.cache.delete "requests_new"
redirect_to(:controller => "request", :action => "show", :id => req.value(:id))
flash[:note] = "Created <a href='#{url_for(:action => 'show', :id => req.value('id'))}'>submit request #{req.value('id')}</a> to <a href='#{url_for(:controller => 'project', :action => 'show', :project => params[:targetproject])}'>#{params[:targetproject]}</a>"
redirect_to(:action => 'show', :project => params[:project], :package => params[:package])
end

def service_parameter
Expand Down

0 comments on commit 46f644d

Please sign in to comment.