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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | array-to-string-notice-2358235-1.patch | 723 bytes | capuleto |
Comments
Comment #1
capuleto commentedComment #2
capuleto commentedComment #3
jgullstr commentedDocumentation states that each arguments should be passed as its own parameter, which the submitted patch fixes. I confirm that the notices disappear.
RTBC.
Comment #4
nevergone#1 tested and works well!
Comment #5
dman commentedThanks 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