PriceRule Manager - selectall_ids -> selectcol_array_query
authorG. Richardson <grichardson@kivitec.de>
Tue, 19 Feb 2019 12:09:21 +0000 (13:09 +0100)
committerG. Richardson <grichardson@kivitec.de>
Sat, 10 Aug 2019 14:42:00 +0000 (16:42 +0200)
SL/DB/Manager/PriceRule.pm

index d5b5489..974011a 100644 (file)
@@ -73,8 +73,7 @@ sub get_all_matching {
   my ($self, %params) = @_;
 
   my ($query, @values) = $self->get_matching_filter(%params);
-  my @ids = selectall_ids($::form, $::form->get_standard_dbh, $query, 0, @values);
-
+  my @ids = selectcol_array_query($::form, SL::DB->client->dbh, $query, @values);
   return [] unless @ids;
 
   $self->get_all(query => [ id => \@ids ]);