From: Martin Helmling martin.helmling@octosoft.eu Date: Tue, 2 Aug 2016 13:09:47 +0000 (+0200) Subject: BUG-FIX: Rose kann nur sort_by X-Git-Tag: release-3.5.4~2158 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ad97dcb6d19e5614df187fab4bbec485dc799451;p=kivitendo-erp.git BUG-FIX: Rose kann nur sort_by order_by wird stillschweigend ignoriert Weitere Fixes? --- 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;