I'm using:

Webform 6.x-3.18
Form builder 6.x-1.1
Options element 6.x-1.7
jQuery UI 6.x-1.5

And I get this error:

Missing argument 4 for form_builder_property_options_form(), called in xxx/drupal/sites/all/modules/form_builder/modules/webform/form_builder_webform.components.inc on line 747 and defined a xxx/drupal/sites/all/modules/form_builder/includes/form_builder.properties.inc a la línia 181.

Any ideas?

Comments

oriol_e9g’s picture

Status: Needs review » Active

OK! I have found the problem:

form_builder.properties.inc on line 181.

function form_builder_property_options_form(&$form_state, $form_type, $element, $property) {

form_builder_webform.components.inc on line 747.

$form = form_builder_property_options_form($form_state, $form_type, $element);

The $property var it's not used in the function, so, this seems that it's not needed but we need to pass and argument to call the function. :/

oriol_e9g’s picture

Status: Active » Needs review
StatusFileSize
new795 bytes
quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new800 bytes

Thanks! Nice find. That last parameter should be the string "options" though, since that's the property name being edited. That said, you're right that it's not used in that particular form callback anyway so passing in NULL works just as well. I've committed this patch that passes in the proper string so it doesn't cause some unexpected problem in the future.

quicksketch’s picture

Title: form_builder_property_options_form error » Missing argument 4 for form_builder_property_options_form()

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.