akeeba / fof

Rapid Application Development framework for Joomla!™ 3 and 4
0 stars 0 forks source link

Fix reset whereClauses #661

Closed toroworx closed 6 years ago

toroworx commented 6 years ago

I had issues with the TreeModel. The first find() worked fine, the next one failed. A simplified quote of my code:

foreach ($ids as $id)
{
    $this->treeModel->find($id);
}

whereClauses was not reset which caused this issue. This PR fixed it.

nikosdion commented 6 years ago

You are, of course, correct. reset() should completely reset the Model state.