?
avatar muleycharge
muleycharge
11 Nov 2014

Pass two options with the same value into the JLayoutHelper render for joomla.searchtools.default, such as in:
$args = array('view' => $this, 'options' => array('filterButton' => 0, 'filtersHidden' =>0));
echo JLayoutHelper::render('joomla.searchtools.default',
$args,
null,
array('debug' => false));

Expect the filters not to be hidden and the 'Search Tools' button not to show but the 'Search Tools' button is still showing.

Running Joomla 3.3.3

Traced issue to file layouts\joomla\searchtools\default.php line 25. Both array_merge and array_unique are being called on the 'options' array. Remove the array_unique call; it is making it so that if two options with the same values are used one of the values will be deleted.

avatar muleycharge muleycharge - open - 11 Nov 2014
avatar zero-24 zero-24 - close - 12 Nov 2014
avatar Bakual
Bakual - comment - 12 Nov 2014

This has been fixed in staging with #4660

avatar Bakual Bakual - close - 12 Nov 2014
avatar Bakual Bakual - change - 12 Nov 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-11-12 08:56:23
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment