From 3dbf87592334accbbd66b0602b35ae882376eb09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 21 Jan 2013 15:42:58 +0100 Subject: [PATCH] [-] BO: description_short product field validation when the limit is changed #PSCFV-7383 --- classes/Product.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/classes/Product.php b/classes/Product.php index 6c96d218b..cd55ca53e 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -669,6 +669,15 @@ class ProductCore extends ObjectModel return parent::validateFieldsLang($die, $error_return); } + /** + * @see ObjectModel::validateField() + */ + public function validateField($field, $value, $id_lang = null) + { + $value = ($field == 'description_short' ? strip_tags($value) : $value); + return parent::validateField($field, $value, $id_lang); + } + public function toggleStatus() { //test if the product is active and if redirect_type is empty string and set default value to id_product_redirected & redirect_type