Commit 8424fc27 authored by theo lem's avatar theo lem
Browse files

Merge branch 'fix-84' into 'master'

Form_builder patch for 'unique' option

See merge request framasoft/framaforms!23
parents 9a4c8458 510e97d2
......@@ -656,6 +656,10 @@ function form_builder_field_configure_submit(&$form, &$form_state) {
$form_obj = Loader::instance()->fromCache($form_type, $form_id);
$element_obj = $form_obj->getElement($element_id);
// FIX : place the 'unique' value at the right place in order to allow it to
// be saved properly.
$form_state['values']['unique'] = $form_state['values']['extra']['unique'];
$element_obj->configurationSubmit($form, $form_state);
// Update the form builder cache.
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