Jump to content

[SOLVED] The "field_name" field is invalid.


Recommended Posts

Hello!

 

I have an error, it looks like this:

rU2zZCX.png

 

The field contains html characters:

6ISgpkW.png

 

Here's how the field is defined and declared: 

 

 

<?php
Class 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

×
×
  • Create New...