You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a lot of warnings if we are mapping a field and using sub-propertyon it if this field is empty. As we speak about search results, some entities (nodes) can have optional(s) field(s), and some of them on some entities can be empty.
Message (watchdog) : Notice : Undefined index: und in RestfulDataProviderSearchAPI->mapSearchResultToPublicFields() (line 344 in /xxx/sites/all/modules/contrib/restful_search_api/include/RestfulDataProviderSearchAPI.php).
There is a lot of warnings if we are mapping a field and using
sub-property
on it if this field is empty. As we speak about search results, some entities (nodes) can have optional(s) field(s), and some of them on some entities can be empty.Message (watchdog) :
Notice : Undefined index: und in RestfulDataProviderSearchAPI->mapSearchResultToPublicFields() (line 344 in /xxx/sites/all/modules/contrib/restful_search_api/include/RestfulDataProviderSearchAPI.php).
Example :
This example throw warning if in one (or more) result, the
field_content_picture
is empty.In
mapSearchResultToPublicFields()
, existence of field / key in set of results should be done to avoid that.Regards
The text was updated successfully, but these errors were encountered: