From fc6a8e32312e79e924c4d46e0ac43a49b8a264e8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 19 Dec 2014 11:53:04 +0100 Subject: [PATCH] Einkaufs-/Verkaufsmasken: Projekt-Drop-Down-Boxen sortieren --- bin/mozilla/do.pl | 2 +- bin/mozilla/is.pl | 2 +- bin/mozilla/oe.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index 362447a7c..36e515486 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -283,7 +283,7 @@ sub form_header { @old_ids_cond, ]); - $::form->{ALL_PROJECTS} = SL::DB::Manager::Project->get_all(query => \@conditions); + $::form->{ALL_PROJECTS} = SL::DB::Manager::Project->get_all_sorted(query => \@conditions); $::form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all_sorted(query => [ or => [ id => $::form->{employee_id}, deleted => 0 ] ]); $::form->{ALL_SALESMEN} = SL::DB::Manager::Employee->get_all_sorted(query => [ or => [ id => $::form->{salesman_id}, deleted => 0 ] ]); $::form->{ALL_SHIPTO} = SL::DB::Manager::Shipto->get_all_sorted(query => [ diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index f7ef78d88..3ecc93054 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -318,7 +318,7 @@ sub form_header { @old_ids_cond, ]); - $TMPL_VAR{ALL_PROJECTS} = SL::DB::Manager::Project->get_all(query => \@conditions); + $TMPL_VAR{ALL_PROJECTS} = SL::DB::Manager::Project->get_all_sorted(query => \@conditions); $TMPL_VAR{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all_sorted(query => [ or => [ id => $::form->{employee_id}, deleted => 0 ] ]); $TMPL_VAR{ALL_SALESMEN} = SL::DB::Manager::Employee->get_all_sorted(query => [ or => [ id => $::form->{salesman_id}, deleted => 0 ] ]); $TMPL_VAR{ALL_SHIPTO} = SL::DB::Manager::Shipto->get_all_sorted(query => [ diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 860d722d4..4c640d3ac 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -375,7 +375,7 @@ sub form_header { @old_ids_cond, ]); - $TMPL_VAR{ALL_PROJECTS} = SL::DB::Manager::Project->get_all(query => \@conditions); + $TMPL_VAR{ALL_PROJECTS} = SL::DB::Manager::Project->get_all_sorted(query => \@conditions); # label subs my $employee_list_query_gen = sub { $::form->{$_[0]} ? [ or => [ id => $::form->{$_[0]}, deleted => 0 ] ] : [ deleted => 0 ] }; -- 2.20.1