From: Bernd Bleßmann Date: Mon, 28 Dec 2020 17:43:48 +0000 (+0100) Subject: Zeiterfassung: Sortierung und Ordnung für Artikel X-Git-Tag: kivitendo-mebil_0.1-0~9^2~321 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d79f486d76e7bca69d9dfd6720b9bfedc0c87409;p=kivitendo-erp.git Zeiterfassung: Sortierung und Ordnung für Artikel --- 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;