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

Merge pull request #16717 from opf/task/57537-copy-specs-for-work-packages-ordering-by-custom-fields-to-projects

Ivan Kuchin93a1e683b9a1
diff --cc app/models/queries/projects/selects/default.rb
index 55945c4ace5,dcc20d02706..d3fd03def9b
--- a/app/models/queries/projects/selects/default.rb
+++ b/app/models/queries/projects/selects/default.rb
@@@ -27,10 -27,10 +27,10 @@@
# ++
class Queries::Projects::Selects::Default < Queries::Selects::Base
- KEYS = %i[status_explanation hierarchy name public description].freeze
+ KEYS = %i[id identifier status_explanation hierarchy name public description].freeze
def self.key
- Regexp.new(KEYS.join("|"))
+ /\A(#{Regexp.union(KEYS.map(&:to_s))})\z/
end
def self.all_available