// fix bug "apply priority management" in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10596 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
f21b8defa1
commit
c4732a431a
1 file changed
+6
-4
@@ -127,10 +127,12 @@ class SpecificPriceCore extends ObjectModel
|
|||||||
|
|
||||||
if (!isset(self::$_cache_priorities[(int)$id_product]))
|
if (!isset(self::$_cache_priorities[(int)$id_product]))
|
||||||
{
|
{
|
||||||
self::$_cache_priorities[(int)$id_product] = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
|
self::$_cache_priorities[(int)$id_product] = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
|
||||||
SELECT `priority`
|
SELECT `priority`, `id_specific_price_priority`
|
||||||
FROM `'._DB_PREFIX_.'specific_price_priority`
|
FROM `'._DB_PREFIX_.'specific_price_priority`
|
||||||
WHERE `id_product` = '.(int)$id_product);
|
WHERE `id_product` = '.(int)$id_product.'
|
||||||
|
ORDER BY `id_specific_price_priority` DESC
|
||||||
|
');
|
||||||
}
|
}
|
||||||
|
|
||||||
$priority = self::$_cache_priorities[(int)$id_product];
|
$priority = self::$_cache_priorities[(int)$id_product];
|
||||||
|
|||||||
Reference in new issue
Block a user