]> source.dussan.org Git - redmine.git/commitdiff
Fix query columns selection in admin and my page (#39806).
authorMarius Balteanu <marius.balteanu@zitec.com>
Tue, 16 Jan 2024 16:35:00 +0000 (16:35 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Tue, 16 Jan 2024 16:35:00 +0000 (16:35 +0000)
Patch by Jens Krämer.

git-svn-id: https://svn.redmine.org/redmine/trunk@22606 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/my/blocks/_issues.erb
app/views/settings/_issues.html.erb
app/views/settings/_projects.html.erb

index d7cff39e623e526b02d1b371180a76290c34f5ca..2b65df34bc92b0128f86ae0bcb2b39f7483cacd6 100644 (file)
 
 <div id="<%= block %>-settings" style="display:none;">
   <%= form_tag(my_page_path, :remote => true) do %>
+    <div id="list-definition">
     <div class="box">
       <%= render_query_columns_selection(query, :name => "settings[#{block}][columns]") %>
     </div>
+    </div>
     <p>
       <%= submit_tag l(:button_save) %>
       <%= link_to_function l(:button_cancel), "$('##{block}-settings').toggle();" %>
index 7109e906f4f6b5fd2d2af5170992fcf69f1403a8..3dc7fe413892fa042f6e8fedb841e3e08ef7df5a 100644 (file)
 
 <fieldset class="box">
   <legend><%= l(:setting_issue_list_default_columns) %></legend>
+  <div id="list-definition">
+    <div>
   <%= render_query_columns_selection(
         IssueQuery.new(:column_names => Setting.issue_list_default_columns),
         :name => 'settings[issue_list_default_columns]') %>
+    </div>
+  </div>
 
   <p><%= setting_multiselect :issue_list_default_totals,
            IssueQuery.new(:totalable_names => Setting.issue_list_default_totals).available_totalable_columns.map {|c| [c.caption, c.name.to_s]},
index 018a6c4cb23c057d6551434e5c859f179092ac2d..634988e295b45105d5af30bae82b1897c0154e97 100644 (file)
       <%= content_tag('label', l(:"label_display_type_#{t}"), :for => "settings_project_list_display_type_#{t}", :class => "inline") %>
     <% end %>
   </p>
+  <div id="list-definition">
+    <div>
   <%= render_query_columns_selection(query,
         :name => 'settings[project_list_defaults][column_names]') %>
+    </div>
+  </div>
 
   <p>
     <label><%= l(:label_default_query) %></label>