From: Bernd Bleßmann Date: Tue, 17 Nov 2020 13:19:46 +0000 (+0100) Subject: Zeiterfassung: Sortierung und Ordnung für Typen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~342 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=09140f2919bfa20145d6d366d0501cc9b41c08d7;p=kivitendo-erp.git Zeiterfassung: Sortierung und Ordnung für Typen --- 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;