Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

remove query behaviour of clearing columns if they match default ones

ulfertsb009937e9a8d
diff --git a/app/models/query.rb b/app/models/query.rb
index a2ff72285c2..d72939dcb9c 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -289,11 +289,6 @@ class Query < ApplicationRecord
.compact_blank
.map(&:to_sym)
- # Set column_names to blank/nil if it is equal to the default columns
- if col_names.map(&:to_s) == Setting.work_package_list_default_columns
- col_names.clear
- end
-
write_attribute(:column_names, col_names)
end