If a service has no configuration form, then form state will have no values for it (obviously).
While the submit handler has this code:

  $options = isset($values['options']['form']) ? $values['options']['form'] : array();
  $server->configurationFormSubmit($form['options']['form'], $options, $form_state);

the validate handler doesn't, and just passes form state directly:

$service->configurationFormValidate($form['options']['form'], $form_state['values']['options']['form'], $form_state);

which then triggers the fatal error when configurationFormValidate() gets NULL instead of an empty array.

CommentFileSizeAuthor
#1 1535726-fix-fatal-error.patch655 bytesbojanz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bojanz’s picture

Status: Active » Needs review
FileSize
655 bytes

Here's a simple fix.

jsacksick’s picture

Status: Needs review » Fixed

Thanks.

Status: Fixed » Closed (fixed)

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