Angebote/Aufträge: Abteilungen sortiert anzeigen
authorMoritz Bunkus <m.bunkus@linet.de>
Mon, 9 Nov 2020 12:27:19 +0000 (13:27 +0100)
committerMoritz Bunkus <m.bunkus@linet.de>
Mon, 9 Nov 2020 12:27:19 +0000 (13:27 +0100)
bin/mozilla/oe.pl

index 012914d..524afc4 100644 (file)
@@ -525,7 +525,7 @@ sub form_header {
                    "price_factors" => "ALL_PRICE_FACTORS");
   $form->{ALL_PAYMENTS} = SL::DB::Manager::PaymentTerm->get_all( where => [ or => [ obsolete => 0, id => $form->{payment_id} || undef ] ]);
 
-  $form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all;
+  $form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
 
   # Projects
   my @old_project_ids = uniq grep { $_ } map { $_ * 1 } ($form->{"globalproject_id"}, map { $form->{"project_id_$_"} } 1..$form->{"rowcount"});