From 62652cdc2defe6018f5bf93df41651a85fa3e4cc Mon Sep 17 00:00:00 2001 From: svistunov Date: Thu, 23 Dec 2010 04:11:47 -0800 Subject: [PATCH] Bug fix: argument value doesn't get passed to a View. --- views/searchlight_handler_argument_search.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/searchlight_handler_argument_search.inc b/views/searchlight_handler_argument_search.inc index 336a112..cf1d822 100644 --- a/views/searchlight_handler_argument_search.inc +++ b/views/searchlight_handler_argument_search.inc @@ -12,10 +12,12 @@ class searchlight_handler_argument_search extends views_handler_argument { * Override of query(). */ function query() { + $value = $this->get_value(); if (!empty($this->query->searchlight)) { - $value = is_array($this->value) ? reset($this->value) : $this->value; + $value = is_array($value) ? reset($value) : $value; $value = trim($value); if ($this->argument_validated && !empty($value)) { + $this->query->set_search_buildmode('search'); $this->query->set_search_options($this->options); $this->query->set_search_query($value); }