[-] BO : fixed image settings form #PSCFV-5458
This commit is contained in:
@@ -115,7 +115,7 @@ class AdminImagesControllerCore extends AdminController
|
|||||||
'PS_PRODUCT_PICTURE_MAX_SIZE' => array(
|
'PS_PRODUCT_PICTURE_MAX_SIZE' => array(
|
||||||
'title' => $this->l('Maximum size of product pictures'),
|
'title' => $this->l('Maximum size of product pictures'),
|
||||||
'desc' => $this->l('The maximum size of pictures uploadable by customers (in Bytes)'),
|
'desc' => $this->l('The maximum size of pictures uploadable by customers (in Bytes)'),
|
||||||
'validation' => 'isUnsignedId',
|
'validation' => 'isUnsignedInt',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'cast' => 'intval',
|
'cast' => 'intval',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
@@ -125,7 +125,7 @@ class AdminImagesControllerCore extends AdminController
|
|||||||
'PS_PRODUCT_PICTURE_WIDTH' => array(
|
'PS_PRODUCT_PICTURE_WIDTH' => array(
|
||||||
'title' => $this->l('Product picture width'),
|
'title' => $this->l('Product picture width'),
|
||||||
'desc' => $this->l('The maximum width of pictures uploadable by customers'),
|
'desc' => $this->l('The maximum width of pictures uploadable by customers'),
|
||||||
'validation' => 'isUnsignedId',
|
'validation' => 'isUnsignedInt',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'cast' => 'intval',
|
'cast' => 'intval',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
@@ -135,7 +135,7 @@ class AdminImagesControllerCore extends AdminController
|
|||||||
'PS_PRODUCT_PICTURE_HEIGHT' => array(
|
'PS_PRODUCT_PICTURE_HEIGHT' => array(
|
||||||
'title' => $this->l('Product picture height'),
|
'title' => $this->l('Product picture height'),
|
||||||
'desc' => $this->l('The maximum height of pictures uploadable by customers'),
|
'desc' => $this->l('The maximum height of pictures uploadable by customers'),
|
||||||
'validation' => 'isUnsignedId',
|
'validation' => 'isUnsignedInt',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'cast' => 'intval',
|
'cast' => 'intval',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
@@ -369,14 +369,14 @@ class AdminImagesControllerCore extends AdminController
|
|||||||
|| !Configuration::updateValue('PS_PNG_QUALITY', Tools::getValue('PS_PNG_QUALITY')))
|
|| !Configuration::updateValue('PS_PNG_QUALITY', Tools::getValue('PS_PNG_QUALITY')))
|
||||||
$this->errors[] = Tools::displayError('Unknown error.');
|
$this->errors[] = Tools::displayError('Unknown error.');
|
||||||
else
|
else
|
||||||
Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getValue('token').'&conf=4');
|
return parent::postProcess();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->errors[] = Tools::displayError('You do not have permission to edit here.');
|
$this->errors[] = Tools::displayError('You do not have permission to edit here.');
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
parent::postProcess();
|
return parent::postProcess();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function printEntityActiveIcon($value, $object)
|
public static function printEntityActiveIcon($value, $object)
|
||||||
|
|||||||
Reference in New Issue
Block a user