Closed (fixed)
Project:
Form Builder
Version:
7.x-1.x-dev
Component:
Webform Itegration
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2014 at 13:21 UTC
Updated:
24 Mar 2015 at 06:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
enhelmy commentedComment #2
nod_This was broken by #2117593: Select with empty (pre-built) option list should not be shown
Comment #3
nod_Dirty webform patch that essentially revert the webform commit. Now formbuilder works as expected.
Comment #4
markus_petrux commentedWork for me as well. But this is a patch for Webform, should it be fixed there? ...or maybe there is something that can be done from Form Builder? ..ie. why is FB adding an empty list when drag'n'drop is being used?
Comment #5
markus_petrux commentedGot a way to fix the issue within Form Builder itself.
Comment #6
markus_petrux commentedFixed patch format.
Comment #7
genjohnson commentedmarkus_petrux, thanks for creating the patch.
I wasn't able to apply the patch in #6 - I got the error "form_builder/modules/webform/form_builder_webform.components.inc: No such file or directory". It looks like the patch in #6 was created from outside the form_builder directory.
I've re-rolled the patch from the form_builder directory, so the only difference is the path of the file to modify.
Comment #8
Cale Bierman commentedI've tested the above patch and it seems to be working as expected.
Comment #9
marco van bemmel commentedPatch #7 works like a charm :-)
Thank you all!
Comment #10
torotil commentedI think this patch is a workaround for a deeper lying problem: The defaults are rendered using webform and the resulting renderable arrays are messed with.
So I'd suggest to pass the additional items and default value as
$merge_extrasparameter_form_builder_webform()instead. Then the component's render function should give us some reasonable output.This issue has another aspect though: We really should display some placeholder if the webform component doesn't yield any output.
Comment #11
mikran commentedThis looks major bug to me
Comment #12
cigotete commentedI agree with to change to Major the status (please note that the Form Builder 7.x-1.6 includes a security update).
Comment #13
thamasPatch #7 fixes the UI so form builder is usable again. Cool, thanks!
However every new component you add makes a strict warning in Drupal log like this:
Comment #14
drupalninja99 commentedThe strict error I think was just due to trying to call too many functions on one line. I assigned drupal_get_form to a $form variable on a separate line and that fixed the watchdog error for me.
Comment #15
torotil commentedSo let's take this one step at a time. Here is a patch that transforms the default select-boxes to use the extra-array instead of messing with the renderables.
Comment #16
torotil commented@drupalninja99 I've already commited the fix for the strict warning into 7.x-1.x.
Comment #18
torotil commentedComment #19
ucscholar commented@torotil
Do I just need to apply the "form_builder-options_element_hidden-2383285-15" patch to fix the options element issue?
Comment #20
torotil commented@ucscholar: just #15 should be fine.