From ed3fba9a00cba76181181f55affedd2f4f565a6f Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Thu, 6 Dec 2018 11:19:03 +0100 Subject: [PATCH] fix EK, VK Preis --- process/Product_lib/process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/Product_lib/process.js b/process/Product_lib/process.js index 1f0aa5e226..52762bab20 100644 --- a/process/Product_lib/process.js +++ b/process/Product_lib/process.js @@ -42,7 +42,7 @@ ProductUtils.getCurrentProductPrice = function(pid, buySell) { var productPriceData = db.array(db.ROW, actualPriceCondition.buildSelect("select PRICE, CURRENCY from PRODUCTPRICE", "1 = 2", "order by VALID_FROM desc")); - if (productPriceData[0] != "") + if (productPriceData[0] && productPriceData[1]) return productPriceData[0] + " " + KeywordUtils.get("CURRENCY", productPriceData[1])[1]; else return ""; -- GitLab