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

prevent enumeration appearing multiple times

ulfertsa802f849aade
diff --git a/app/views/enumerations/index.html.erb b/app/views/enumerations/index.html.erb
index 171a372ee5e..09b495271e5 100644
--- a/app/views/enumerations/index.html.erb
+++ b/app/views/enumerations/index.html.erb
@@ -26,9 +26,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See docs/COPYRIGHT.rdoc for more details.
++#%>
-<% html_title l(:label_administration), l(:label_enumerations) %>
-<%= toolbar title: l(:label_enumerations) %>
-<% Enumeration.descendants.each do |klass| %>
+<% html_title t(:label_administration), t(:label_enumerations) %>
+<%= toolbar title: t(:label_enumerations) %>
+<% Enumeration.subclasses.each do |klass| %>
<h3 class="-no-border"><%= l(klass::OptionName) %></h3>
<%= cell ::Enumerations::TableCell, klass.shared %>
<% end %>