Notice: Undefined index: field_name in addressfield_views_handler_filter_country->get_value_options() (line 8 of /var/www/sites/pg-d7.dev/www/sites/all/modules/contrib/addressfield/views/addressfield_views_handler_filter_country.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | addressfield-undefined-index-field_name-2552741-4.patch | 683 bytes | dobrzyns |
| #2 | addressfield-undefined-index-field_name-2552741-2.patch | 688 bytes | dobrzyns |
Comments
Comment #2
dobrzyns commentedTurns out the data structure changed, so the key was wrong. I've corrected the key used to get the field name.
Comment #3
dobrzyns commentedComment #4
dobrzyns commentedHelps if you commit the right key.
Comment #5
bojanz commentedWhen and where did the data structure change?
Commerce, Date, Entity API all use $this->definition['field_name'] in their handlers.
I've also been unable to reproduce this notice on a fresh install. A dsm of ($this->definition['field_name']) gives me the right data.
Comment #6
bojanz commentedComment #7
ron collins commentedWe had this issue as well. It was caused by the exposed filter on a view. I found there were two available filters for country so I solved the problem by removing the "Field tables: Field address => Country" filter option and adding the "User: Address - Country" filter option.