I have a content type "location" which is being used to add a location. When we create a node of content type "event" , we have a node reference field to this "location" content type from where we associate a location to the event. Now if someone doesn't find location in this then there is check box "use custom location", checking it shows node widget of content type "location" to add new location on the same page. When "use custom location" is unchecked, node widget is hidden. This is achieved by "conditional fields" module. So When "use custom location" is unchecked and node widget is hidden then on submitting event, warning comes up--
"warning: Invalid argument supplied for foreach() in /drupal/sites/all/modules/contrib/node_widget/modules/content.node_widget.inc on line 25".
Does anyone has any idea regarding this ? Help would be highly appreciated.