From 5ebc2e5e91b60a9606257b902cd5648fd9232cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Sun, 29 Sep 2013 14:43:14 +0200 Subject: [PATCH] [-] BO : Fix #PSCFV-10520 --- classes/Attribute.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Attribute.php b/classes/Attribute.php index 93391bc6c..3f694958d 100644 --- a/classes/Attribute.php +++ b/classes/Attribute.php @@ -139,7 +139,7 @@ class AttributeCore extends ObjectModel ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = '.(int)$id_lang.') '.Shop::addSqlAssociation('attribute_group', 'ag').' '.Shop::addSqlAssociation('attribute', 'a').' - '.($not_null ? 'WHERE a.`id_attribute` IS NOT NULL AND al.`name` IS NOT NULL' : '').' + '.($not_null ? 'WHERE a.`id_attribute` IS NOT NULL AND al.`name` IS NOT NULL AND agl.`id_attribute_group` IS NOT NULL' : '').' ORDER BY agl.`name` ASC, a.`position` ASC '); } @@ -343,4 +343,4 @@ class AttributeCore extends ObjectModel return (is_numeric($position)) ? $position : -1; } -} \ No newline at end of file +}