Skip to content

Commit

Permalink
Fix for J! search plugin, in system plugin, need to re-init the list
Browse files Browse the repository at this point in the history
model, $listModel->reset() seems to leave some stuff cached which screws
up searching on more than one list.  Was already fixed in 3.1.
  • Loading branch information
cheesegrits committed Jan 14, 2015
1 parent 9d81fb3 commit 0af0184
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/system/fabrik/fabrik.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ public function onDoContentSearch($text, $phrase = '', $ordering = '', $areas =
foreach ($ids as $id)
{
// Unset enough stuff in the table model to allow for correct query to be run
$listModel->reset();
//$listModel->reset();
$listModel = JModel::getInstance('list', 'FabrikFEModel');


// $$$ geros - http://fabrikar.com/forums/showthread.php?t=21134&page=2
$key = 'com_' . $package . '.list' . $id . '.filter.searchall';
Expand Down

0 comments on commit 0af0184

Please sign in to comment.