I'm using Drupal 7.14 and just enabled this module and was trying to create a new button field. As I get to my second screen of setting it up (where I input the label, help text, etc), I get the following error message

Notice: Undefined index: edit_hidden in button_field_field_widget_form() (line 295 of [my local path]\modules\contrib\button_field\button_field.module).

The button gets created, but does not recognize me changing the 'hidden' field setting (it's always checked), and the page where I have the field produces errors and is not displayed.

Anyone else running into this?

Comments

ditcheva’s picture

Just out of curiousity, I also just tested creating an Image button (the above was for an HTML button), and got both the error from above and an additional one for

Undefined index: image_path in _button_field_build_element() for line 412 of the module.

Obviously, I'm currently at the screen to set up the settings, but I get this warning along with the screen.

Anyway, they seem related, so I wanted to point this out too!!!

BassistJimmyJam’s picture

Title: Undefined index: edit_hidden in button_field_field_widget_form() (line 295 of ..modules\contrib\button_field\button_field.module » Widget settings throw notice on new field and don't reflect actual values
Status: Active » Closed (fixed)

This has been resolved in e881ea0 and cc05dff.

ditcheva’s picture

Thank you!!!

firfin’s picture

Maybe time to roll a new (beta) version to incorporate these changes?

bit off-topic: What is holding up a non-beta release?
The (reported) VBO and multiple multi-valued buttons bugs?

Module is working fine for me btw. Thanks for your effort.

  • Commit e881ea0 on 7.x-1.x, 8.x-1.x by BassistJimmyJam:
    Issue #1587382 by ditcheva: Fixed undefined index notices.
    
    
  • Commit cc05dff on 7.x-1.x, 8.x-1.x by BassistJimmyJam:
    Issue #1587382 by ditcheva: Fixed additional class and hide on edit not...