I have some views for a model with a mix of fields, two of these
fields are select boxes and other two of these fields are multiple
select boxes. The multiple ones are rendered with the selectTag html
helper method ($html->selectTag('Area/Area', $areas, $selectedAreas,
array('multiple' => 'multiple', 'class' => 'selectMultiple'), array(),
true)). All of them are not validated at all, you can select or not
the single selection ones, and you can select zero or any number of
options in the multiple ones.

The problem: IF some of the other fields have any validation (an email
field, for instance) and IF this field fails validation, when the add
or the edit view is re-rendered with the error messages, all
selections made at the multiple select boxes are lost, they come back
with no elements selected. The single selection boxes keep their
previously select values, but the multiple ones does not. And some
warnings shows up (4 times):

Notice: Undefined index: id in ...../cake/libs/controller/
controller.php on line 976

Any help on this will be greatly appreciated!
Thanks in advance,
Norman


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to