Auftrags-Controller: kein all_projects mehr nötig, da Projekt-Picker
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 6 Aug 2018 14:54:04 +0000 (16:54 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 10 Aug 2018 15:15:34 +0000 (17:15 +0200)
SL/Controller/Order.pm

index fd9aa72..8e0d9ad 100644 (file)
@@ -1423,9 +1423,6 @@ sub _pre_render {
   $self->{all_salesmen}             = SL::DB::Manager::Employee->get_all(where => [ or => [ id => $self->order->salesman_id,
                                                                                             deleted => 0 ] ],
                                                                          sort_by => 'name');
-  $self->{all_projects}             = SL::DB::Manager::Project->get_all(where => [ or => [ id => $self->order->globalproject_id,
-                                                                                           active => 1 ] ],
-                                                                        sort_by => 'projectnumber');
   $self->{all_payment_terms}        = SL::DB::Manager::PaymentTerm->get_all_sorted(where => [ or => [ id => $self->order->payment_id,
                                                                                                       obsolete => 0 ] ]);
   $self->{all_delivery_terms}       = SL::DB::Manager::DeliveryTerm->get_all_sorted();