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

[chore] added human name to storage filters

Eric Schubert5ab217bb3349
diff --git a/modules/storages/app/models/queries/storages/work_packages/filter/storages_filter_mixin.rb b/modules/storages/app/models/queries/storages/work_packages/filter/storages_filter_mixin.rb
index 6b332e8c481..5eb00fa4443 100644
--- a/modules/storages/app/models/queries/storages/work_packages/filter/storages_filter_mixin.rb
+++ b/modules/storages/app/models/queries/storages/work_packages/filter/storages_filter_mixin.rb
@@ -31,6 +31,10 @@ module Queries::Storages::WorkPackages::Filter::StoragesFilterMixin
:list
end
+ def human_name
+ ::Storages::Storage.human_attribute_name(name)
+ end
+
# Returns the model class for which the filter will apply.
#
# Used in the where and joins clauses.