[-] BO : Fix #PSCFV-10520
This commit is contained in:
@@ -139,7 +139,7 @@ class AttributeCore extends ObjectModel
|
|||||||
ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = '.(int)$id_lang.')
|
ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = '.(int)$id_lang.')
|
||||||
'.Shop::addSqlAssociation('attribute_group', 'ag').'
|
'.Shop::addSqlAssociation('attribute_group', 'ag').'
|
||||||
'.Shop::addSqlAssociation('attribute', 'a').'
|
'.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
|
ORDER BY agl.`name` ASC, a.`position` ASC
|
||||||
');
|
');
|
||||||
}
|
}
|
||||||
@@ -343,4 +343,4 @@ class AttributeCore extends ObjectModel
|
|||||||
|
|
||||||
return (is_numeric($position)) ? $position : -1;
|
return (is_numeric($position)) ? $position : -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user