Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[webui] Catch missing parameter 'id' in RequestController#show

  • Loading branch information...
commit 4475b34713abf1478c6789c8fa73caeaf354446c 1 parent 66bf7fd
@saschpe saschpe authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/webui/app/controllers/request_controller.rb
View
3  src/webui/app/controllers/request_controller.rb
@@ -54,8 +54,9 @@ def modify_review
end
def show
+ redirect_back_or_to :controller => 'home', :action => 'requests' and return if !params[:id]
begin
- @req = find_cached(BsRequest, params[:id]) if params[:id]
+ @req = find_cached(BsRequest, params[:id])
rescue ActiveXML::Transport::Error => e
flash[:error] = "Can't find request #{params[:id]}"
redirect_back_or_to :controller => "home", :action => "requests" and return
Please sign in to comment.
Something went wrong with that request. Please try again.