[-] BO : status image was not saved #PSCFV-3654

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16882 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-17 12:42:29 +00:00
parent ba3a4325bb
commit 2e78d28ec6
2 changed files with 9 additions and 8 deletions
@@ -36,16 +36,21 @@ class AdminStatusesControllerCore extends AdminController
$this->colorOnBackground = false;
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
$this->context = Context::getContext();
$this->imageType = 'gif';
$this->fieldImageSettings = array(
'name' => 'icon',
'dir' => 'os'
);
parent::__construct();
}
public function init()
{
if (Tools::isSubmit('addorder_return_state'))
$this->display = 'add';
if (Tools::isSubmit('updateorder_return_state'))
$this->display = 'edit';
parent::init();
}
@@ -54,11 +59,6 @@ class AdminStatusesControllerCore extends AdminController
*/
protected function initOrderStatutsList()
{
$this->imageType = 'gif';
$this->fieldImageSettings = array(
'name' => 'icon',
'dir' => 'os'
);
$this->addRowAction('edit');
$this->addRowAction('delete');