https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292019-03-20T02:48:21ZRedmineRedmine - Defect #31063: Can't uncheck Gantt chart options of custom querieshttps://www.redmine.org/issues/31063?journal_id=908282019-03-20T02:48:21ZMizuki ISHIKAWA
<ul></ul><p>I think that the cause is that the parameter is nil when the check box is false.<br />The solution is to make the parameter '0' if the checkbox is false by the hidden tag.</p>
<pre><code class="diff syntaxhl"><span class="gh">diff --git a/app/views/queries/_form.html.erb b/app/views/queries/_form.html.erb
index f424e103cd..7f79906efb 100644
</span><span class="gd">--- a/app/views/queries/_form.html.erb
</span><span class="gi">+++ b/app/views/queries/_form.html.erb
</span><span class="p">@@ -40,6 +40,8 @@</span>
<% else %>
<fieldset id="options"><legend><%= l(:label_options) %></legend>
<p><label><%= l(:button_show) %></label>
<span class="gi">+ <%= hidden_field_tag 'query[draw_relations]', '0' %>
+ <%= hidden_field_tag 'query[draw_progress_line]', '0' %>
</span> <label class="inline"><%= check_box_tag "query[draw_relations]", "1", @query.draw_relations %> <%= l(:label_related_issues) %></label>
<label class="inline"><%= check_box_tag "query[draw_progress_line]", "1", @query.draw_progress_line %> <%= l(:label_gantt_progress_line) %></label>
</p>
</code></pre> Redmine - Defect #31063: Can't uncheck Gantt chart options of custom querieshttps://www.redmine.org/issues/31063?journal_id=908692019-03-21T12:31:15ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>Candidate for next minor release</i></li></ul> Redmine - Defect #31063: Can't uncheck Gantt chart options of custom querieshttps://www.redmine.org/issues/31063?journal_id=909282019-03-25T14:18:08ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/29701">Defect #29701</a>: Custom queries are broken by updating with nil parameter values</i> added</li></ul> Redmine - Defect #31063: Can't uncheck Gantt chart options of custom querieshttps://www.redmine.org/issues/31063?journal_id=909302019-03-25T14:18:45ZGo MAEDA
<ul><li><strong>Target version</strong> changed from <i>Candidate for next minor release</i> to <i>4.0.3</i></li></ul><p>Setting the target version to 4.0.3.</p> Redmine - Defect #31063: Can't uncheck Gantt chart options of custom querieshttps://www.redmine.org/issues/31063?journal_id=910042019-03-30T06:19:45ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>Can't change Ganttchart options of custom query to false</i> to <i>Can't uncheck Gantt chart options of custom queries</i></li><li><strong>Category</strong> set to <i>Gantt</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul> Redmine - Defect #31063: Can't uncheck Gantt chart options of custom querieshttps://www.redmine.org/issues/31063?journal_id=910052019-03-30T06:19:52ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Committed, thanks.</p> Redmine - Defect #31063: Can't uncheck Gantt chart options of custom querieshttps://www.redmine.org/issues/31063?journal_id=910092019-03-30T07:16:18ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>