Commit b031c6136783d74ba2b0c314ab8bf8c31d696927
1 parent
b7d40aed
Admin menu decision
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
backend/views/layouts/main-sidebar.php
... | ... | @@ -80,11 +80,13 @@ use yii\widgets\Menu; |
80 | 80 | 'label' => 'Характеристики Товаров', |
81 | 81 | 'url' => Url::toRoute(['/rubrication/tax-group', 'level'=> '0']), |
82 | 82 | 'options' => ['class'=>\Yii::$app->user->can('rubrication') ? '' :'hide'], |
83 | + 'active' => preg_match('/^tax-group.*$/', $this->context->id) && (\Yii::$app->request->getQueryParam('level') == 0), | |
83 | 84 | ], |
84 | 85 | [ |
85 | 86 | 'label' => 'Характеристики Модификаций', |
86 | 87 | 'url' => Url::toRoute(['/rubrication/tax-group', 'level'=> '1']), |
87 | 88 | 'options' => ['class'=>\Yii::$app->user->can('rubrication') ? '' :'hide'], |
89 | + 'active' => preg_match('/^tax-group.*$/', $this->context->id) && (\Yii::$app->request->getQueryParam('level') == 1), | |
88 | 90 | ] |
89 | 91 | ] |
90 | 92 | ], | ... | ... |