I'm seeing this message when creating a new button field.
Notice: Undefined index: edit_hidden in button_field_field_widget_form() (line 296 of [...]/sites/all/modules/button_field/button_field.module).

To fix it:

Replace line 266 with:

  if (isset($instance['widget']['settings']['edit_hidden']) && $instance['widget']['settings']['edit_hidden']) {
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

adamtong’s picture

will it commit?

NWOM’s picture

It doesn't appear to be line 266 that needs replacing. By default (without any other patches enabled), Line 266 is empty.

GuyPaddock’s picture

Issue summary: View changes

Line 295.

GuyPaddock’s picture

Status: Active » Needs review
FileSize
710 bytes

Attached is a patch against the latest release.

clemens.tolboom’s picture

Assigned: dmadruga » Unassigned
Status: Needs review » Reviewed & tested by the community
Lord Pachelbel’s picture

Before I checked the issue queue about this error, I had fixed this on my own in the same manner as the patch above.