// fix email field in list display in AdminCustomers
This commit is contained in:
@@ -81,7 +81,6 @@ class AdminCustomersControllerCore extends AdminController
|
|||||||
'email' => array(
|
'email' => array(
|
||||||
'title' => $this->l('E-mail address'),
|
'title' => $this->l('E-mail address'),
|
||||||
'width' => 120,
|
'width' => 120,
|
||||||
'maxlength' => 19
|
|
||||||
),
|
),
|
||||||
'age' => array(
|
'age' => array(
|
||||||
'title' => $this->l('Age'),
|
'title' => $this->l('Age'),
|
||||||
@@ -634,7 +633,7 @@ class AdminCustomersControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->_errors[] = Tools::displayError('An error occurred while loading object.').'
|
$this->_errors[] = Tools::displayError('An error occurred while loading object.').'
|
||||||
<b>'.$this->table.'</b> '.Tools::displayError('(cannot load object)');
|
<b>'.$this->table.'</b> '.Tools::displayError('(cannot load object)');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -649,7 +648,7 @@ class AdminCustomersControllerCore extends AdminController
|
|||||||
$shop = new Shop((int)$object->id_shop);
|
$shop = new Shop((int)$object->id_shop);
|
||||||
$object->id_group_shop = (int)$shop->id_group_shop;
|
$object->id_group_shop = (int)$shop->id_group_shop;
|
||||||
if (!$object->add())
|
if (!$object->add())
|
||||||
$this->_errors[] = Tools::displayError('An error occurred while creating object.').'
|
$this->_errors[] = Tools::displayError('An error occurred while creating object.').'
|
||||||
<b>'.$this->table.' ('.Db::getInstance()->getMsgError().')</b>';
|
<b>'.$this->table.' ('.Db::getInstance()->getMsgError().')</b>';
|
||||||
else if (($_POST[$this->identifier] = $object->id /* voluntary */) &&
|
else if (($_POST[$this->identifier] = $object->id /* voluntary */) &&
|
||||||
$this->postImage($object->id) && !count($this->_errors) &&
|
$this->postImage($object->id) && !count($this->_errors) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user