Drupal modal form save data twice In my Drupal site I am using Webform module Modal forms (with ctools) module.

When I place file field (to get opportunity attach files) on the form, form save data twice. But when I delete file field, form work perfect, e.g. save data once. Maybe someone has already faced this problem. Any help will appreciate.

Image-1


  


Image-2
I found solution.
In the file 


  modal_forms.pages.inc


inside the function modal_forms_view_webform($js = NULL, $node) place $form_state['rebuild'] = TRUE; after $output = ctools_modal_form_wrapper('webform_client_form_' . $node-&gt;nid, $form_state);

Then modal form will save data only once.