From 3aebd42ff1502843ac7a3034d9e17dae2b76427e Mon Sep 17 00:00:00 2001 From: Daniel Martin Date: Mon, 6 Nov 2017 09:59:16 +0100 Subject: [PATCH] Fix tipo 2, mpn en producto (#36) --- dfTools.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dfTools.class.php b/dfTools.class.php index 652452c..3e262aa 100644 --- a/dfTools.class.php +++ b/dfTools.class.php @@ -437,8 +437,8 @@ public static function getAvailableProductsForLanguage($id_lang, $id_shop, $limi m.name AS manufacturer, - pa.__MPN__ AS mpn, - pa.ean13 AS ean13, + IF(isnull(pa.id_product), p.__MPN__ , pa.__MPN__) AS mpn, + IF(isnull(pa.id_product), p.ean13 , pa.ean13) AS ean13, pl.name, pl.description,