From 6fe302af5d1baa6db83d682ce50847214aca349c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 24 Jan 2019 15:24:34 +0100 Subject: [PATCH] =?utf8?q?Preisregeln:=20Pr=C3=A4zedenzbug=20bei=20Mengenr?= =?utf8?q?egel=20behoben?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Durch eine fehlende Klammerung konnten Mengenregeln zufällig nicht greifen. (cherry picked from commit f1cf2062a7df1877e931f5655afe899e0dacb649) --- SL/DB/Manager/PriceRuleItem.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Manager/PriceRuleItem.pm b/SL/DB/Manager/PriceRuleItem.pm index 28f4d6f51..ba3694c47 100644 --- a/SL/DB/Manager/PriceRuleItem.pm +++ b/SL/DB/Manager/PriceRuleItem.pm @@ -65,7 +65,7 @@ sub not_matching_sql_and_values { push @values, $value; } - push @tokens, "type = '$type' AND " . join ' OR ', map "($_)", @sub_tokens; + push @tokens, "type = '$type' AND (@{[ join(' OR ', map qq|($_)|, @sub_tokens) ]})"; } } -- 2.20.1