From 10d6fe63ec82e50322a1fe08902fde7a0c1efa4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 27 Jan 2016 15:14:39 +0100 Subject: [PATCH] Letter: model sortierung benutzen --- SL/Controller/Letter.pm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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' ], ); } -- 2.20.1