From: Sven Schöling Date: Wed, 27 Jan 2016 14:14:39 +0000 (+0100) Subject: Letter: model sortierung benutzen X-Git-Tag: release-3.4.1~446 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=10d6fe63ec82e50322a1fe08902fde7a0c1efa4e;p=kivitendo-erp.git Letter: model sortierung benutzen --- diff --git a/SL/Controller/Letter.pm b/SL/Controller/Letter.pm index 90fd26b89..0f1a40f5f 100644 --- a/SL/Controller/Letter.pm +++ b/SL/Controller/Letter.pm @@ -542,13 +542,7 @@ sub init_models { SL::Controller::Helper::GetModels->new( controller => $self, model => 'Letter', - sorted => { - _default => { - by => 'letternumber', - dir => 1, - }, - %sort_columns, - }, + sorted => \%sort_columns, with_objects => [ 'contact', 'salesman', 'employee' ], ); }