##// END OF EJS Templates
Fixed: 404 when "Apply" clicked on activity page (#2251)....
Jean-Philippe Lang -
r2080:d3386a5af784
parent child
Show More
@@ -227,7 +227,7 class ProjectsController < ApplicationController
227 @date_to ||= Date.today + 1
227 @date_to ||= Date.today + 1
228 @date_from = @date_to - @days
228 @date_from = @date_to - @days
229 @with_subprojects = params[:with_subprojects].nil? ? Setting.display_subprojects_issues? : (params[:with_subprojects] == '1')
229 @with_subprojects = params[:with_subprojects].nil? ? Setting.display_subprojects_issues? : (params[:with_subprojects] == '1')
230 @author = (params[:user_id] ? User.active.find(params[:user_id]) : nil)
230 @author = (params[:user_id].blank? ? nil : User.active.find(params[:user_id]))
231
231
232 @activity = Redmine::Activity::Fetcher.new(User.current, :project => @project,
232 @activity = Redmine::Activity::Fetcher.new(User.current, :project => @project,
233 :with_subprojects => @with_subprojects,
233 :with_subprojects => @with_subprojects,
@@ -52,7 +52,7
52 <p><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label></p>
52 <p><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label></p>
53 <%= hidden_field_tag 'with_subprojects', 0 %>
53 <%= hidden_field_tag 'with_subprojects', 0 %>
54 <% end %>
54 <% end %>
55 <%= hidden_field_tag 'user_id', params[:user_id] %>
55 <%= hidden_field_tag('user_id', params[:user_id]) unless params[:user_id].blank? %>
56 <p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p>
56 <p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p>
57 <% end %>
57 <% end %>
58 <% end %>
58 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now