Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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']) {
Comment | File | Size | Author |
---|---|---|---|
#4 | button_field-1989578-fix_undefined_index_error.patch | 710 bytes | GuyPaddock |
Comments
Comment #1
adamtong CreditAttribution: adamtong commentedwill it commit?
Comment #2
NWOM CreditAttribution: NWOM commentedIt doesn't appear to be line 266 that needs replacing. By default (without any other patches enabled), Line 266 is empty.
Comment #3
GuyPaddock CreditAttribution: GuyPaddock commentedLine 295.
Comment #4
GuyPaddock CreditAttribution: GuyPaddock commentedAttached is a patch against the latest release.
Comment #5
clemens.tolboomComment #6
Lord Pachelbel CreditAttribution: Lord Pachelbel commentedBefore I checked the issue queue about this error, I had fixed this on my own in the same manner as the patch above.