Skip to content

Commit

Permalink
[webui] Fix initial request display for projects/packages.
Browse files Browse the repository at this point in the history
The respective views used '@requests' for as the request list, this is
wrong, it's the users request list. Removing that default parameter
leads to the partial fetching the correct list via Ajax (like it would
do if the user selects a different filter). If one wants to initially
display requests, one would have to provide equal default parameters.

Also fixes bnc#719508
  • Loading branch information
saschpe committed Nov 11, 2011
1 parent aa1d27c commit 97e6563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/webui/app/views/package/requests.html.erb
Expand Up @@ -5,5 +5,5 @@

<h3><%= @pagetitle %></h3>

<%= render(:partial => 'shared/select_requests', :locals => { :requests => @requests, :project => @project.to_s, :package => @package}) %>
<%= render(:partial => 'shared/select_requests', :locals => { :project => @project.to_s, :package => @package}) %>

2 changes: 1 addition & 1 deletion src/webui/app/views/project/requests.html.erb
Expand Up @@ -5,5 +5,5 @@

<h3><%= @pagetitle %></h3>

<%= render :partial => 'shared/select_requests', :locals => { :requests => @requests, :project => @project.to_s } %>
<%= render :partial => 'shared/select_requests', :locals => { :project => @project.to_s } %>

0 comments on commit 97e6563

Please sign in to comment.