Using a form that rebuilds doesn't work in a modal. Problem seems that ctools_modal_form_wrapper() only checks if the form has been executed.
Attached patch checks the rebuild flag to. Also I took the liberty of removing the empty() call, as form_state_defaults() in drupal_build_form ensures that executed is always set.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1451638-3.patch | 510 bytes | rjbrown99 |
| ctools-modal-rebuild.patch | 589 bytes | xen |
Comments
Comment #1
merlinofchaos commentedCommitted, pushed.
Comment #3
rjbrown99 commentedThis applies to 6.x as well, no? Here's a direct port of the above patch.
Comment #6
japerryFixed in D6.
Comment #9
xen commented