I am puzzled by a new error.

 

I render a form with selects. No big deal there. The options to select are
pulled from the database and the one selected is correct if user selected it
previously.

 

But for some reason now the HTML:

<select id="Skill115" data-size="auto" data-field="115"
name="data[Skill][115]">

<option value="">None</option>

<option selected="selected" value="1">Less than 6 Months</option>

<option value="2">6 Months - 1 Year</option>

<option value="3">1 - 5 Years</option>

<option selected="selected" value="4">5 - 10 Years</option>

<option value="5">10+ Years</option>

</select>

 

You will notice there are 2 "selected"

 

DATABSE record:

Id, user_id, skill_id, area_id, year_id

'4', '523bc67c-b194-4e7e-8ba7-38ec29ee23f4', '115', '11', '1'


 

So as shown by the HTML, year_id selected is 1, database has the record of 1
for skill_id 115.

So where is <option selected="selected" value="4">5 - 10 Years</option>
getting its info from?

 

Has anyone seen anything like this?

Any ideas?

 

Thanks,

Dave

 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to