[-] BO : Fix #PSTEST-1220 : now position update for attribute value is good && fix JavaScript error in admin-dnd.js
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14843 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -573,14 +573,17 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
||||
if (!Combination::isFeatureActive())
|
||||
return;
|
||||
|
||||
// If it's an attribute, load object Attribute()
|
||||
if (Tools::getValue('updateattribute') || Tools::isSubmit('deleteattribute') || Tools::isSubmit('submitAddattribute'))
|
||||
if (!Tools::getValue($this->identifier) && Tools::getValue('id_attribute') && !Tools::getValue('attributeOrderby'))
|
||||
{
|
||||
// Override var of Controller
|
||||
$this->table = 'attribute';
|
||||
$this->className = 'Attribute';
|
||||
$this->identifier = 'id_attribute';
|
||||
}
|
||||
|
||||
// If it's an attribute, load object Attribute()
|
||||
if (Tools::getValue('updateattribute') || Tools::isSubmit('deleteattribute') || Tools::isSubmit('submitAddattribute'))
|
||||
{
|
||||
if ($this->tabAccess['edit'] !== '1')
|
||||
$this->errors[] = Tools::displayError('You do not have permission to edit here.');
|
||||
else if (!$object = new Attribute((int)Tools::getValue($this->identifier)))
|
||||
|
||||
Reference in New Issue
Block a user