From: Moritz Bunkus Date: Fri, 19 Dec 2014 10:53:04 +0000 (+0100) Subject: Einkaufs-/Verkaufsmasken: Projekt-Drop-Down-Boxen sortieren X-Git-Tag: release-3.2.0beta~113 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fc6a8e32312e79e924c4d46e0ac43a49b8a264e8;p=kivitendo-erp.git Einkaufs-/Verkaufsmasken: Projekt-Drop-Down-Boxen sortieren --- 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 ] };