Closed (fixed)
Project:
EVA: Entity Views Attachment
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2012 at 05:18 UTC
Updated:
19 Nov 2012 at 01:00 UTC
I updated eva to 1.2 and got a series of Undefined index notices
"Notice: Undefined index: exposed form in eva_field_extra_fields() (line 32 of /sites/all/modules/eva/eva.module)."
A patch is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| eva-undefined-index.patch | 667 bytes | jzornig |
Comments
Comment #1
mkadin commentedisset($['exposed form']) will return true when $['exposed form'] = false, which isn't the desired behavior.
The list of views pulled out of the cache in eva_get_views() doesn't have some stuff that it will always have after the update. I think we just need to clear that cache with an update hook, but that theory needs to be tested.
Comment #2
mkadin commenteddid this occur just during the update process? Or does it show up on eva page? I'm unable to reproduce.
Comment #3
jzornig commentedI only saw it on the update.
Comment #4
moonray commentedI get it when clearing cache.
EDIT: Seems to be only the first time I cleared cache after updating. After that the issue is no more.
Comment #5
mkadin commentedI've used empty() to fix this problem - should be all set for any sites that still need to upgrade.
Thanks for submitting this. It's not in the dev branch and will be a part of the next release.