Closed (duplicate)
Project:
Entity Reference View Widget
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2012 at 08:01 UTC
Updated:
2 Apr 2013 at 22:58 UTC
When used in a field of field_collection with embedded widget, $form_state contains only the fields of the node, not the fields in field_collection. I found this by catching these PHP notices and seeing that $form_state doesn't contain the needed field:
Notice: Undefined index: field_protein_ref in entityreference_view_widget_validate() (line 478 of /srv/drupal/sites/all/modules/entityreference_view_widget/entityreference_view_widget.module).
Notice: Undefined index: und in entityreference_view_widget_validate() (line 479 of /srv/drupal/sites/all/modules/entityreference_view_widget/entityreference_view_widget.module).
Comments
Comment #1
Zippy commentedSame problem here:
Notice: Undefined index: #fields in entityreference_view_widget_validate() (line 474 of /var/www/cdt/sites/all/modules/entityreference_view_widget/entityreference_view_widget.module).
Notice: Undefined index: field_characters in entityreference_view_widget_validate() (line 475 of /var/www/cdt/sites/all/modules/entityreference_view_widget/entityreference_view_widget.module).
Is the any workaround available at the moment?
regards!
Comment #2
oliver huynh commentedFor the guys that is still finding the solution for this. Check: http://drupal.org/sandbox/davidseth/1489176
Comment #3
stella commentedduplicate of #1820278: Notice: Undefined index: in entityreference_view_widget_validate