From 09140f2919bfa20145d6d366d0501cc9b41c08d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Tue, 17 Nov 2020 14:19:46 +0100 Subject: [PATCH] =?utf8?q?Zeiterfassung:=20Sortierung=20und=20Ordnung=20f?= =?utf8?q?=C3=BCr=20Typen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Manager/TimeRecordingType.pm | 7 +++++++ SL/DB/TimeRecordingType.pm | 2 ++ 2 files changed, 9 insertions(+) diff --git a/SL/DB/Manager/TimeRecordingType.pm b/SL/DB/Manager/TimeRecordingType.pm index 9d7593ef0..e1e1b4ca5 100644 --- a/SL/DB/Manager/TimeRecordingType.pm +++ b/SL/DB/Manager/TimeRecordingType.pm @@ -7,8 +7,15 @@ use strict; use parent qw(SL::DB::Helper::Manager); +use SL::DB::Helper::Sorted; + sub object_class { 'SL::DB::TimeRecordingType' } __PACKAGE__->make_manager_methods; +sub _sort_spec { + return ( default => [ 'position', 1 ], + columns => { SIMPLE => 'ALL' }); +} + 1; diff --git a/SL/DB/TimeRecordingType.pm b/SL/DB/TimeRecordingType.pm index bc9d2c05c..06c1b5f2f 100644 --- a/SL/DB/TimeRecordingType.pm +++ b/SL/DB/TimeRecordingType.pm @@ -8,6 +8,8 @@ use strict; use SL::DB::MetaSetup::TimeRecordingType; use SL::DB::Manager::TimeRecordingType; +use SL::DB::Helper::ActsAsList; + __PACKAGE__->meta->initialize; 1; -- 2.20.1