Data being overwritten in $form_state['storage'] due to array_smart_merge() when #multiple = TRUE
datacompboy - February 17, 2009 - 09:34
| Project: | AHAH helper |
| Version: | 6.x-2.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
When #multiple=true on select, $form_state['storage'] combines options array, instead of save currently selected items.

#1
Good catch! Damn. The code was so elegant, because of this it'll have to change quite radically. Patches are welcome :)
#2
#3
The data is right. It's just being overwritten.
#4
Then, the function to be replaced is array_smart_merge() by another one that works? I can try.
#5
Yes. Thanks in advance for your patch :)
#6
Looks like this is still an issue? When using a multi-page form...having to pass values via $form_state['storage'] causes same issue.
Is this something we are going to have to live with as a part of Drupal 6?