From 541676120a6d930b57d4bcb3193a096b70194c3e Mon Sep 17 00:00:00 2001 From: Andreas Rudin Date: Mon, 20 Apr 2020 13:16:34 +0200 Subject: [PATCH] Bei Sortimenten Sortimentsartikel nach 'position' sortieren Bisher wurde die Spalte 'position' in der Tabelle assortment_items ignoriert. --- SL/DB/Part.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index f1a71251e..e98b0c4d7 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -61,6 +61,7 @@ __PACKAGE__->meta->add_relationships( type => 'one to many', class => 'SL::DB::AssortmentItem', column_map => { id => 'assortment_id' }, + manager_args => { sort_by => 'position' }, }, history_entries => { type => 'one to many', -- 2.20.1