Pending

User tests: Successful: Unsuccessful:

avatar samtlewis
samtlewis
26 Sep 2012

JoomlaCode Tracker URL:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=29353

The Smart Search module was not using the selected filter in the getSearchRoutecall.It is referencing a non-existent parameter 'f' when the filter is contained inthe parameter 'searchfilter'
When a static filter is selected in the module parameters, no hidden input iscreated to specify the 'f' option. This results in the filter not being appliedduring the search.
Changed line 46 from:

$route = FinderHelperRoute::getSearchRoute($params->get('f', null));
To:
$route = FinderHelperRoute::getSearchRoute($params->get('searchfilter',null));

And the hidden input is created and the search takes the filter into accountand restricts results based on the static filter.
Note: other references to $params->get('f') were fixed in tracker item #27933 butthis one was missed.

avatar gotMoxie gotMoxie - open - 26 Sep 2012
avatar mbabker mbabker - close - 25 Mar 2013
avatar mbabker
mbabker - comment - 25 Mar 2013

Merged at e739638

avatar born2webdesign
born2webdesign - comment - 13 Oct 2014

Still the same issue (and fix) on 2.5.27. On a local install.
FWIW: Perhaps another issue, but the same system on a public install, as well as a local 3.3.6 show suggestions in the search field, but no search is possible (hitting Enter or clicking Search does nothing).

Add a Comment

Login with GitHub to post a comment