Jump to content

Dropdown list show only one letter


Tje123

Recommended Posts

in my back office controller renderForm i have drop down list to load week days.but it showing only first letter of the day.

 

public function renderForm() {

$days=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];

    'input' => [

                    [
                      'type' => 'select',
                        'lang' => true,
                        'required' => true,
                        'label' => $this->l('WeekDay'),
                        'name' => 'weekday',
                        'options' => [
                          'query' => $days,

                        ],

                    ],
         ]
    }

Screenshot from 2017-11-01 11-36-54.png

Screenshot from 2017-11-01 11-38-14.png

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...