From ad97dcb6d19e5614df187fab4bbec485dc799451 Mon Sep 17 00:00:00 2001 From: "Martin Helmling martin.helmling@octosoft.eu" Date: Tue, 2 Aug 2016 15:09:47 +0200 Subject: [PATCH] BUG-FIX: Rose kann nur sort_by order_by wird stillschweigend ignoriert Weitere Fixes? --- SL/DB/Manager/CsvImportReport.pm | 2 +- SL/PriceSource/Pricegroup.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/DB/Manager/CsvImportReport.pm b/SL/DB/Manager/CsvImportReport.pm index 0a8fe2a28..f5ce9b92a 100644 --- a/SL/DB/Manager/CsvImportReport.pm +++ b/SL/DB/Manager/CsvImportReport.pm @@ -23,7 +23,7 @@ sub cleanup { # get reports for the active session that aren't the latest $objects = $self->get_all( query => [ session_id => $::auth->get_session_id, ], - order_by => [ 'id' ], + sort_by => [ 'id' ], ); # skip the last one diff --git a/SL/PriceSource/Pricegroup.pm b/SL/PriceSource/Pricegroup.pm index 20b49c284..532b1fffa 100644 --- a/SL/PriceSource/Pricegroup.pm +++ b/SL/PriceSource/Pricegroup.pm @@ -23,7 +23,7 @@ sub available_prices { my $prices = SL::DB::Manager::Price->get_all( query => [ parts_id => $item->parts_id, price => { gt => 0 } ], with_objects => 'pricegroup', - order_by => 'pricegroup.id', + sort_by => 'pricegroup.id', ); return () unless @$prices; -- 2.20.1