Skip to content

Commit

Permalink
bugfix: determine selected filter category by alias, too
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin committed Apr 30, 2016
1 parent a1ff56f commit aaaa691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ModuleFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function compile()
}
}
foreach ($item_ar as $item) {
if($selectedCat == $item['id']) {
if($selectedCat == $item['id'] || $selectedCat == $item['alias']) {
$item['cssClass'] = $item['cssClass'] . " active";
}
if(!empty($item['cssClass'])) {
Expand Down

0 comments on commit aaaa691

Please sign in to comment.