[-] BO : status image was not saved #PSCFV-3654
This commit is contained in:
@@ -450,7 +450,8 @@ abstract class ObjectModelCore
|
|||||||
$this->date_upd = date('Y-m-d H:i:s');
|
$this->date_upd = date('Y-m-d H:i:s');
|
||||||
|
|
||||||
// Database insertion
|
// Database insertion
|
||||||
unset($this->id);
|
if (isset($this->id))
|
||||||
|
unset($this->id);
|
||||||
if (!$result = ObjectModel::$db->insert($this->def['table'], $this->getFields(), $null_values))
|
if (!$result = ObjectModel::$db->insert($this->def['table'], $this->getFields(), $null_values))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
@@ -36,16 +36,21 @@ class AdminStatusesControllerCore extends AdminController
|
|||||||
$this->colorOnBackground = false;
|
$this->colorOnBackground = false;
|
||||||
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
|
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
|
||||||
$this->context = Context::getContext();
|
$this->context = Context::getContext();
|
||||||
|
$this->imageType = 'gif';
|
||||||
|
$this->fieldImageSettings = array(
|
||||||
|
'name' => 'icon',
|
||||||
|
'dir' => 'os'
|
||||||
|
);
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
if (Tools::isSubmit('addorder_return_state'))
|
if (Tools::isSubmit('addorder_return_state'))
|
||||||
$this->display = 'add';
|
$this->display = 'add';
|
||||||
if (Tools::isSubmit('updateorder_return_state'))
|
if (Tools::isSubmit('updateorder_return_state'))
|
||||||
$this->display = 'edit';
|
$this->display = 'edit';
|
||||||
|
|
||||||
parent::init();
|
parent::init();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,11 +59,6 @@ class AdminStatusesControllerCore extends AdminController
|
|||||||
*/
|
*/
|
||||||
protected function initOrderStatutsList()
|
protected function initOrderStatutsList()
|
||||||
{
|
{
|
||||||
$this->imageType = 'gif';
|
|
||||||
$this->fieldImageSettings = array(
|
|
||||||
'name' => 'icon',
|
|
||||||
'dir' => 'os'
|
|
||||||
);
|
|
||||||
$this->addRowAction('edit');
|
$this->addRowAction('edit');
|
||||||
$this->addRowAction('delete');
|
$this->addRowAction('delete');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user