[-] CORE : fixed bug #PSCFV-3889
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17290 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
5c6f98a696
commit
4f5785f307
1 file changed
+3
-3
@@ -1181,12 +1181,12 @@ class CategoryCore extends ObjectModel
|
|||||||
*/
|
*/
|
||||||
public static function getLastPosition($id_category_parent, $id_shop)
|
public static function getLastPosition($id_category_parent, $id_shop)
|
||||||
{
|
{
|
||||||
return (Db::getInstance()->getValue('
|
return (int)(Db::getInstance()->getValue('
|
||||||
SELECT MAX(cs.`position`)+1
|
SELECT MAX(cs.`position`)
|
||||||
FROM `'._DB_PREFIX_.'category` c
|
FROM `'._DB_PREFIX_.'category` c
|
||||||
LEFT JOIN `'._DB_PREFIX_.'category_shop` cs
|
LEFT JOIN `'._DB_PREFIX_.'category_shop` cs
|
||||||
ON (c.`id_category` = cs.`id_category` AND cs.`id_shop` = '.(int)$id_shop.')
|
ON (c.`id_category` = cs.`id_category` AND cs.`id_shop` = '.(int)$id_shop.')
|
||||||
WHERE c.`id_parent` = '.(int)$id_category_parent));
|
WHERE c.`id_parent` = '.(int)$id_category_parent) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getUrlRewriteInformations($id_category)
|
public static function getUrlRewriteInformations($id_category)
|
||||||
|
|||||||
Reference in new issue
Block a user