From a802f849aade64f81ce9e2b2d4b6cc760e856ad9 Mon Sep 17 00:00:00 2001 From: ulferts Date: Mon, 27 Jan 2020 14:37:49 +0100 Subject: [PATCH] prevent enumeration appearing multiple times --- app/views/enumerations/index.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/enumerations/index.html.erb b/app/views/enumerations/index.html.erb index 171a372ee5..09b495271e 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| %>

<%= l(klass::OptionName) %>

<%= cell ::Enumerations::TableCell, klass.shared %> <% end %>