k2 Tools Category Filter Bug Fix
A bug in K2 tools stops filtering the categories, and returns a blank menu on the frontend. It works fine with no selection of cathegories in the field “Category filter”, but when selecting a specific cathegory there is no display in the module on the frontend.
The bug is from a forgotten space. A classic typo.
To repair search for the file modules/mod_k2_tools/helper.php and here for the line that reads
$query .= “ORDER BY created DESC”;
the problem is that you need to add a space in front of ORDER, to look like
$query .= ” ORDER BY created DESC”;
because if it enters the if from before it does not add this space. One can add this space in the if also.
leave a comment