Created a view with just a default display that has a Search contextual filter.
Via a custom block, I load the view, and add a search query as an argument
$view = views_get_view('similar_items');
$content = $view->execute_display(NULL, array('something'));
...
And I get:
Notice: Undefined index: group in views_handler_argument_search->query() (line 57 of /var/www/sites/all/modules/contrib/views/modules/search/views_handler_argument_search.inc).
Notice: Undefined index: group in views_handler_argument_search->query() (line 65 of /var/www/sites/all/modules/contrib/views/modules/search/views_handler_argument_search.inc).
Notice: Undefined index: group in views_handler_argument_search->query() (line 83 of /var/www/sites/all/modules/contrib/views/modules/search/views_handler_argument_search.inc).
?
Comments
Comment #1
dawehnerWhat happens if you use $view->preview instead of execute_display?
Comment #2
merlinofchaos commentedIt'll be the same.
The search query argument was copied from the filter and uses $this->options['group'] but there is no 'group' for arguments. All arguments are always in the same group.
Comment #3
mstef commented@dereine: merlin is correct. I also get the error when previewing inside the Views UI (oddly, only some times)..
Comment #4
dawehnerDoes this still happen with the latest dev version? This should be fixed in the meantime
Comment #5
mstef commentedGood to go - thanks..
Probably should have tried that first. Since I didn't see an issue for it, I figured it wasn't addressed.