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.
Hi there,
I'm using Select (or other) with Profile2 module
and everytime a new user subscribes he gets the 'Undefined index" message below:
Notice: Undefined index: profile_journalist in select_or_other_field_widget_validate() (line 349 of /../../../../../sites/all/modules/select_or_other/select_or_other.field_widget.inc).
Great module!
Any help would be appreciated :)
Comments
Comment #1
danielb CreditAttribution: danielb commentedSeems to be related to this
http://drupal.org/node/1494980#comment-5824810
Comment #2
danielb CreditAttribution: danielb commentedI've committed a change to this, will appear in next dev snapshot.
Comment #3
danielb CreditAttribution: danielb commentedI think there might be a better way to go about it.
The problem with the code is that it is assumed that
and that the other thingo (language?) is at $element['#parents'][1]
but of course it doesn't have to be
Ideally it would just be $instance = field_widget_instance($element, $form_state); but that seems to fail with 'drag and drop lists' widget, as per the other issue.
Suggestions welcome
Comment #4
danielb CreditAttribution: danielb commentedComment #5
rich.3po CreditAttribution: rich.3po commentedI just updated to the dev release, which includes the patch in #2. This fixed the issue i was having with commerce_custom_line_items (see http://drupal.org/node/1632256)
Thanks
Comment #6
danielb CreditAttribution: danielb commentedgreat thanks