From d79f486d76e7bca69d9dfd6720b9bfedc0c87409 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 28 Dec 2020 18:43:48 +0100 Subject: [PATCH] =?utf8?q?Zeiterfassung:=20Sortierung=20und=20Ordnung=20f?= =?utf8?q?=C3=BCr=20Artikel?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Manager/TimeRecordingArticle.pm | 7 +++++++ SL/DB/TimeRecordingArticle.pm | 3 +++ 2 files changed, 10 insertions(+) diff --git a/SL/DB/Manager/TimeRecordingArticle.pm b/SL/DB/Manager/TimeRecordingArticle.pm index 9f4b9e864..9048b6188 100644 --- a/SL/DB/Manager/TimeRecordingArticle.pm +++ b/SL/DB/Manager/TimeRecordingArticle.pm @@ -7,8 +7,15 @@ use strict; use parent qw(SL::DB::Helper::Manager); +use SL::DB::Helper::Sorted; + sub object_class { 'SL::DB::TimeRecordingArticle' } __PACKAGE__->make_manager_methods; +sub _sort_spec { + return ( default => [ 'position', 1 ], + columns => { SIMPLE => 'ALL' }); +} + 1; diff --git a/SL/DB/TimeRecordingArticle.pm b/SL/DB/TimeRecordingArticle.pm index 9887ce357..63483786c 100644 --- a/SL/DB/TimeRecordingArticle.pm +++ b/SL/DB/TimeRecordingArticle.pm @@ -8,6 +8,9 @@ use strict; use SL::DB::MetaSetup::TimeRecordingArticle; use SL::DB::Manager::TimeRecordingArticle; +use SL::DB::Helper::ActsAsList; + __PACKAGE__->meta->initialize; + 1; -- 2.20.1