Просмотр исходного кода

Ticket #3928 - Comments: duplicate "unpin" action.

AntonLV 4 лет назад
Родитель
Сommit
b3c3b2f08c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      template/scripts/BxBaseCmtsMenuActions.php

+ 1 - 1
template/scripts/BxBaseCmtsMenuActions.php

@@ -66,7 +66,7 @@ class BxBaseCmtsMenuActions extends BxTemplMenuCustom
 
     public function getMenuItems()
     {
-        if((int)$this->_aCmt['cmt_pinned'] > 0 && !empty($this->_aBp['pinned']))
+        if($this->_sMode == self::$_sModeActions && (int)$this->_aCmt['cmt_pinned'] > 0 && !empty($this->_aBp['pinned']))
             $this->_aObject['menu_items'] = [
                 'item-unpin' => [
                     'name' => 'item-unpin',