Jump to content

HelperForm : select lang=>true selected not set


Recommended Posts

La valeur retournée

Mon tableau dans tpl_vars => fields_value et bonne mais n'est pas selected à l'affichage du formulaire (édition entrée existante)

array(
	'type' => 'select',
	'label' => $this->l('Category'),
	'desc' => $this->l('Select a category'),
	'name' => 'id_category',
	'required' => true,
	'lang' => true,
	'options' => array(
		'query' => $cat_options,
		'id' => 'id_category',
		'name' => 'name'
	)
),

// tableau retourné :
$fields['id_category'][$lang['id_lang']] = $id;

Je sèche un peu :/

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...