Commit 12e3d662 authored by rjbrown99's avatar rjbrown99 Committed by japerry

Issue #1451638 by Xen, rjbrown99: Rebuilding forms breaks in modal

parent 9f43efde
......@@ -196,7 +196,7 @@ function ctools_modal_form_wrapper($form_id, &$form_state) {
);
$output = ctools_build_form($form_id, $form_state);
if (!empty($form_state['ajax']) && empty($form_state['executed'])) {
if (!empty($form_state['ajax']) && (!$form_state['executed'] || $form_state['rebuild'])) {
return ctools_modal_form_render($form_state, $output);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment