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

do not show time entry activities in enumerations

Klaus Zanders62fd2ccc6ead
diff --git a/app/controllers/enumerations_controller.rb b/app/controllers/enumerations_controller.rb
index c1b2be5ec7d..e466bebf1f4 100644
--- a/app/controllers/enumerations_controller.rb
+++ b/app/controllers/enumerations_controller.rb
@@ -32,6 +32,8 @@ class EnumerationsController < ApplicationController
before_action :require_admin
before_action :find_enumeration, only: %i[edit update move destroy]
+ helper_method :enumeration_classes
+
include CustomFieldsHelper
def index; end
@@ -102,6 +104,10 @@ class EnumerationsController < ApplicationController
protected
+ def enumeration_classes
+ [DocumentCategory, IssuePriority]
+ end
+
def show_local_breadcrumb
false
end
diff --git a/app/views/enumerations/index.html.erb b/app/views/enumerations/index.html.erb
index d9e9e910333..e0a0ca4c3f5 100644
--- a/app/views/enumerations/index.html.erb
+++ b/app/views/enumerations/index.html.erb
@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<% Enumeration.subclasses.each do |klass| %>
+<% enumeration_classes.each do |klass| %>
<h3 class="-no-border"><%= t(klass::OptionName) %></h3>
<%= render(::Enumerations::TableComponent.new(rows: klass.shared, enumeration: klass)) %>
<% end %>