Daniel Patilea Posted December 11, 2013 Share Posted December 11, 2013 Hello! I have an error, it looks like this: The field contains html characters: Here's how the field is defined and declared: <?phpClass Product extends ProductCore{public $optional_extras;public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null){self::$definition['fields']['optional_extras'] = array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64);parent::__construct($id_product, $full, $id_lang, $id_shop, $context);}} Can you help me please? Link to comment Share on other sites More sharing options...
Daniel Patilea Posted December 11, 2013 Author Share Posted December 11, 2013 Solved the problem with this code: self::$definition['fields']['optional_extras'] = array('type' => self::TYPE_HTML, 'validate' => 'isCleanHtml', 'size' => 64); Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 so you cahnged validate type from 'validate' => 'isGenericName' to 'validate' => 'isCleanHtml' ? and that's all? Link to comment Share on other sites More sharing options...
Recommended Posts