Project

General

Profile

Actions

Defect #33724

closed

Selected gantt columns are not displayed with MS Edge Legacy

Added by Yuichi HARADA over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Gantt
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

#27672 makes it possible to select the display columns for the Gantt.
However, if you use MS Edge Legacy (old version), you can select columns, but only the default columns (Status, Priority, Assignee, Updated) are displayed and other selected columns (e.g. Spent time) are not displayed.

The following patch resolves this issue.

diff --git a/app/views/queries/_columns.html.erb b/app/views/queries/_columns.html.erb
index c5d14190e..18443de57 100644
--- a/app/views/queries/_columns.html.erb
+++ b/app/views/queries/_columns.html.erb
@@ -36,7 +36,7 @@
 <%= javascript_tag do %>
 $(document).ready(function(){
   $('.query-columns').closest('form').submit(function(){
-    $('#<%= selected_tag_id %> option').prop('selected', true);
+    $('#<%= selected_tag_id %> option:not(:disabled)').prop('selected', true);
   });
 });
 <% end %>

Related issues

Related to Redmine - Feature #27672: Show selected columns in gantt chartClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF