Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement countItems for extensions with sections #9580
Pull Request for Issue #9186
With 3.5 a new function was implemented in Joomla!: the items of a category can be counted via a helper method. The problem is, that this only works for basic category calls without sections because the extension string is not handled properly!
Summary of Changes
I moved the countItems stuff to its own method in the category and implemented a cleaner way for this function.
Now extensions could use the second parameter "$section" to check for the correct items
referenced this pull request
Mar 25, 2016
I have tested this item
Since without a component that supports sections one cannot really check if the count is still correct. I've tested this by assinging test contacts to that created category via phpmyadmin.