]> wagnertech.de Git - kivitendo-erp.git/commitdiff
BUG-FIX: Rose kann nur sort_by
authorMartin Helmling martin.helmling@octosoft.eu <martin.helmling@octosoft.eu>
Tue, 2 Aug 2016 13:09:47 +0000 (15:09 +0200)
committerMartin Helmling martin.helmling@octosoft.eu <martin.helmling@octosoft.eu>
Tue, 2 Aug 2016 13:09:47 +0000 (15:09 +0200)
order_by wird stillschweigend ignoriert

Weitere Fixes?

SL/DB/Manager/CsvImportReport.pm
SL/PriceSource/Pricegroup.pm

index 0a8fe2a28c21c995c7a3d0c33d8fe6bd3e6ce37d..f5ce9b92a47d3e50e42935ccb523ea707d214ead 100644 (file)
@@ -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, ],
   # 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
   );
 
   # skip the last one
index 20b49c2848ffdb90d0b4a7e1049a69629023582c..532b1fffa3530d029a330e855e51635c09cfb08b 100644 (file)
@@ -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',
   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;
   );
 
   return () unless @$prices;