Defect #6250

Clearing gantt does not display gantt with default filter settings

Added by Tom Rochette about 7 years ago. Updated about 7 years ago.

Status:ClosedStart date:2010-08-31
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:UI
Target version:-
Resolution:Duplicate Affected version:

Description

r4050

If you go to the gantt tab of one of your projects containing the gantt module and use the clear button (to reset filters), the gantt chart is removed as well as the filter form.

This results in a blank page (see attachment).

before.png (38.4 KB) Tom Rochette, 2010-08-31 04:05

after.png (20.5 KB) Tom Rochette, 2010-08-31 04:05


Related issues

Duplicates Redmine - Defect #6473: New gantt broken after clearing issue filters Closed 2010-09-23

History

#1 Updated by Mischa The Evil about 7 years ago

  • Assignee set to Eric Davis

The error reported was:

Processing IssuesController#gantt (for xxx.xxx.xxx.xxx at 2010-10-02 00:00:00) [POST]
  Parameters: {"set_filter"=>"1", "action"=>"gantt", "authenticity_token"=>"XXX", "controller"=>"issues"}
Filter chain halted as [:authorize] rendered_or_redirected.
Completed in 14ms (View: 2, DB: 2) | 403 Forbidden [http://redmine.host.tld/issues/gantt?set_filter=1]

Quick patch to fix the issue:

Index: app/views/gantts/show.html.erb
===================================================================
--- app/views/gantts/show.html.erb      (revision 4101)
+++ app/views/gantts/show.html.erb      (working copy)
@@ -31,6 +31,7 @@
 <%= link_to_remote l(:button_clear),
                    { :url => { :set_filter => (@query.new_record? ? 1 : nil) },
                      :update => "content",
+                     :method => :put,
                    }, :class => 'icon icon-reload' if @query.new_record? %>
 </p>
 <% end %>

I noticed that the apply button works as expected without the specific param. Is it due to the use of the form-builder or have I missed something?

#2 Updated by Mischa The Evil about 7 years ago

I spoke too soon... With the above mentioned patch applied I now am being redirected to the global gantt whenever I click the "Clear"-link from within a projects gantt.

#3 Updated by Mischa The Evil about 7 years ago

Nevermind, this issue was already fixed in the trunk (r4176) for issue #6473.

#4 Updated by Mischa The Evil about 7 years ago

  • Status changed from New to Closed
  • Assignee deleted (Eric Davis)
  • Resolution set to Duplicate

Closed as a dup of #6473.

Also available in: Atom PDF