Jump to content

Recommended Posts

Hello,

In my module I create a select

					array(
						'type' => 'select', 
						'label' => $this->getTranslator()->trans('ico',array(),'Admin.Global'),
						'name' => 'ico',
						'required' => true,
						'desc' => $this->getTranslator()->trans('Test.',array(),'Admin.Global'),
							'options' => array(
								'query' => array(
									array( 'id' => 1,'name' => 'icon-music'),
									array( 'id' => 2,'name' => 'icon-lemon'),
									array( 'id' => 3,'name' => 'icon-mail'),
									array( 'id' => 4,'name' => 'icon-mail-alt'),
									array( 'id' => 5,'name' => 'icon-heart'), 
								),
								'id' => 'id',
								'name' => 'name', 
							),
					), 

But I can not save the choice in the database.

When I transform my select into normal input, there is no problem, it saves the value I write in the database

  

                    array(
                        'type' => 'text',
                        'label' => $this->getTranslator()->trans('Icone', array(), 'Admin.Global'),
                        'name' => 'ico',
                        'autoload_rte' => true,
                        'lang' => true,
                    ),

Please help me

Edited by Nocebo (see edit history)

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More