[-] BO : Attributes can now be deleted in Catalogue : Attributes and Groups
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11768 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -717,8 +717,9 @@ class AdminControllerCore extends Controller
|
||||
$this->_errors = array_unique($this->_errors);
|
||||
if (count($this->_errors) > 0)
|
||||
return;
|
||||
|
||||
return $object;
|
||||
if (isset($object))
|
||||
return $object;
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -320,9 +320,9 @@ class AttributeCore extends ObjectModel
|
||||
|
||||
// when delete, you must use $use_last_attribute
|
||||
if ($use_last_attribute)
|
||||
$sql .= 'AND `id_attribute` != '.(int)$this->id;
|
||||
$sql .= ' AND `id_attribute` != '.(int)$this->id;
|
||||
|
||||
$sql .= 'ORDER BY `position`';
|
||||
$sql .= ' ORDER BY `position`';
|
||||
|
||||
$result = Db::getInstance()->executeS($sql);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user