Skip to content

Commit

Permalink
CORE-1637: Remove brackets when they are not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilinTv committed Jul 28, 2017
1 parent 437599a commit e45cf06
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -144,8 +144,9 @@ protected function getCategoryList()
foreach ($categoryCollection as $categoryEntity) {
$categoryName = $categoryEntity->getLocalisedAttributes($idLocale)->getFirst()->getName();
$categoryTemplateName = $this->getCategoryTemplateName($categoryEntity);
$categoryTemplateName = $categoryTemplateName ? ' [' . $categoryTemplateName . ']' : '';

$categoryList[$categoryEntity->getIdCategory()] = $categoryName . ' (' . $categoryTemplateName . ')';
$categoryList[$categoryEntity->getIdCategory()] = $categoryName . $categoryTemplateName;
}

return $categoryList;
Expand Down

0 comments on commit e45cf06

Please sign in to comment.