From 8fce025436cffd1f28b710e258069135a59fd4fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 11 Sep 2014 17:05:50 +0200 Subject: [PATCH] PriceRule: Fehler vermeiden wenn noch keine Preisregeln angelegt sind. --- SL/DB/Manager/PriceRule.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SL/DB/Manager/PriceRule.pm b/SL/DB/Manager/PriceRule.pm index 09e588b88..a3eeaff99 100644 --- a/SL/DB/Manager/PriceRule.pm +++ b/SL/DB/Manager/PriceRule.pm @@ -50,6 +50,8 @@ sub get_all_matching { my ($query, @values) = $self->get_matching_filter(%params); my @ids = selectall_ids($::form, $::form->get_standard_dbh, $query, 0, @values); + return [] unless @ids; + $self->get_all(query => [ id => \@ids ]); } -- 2.20.1