From fb84ef1587044f423b948c60f66fd08b5d4e12a6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 28 Jan 2015 14:18:47 +0100 Subject: [PATCH] =?utf8?q?Pflichtenhefte:=20Konfiguration=20f=C3=BCr=20ben?= =?utf8?q?utzerdefinierte=20Variablen=20anlegen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/CustomVariableConfig.pm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/SL/Controller/CustomVariableConfig.pm b/SL/Controller/CustomVariableConfig.pm index ed7e844c1..456fe7176 100644 --- a/SL/Controller/CustomVariableConfig.pm +++ b/SL/Controller/CustomVariableConfig.pm @@ -158,12 +158,13 @@ sub init_translated_types { sub init_modules { my ($self, %params) = @_; - return [ - { module => 'CT', description => t8('Customers and vendors') }, - { module => 'Contacts', description => t8('Contact persons') }, - { module => 'IC', description => t8('Parts, services and assemblies') }, - { module => 'Projects', description => t8('Projects') }, - ]; + return [ sort { $a->{description}->translated cmp $b->{description}->translated } ( + { module => 'CT', description => t8('Customers and vendors') }, + { module => 'Contacts', description => t8('Contact persons') }, + { module => 'IC', description => t8('Parts, services and assemblies') }, + { module => 'Projects', description => t8('Projects') }, + { module => 'RequirementSpecs', description => t8('Requirement Specs') }, + )]; } sub create_or_update { -- 2.20.1