Part makemodels relationship nutzt sortorder
authorG. Richardson <information@kivitendo-premium.de>
Sun, 7 Aug 2016 21:08:45 +0000 (23:08 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Tue, 22 Nov 2016 13:42:49 +0000 (14:42 +0100)
SL/DB/Part.pm

index f95be9b..7fd35d8 100644 (file)
@@ -32,6 +32,7 @@ __PACKAGE__->meta->add_relationships(
   makemodels     => {
     type         => 'one to many',
     class        => 'SL::DB::MakeModel',
+    manager_args => { sort_by => 'sortorder' },
     column_map   => { id => 'parts_id' },
   },
   translations   => {