Skip to content

Commit

Permalink
Unable to add countItems method for an extension where the category s…
Browse files Browse the repository at this point in the history
…ystem is used in two instances

Summary of Changes

Fix for the issue #9186
Unable to add countItems method for an extension where the category
system is used in two instances #9186

Testing Instructions

Setup a component with two instances of the category. For example:

a. component com_mycomponent has two types of items type1 and type2
b. type1 uses Joomla category system with extension name as
com_mycomponent
c. type2 uses Joomla category system with extension name as
com_mycomponent.type2

countItems feature works for both categories instances.
  • Loading branch information
Maverick committed Mar 17, 2016
1 parent 81ea485 commit 44829bf
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -361,7 +361,7 @@ public function getItems()
$extension = $this->getState('filter.extension');

// Load Helper file of the component for which com_categories displays the categories
$classname = ucfirst(substr($extension, 4)) . 'Helper';
$classname = ucfirst(str_replace('.', '', substr($extension, 4))) . 'Helper';

if (class_exists($classname) && method_exists($classname, 'countItems'))
{
Expand Down

0 comments on commit 44829bf

Please sign in to comment.