From: Jan Büren Date: Fri, 1 Apr 2022 06:04:12 +0000 (+0200) Subject: schon benutzte ungültige Sprachen anzeigen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~69 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e6d132a190fc0777413850d82a807babf944bba0;p=kivitendo-erp.git schon benutzte ungültige Sprachen anzeigen --- diff --git a/SL/Controller/DeliveryOrder.pm b/SL/Controller/DeliveryOrder.pm index 564364afa..1bb641ceb 100644 --- a/SL/Controller/DeliveryOrder.pm +++ b/SL/Controller/DeliveryOrder.pm @@ -1736,7 +1736,7 @@ sub pre_render { $self->{all_taxzones} = SL::DB::Manager::TaxZone->get_all_sorted(); $self->{all_currencies} = SL::DB::Manager::Currency->get_all_sorted(); $self->{all_departments} = SL::DB::Manager::Department->get_all_sorted(); - $self->{all_languages} = SL::DB::Manager::Language->get_all_sorted( query => [ obsolete => 0 ] ); + $self->{all_languages} = SL::DB::Manager::Language->get_all_sorted( query => [ or => [ obsolete => 0, id => $self->order->language_id ] ] ); $self->{all_employees} = SL::DB::Manager::Employee->get_all(where => [ or => [ id => $self->order->employee_id, deleted => 0 ] ], sort_by => 'name'); diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 5959c4313..4829790e5 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1958,7 +1958,7 @@ sub pre_render { $self->{all_taxzones} = SL::DB::Manager::TaxZone->get_all_sorted(); $self->{all_currencies} = SL::DB::Manager::Currency->get_all_sorted(); $self->{all_departments} = SL::DB::Manager::Department->get_all_sorted(); - $self->{all_languages} = SL::DB::Manager::Language->get_all_sorted( query => [ obsolete => 0 ] ); + $self->{all_languages} = SL::DB::Manager::Language->get_all_sorted( query => [ or => [ obsolete => 0, id => $self->order->language_id ] ] ); $self->{all_employees} = SL::DB::Manager::Employee->get_all(where => [ or => [ id => $self->order->employee_id, deleted => 0 ] ], sort_by => 'name');