https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-10-01T23:56:10ZRedmineRedmine - Defect #6250: Clearing gantt does not display gantt with default filter settingshttps://www.redmine.org/issues/6250?journal_id=209192010-10-01T23:56:10ZMischa The Evil
<ul><li><strong>Assignee</strong> set to <i>Eric Davis</i></li></ul><p>The error reported was:</p>
<pre>
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]
</pre>
<p>Quick patch to fix the issue:</p>
<pre><code class="diff syntaxhl"><span class="gh">Index: app/views/gantts/show.html.erb
===================================================================
</span><span class="gd">--- app/views/gantts/show.html.erb (revision 4101)
</span><span class="gi">+++ app/views/gantts/show.html.erb (working copy)
</span><span class="p">@@ -31,6 +31,7 @@</span>
<%= link_to_remote l(:button_clear),
{ :url => { :set_filter => (@query.new_record? ? 1 : nil) },
:update => "content",
<span class="gi">+ :method => :put,
</span> }, :class => 'icon icon-reload' if @query.new_record? %>
</p>
<% end %>
</code></pre>
<p>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?</p> Redmine - Defect #6250: Clearing gantt does not display gantt with default filter settingshttps://www.redmine.org/issues/6250?journal_id=209202010-10-02T00:34:37ZMischa The Evil
<ul></ul><p>I spoke too soon... With the above mentioned patch applied I now am being redirected to the <em>global</em> gantt whenever I click the "Clear"-link from <strong>within</strong> a <em>projects</em> gantt.</p> Redmine - Defect #6250: Clearing gantt does not display gantt with default filter settingshttps://www.redmine.org/issues/6250?journal_id=209212010-10-02T00:43:44ZMischa The Evil
<ul></ul><p>Nevermind, this issue was already fixed in the trunk (<a class="changeset" title="Fixes broken filter clearing links on gantt and calendar (#6473)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4176">r4176</a>) for issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: New gantt broken after clearing issue filters (Closed)" href="https://www.redmine.org/issues/6473">#6473</a>.</p> Redmine - Defect #6250: Clearing gantt does not display gantt with default filter settingshttps://www.redmine.org/issues/6250?journal_id=209222010-10-02T00:44:33ZMischa The Evil
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> deleted (<del><i>Eric Davis</i></del>)</li><li><strong>Resolution</strong> set to <i>Duplicate</i></li></ul><p>Closed as a dup of <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: New gantt broken after clearing issue filters (Closed)" href="https://www.redmine.org/issues/6473">#6473</a>.</p>