From 45bca9a1899a84a91ea535e6416dea89f1d58145 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Wed, 26 Dec 2012 10:07:36 +0100 Subject: [PATCH] [-] BO : fixed image settings form #PSCFV-5458 --- controllers/admin/AdminImagesController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/controllers/admin/AdminImagesController.php b/controllers/admin/AdminImagesController.php index e5851926d..9337f6787 100644 --- a/controllers/admin/AdminImagesController.php +++ b/controllers/admin/AdminImagesController.php @@ -115,7 +115,7 @@ class AdminImagesControllerCore extends AdminController 'PS_PRODUCT_PICTURE_MAX_SIZE' => array( 'title' => $this->l('Maximum size of product pictures'), 'desc' => $this->l('The maximum size of pictures uploadable by customers (in Bytes)'), - 'validation' => 'isUnsignedId', + 'validation' => 'isUnsignedInt', 'required' => true, 'cast' => 'intval', 'type' => 'text', @@ -125,7 +125,7 @@ class AdminImagesControllerCore extends AdminController 'PS_PRODUCT_PICTURE_WIDTH' => array( 'title' => $this->l('Product picture width'), 'desc' => $this->l('The maximum width of pictures uploadable by customers'), - 'validation' => 'isUnsignedId', + 'validation' => 'isUnsignedInt', 'required' => true, 'cast' => 'intval', 'type' => 'text', @@ -135,7 +135,7 @@ class AdminImagesControllerCore extends AdminController 'PS_PRODUCT_PICTURE_HEIGHT' => array( 'title' => $this->l('Product picture height'), 'desc' => $this->l('The maximum height of pictures uploadable by customers'), - 'validation' => 'isUnsignedId', + 'validation' => 'isUnsignedInt', 'required' => true, 'cast' => 'intval', 'type' => 'text', @@ -369,14 +369,14 @@ class AdminImagesControllerCore extends AdminController || !Configuration::updateValue('PS_PNG_QUALITY', Tools::getValue('PS_PNG_QUALITY'))) $this->errors[] = Tools::displayError('Unknown error.'); else - Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getValue('token').'&conf=4'); + return parent::postProcess(); } else $this->errors[] = Tools::displayError('You do not have permission to edit here.'); } else - parent::postProcess(); + return parent::postProcess(); } public static function printEntityActiveIcon($value, $object)