Closed (fixed)
Project:
Select (or other)
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2011 at 19:48 UTC
Updated:
1 Apr 2014 at 15:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
danielb commentedComment #2
danielb commentedI reckon it must be how the field_collection module works.
Here is the code from select_or_other_field_widget_validate():
If the field settings for select_or_other were saved properly then there should be a value in $form_state['field'][$field_name][$language]['instance']['widget']['settings']['other_unknown_defaults'].
The field collection module must change the data that is usually available to this module?
Comment #3
pau1_m commentedsubscribing
Comment #4
rellis commentedI think this is a problem in select_or_other -- see explanation
here http://drupal.org/node/1217150
And docs here:
http://api.drupal.org/api/drupal/modules--field--field.form.inc/function...
Attached is a patch for select_or_other.field_widget.inc
Comment #5
danielb commentedComment #6
danielb commentedI've committed rellis' patch, thanks.
Comment #8
ezeedub commentedThis looks like it's back. I just got this error...
Notice: Undefined index: other_unknown_defaults in select_or_other_field_widget_validate() (line 365 of /path/to/drupal/sites/all/modules/contrib/select_or_other/select_or_other.field_widget.incComment #9
danielb commentedcheers, I've fixed that too.