Problem/Motivation

Views lookup triggers a notice due to wrong usage of "views_get_view_result" function.
According to the documentation api.drupal.org/api/views/views.module/function/views_get_view_result/7, "Any additional parameters will be passed as arguments".

Proposed resolution

Pass filters to the view as argument without wrapping in array.

Remaining tasks

Upload patch.

User interface changes

API changes

Nop.

CommentFileSizeAuthor
#1 array-to-string-notice-2358235-1.patch723 bytescapuleto

Comments

capuleto’s picture

StatusFileSize
new723 bytes
capuleto’s picture

Issue summary: View changes
Status: Active » Needs review
jgullstr’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Documentation states that each arguments should be passed as its own parameter, which the submitted patch fixes. I confirm that the notices disappear.

RTBC.

nevergone’s picture

#1 tested and works well!

dman’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Thanks capuleto

Sorry for not being able to give this attention originally. I was a little unclear about what was really going on there.

I believe this will now be fixed as a result of #2801129: Views plugin: allow lookup by numeric index