A one-line fix.

Change line 2122 from:
else if (isset($form['type']) && $form_id == $form['type']['#value'] .'_node_form') {
to
else if (isset($form['type']) && isset($form['type']['#value']) && $form_id == $form['type']['#value'] .'_node_form') {

Comments

japerry’s picture

Status: Active » Closed (outdated)

Event for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.