AntonLV 5 лет назад
Родитель
Сommit
8aaffddbca
2 измененных файлов с 10 добавлено и 1 удалено
  1. 1 1
      inc/classes/BxDolCmts.php
  2. 9 0
      inc/classes/BxDolCmtsNotes.php

+ 1 - 1
inc/classes/BxDolCmts.php

@@ -1790,7 +1790,7 @@ class BxDolCmts extends BxDolFactory implements iBxDolReplaceable, iBxDolContent
 
     protected function _triggerComment()
     {
-        if(!$this->_aSystem['trigger_table'])
+        if(!$this->_aSystem['trigger_table'] || !$this->_aSystem['trigger_field_id'] || !$this->_aSystem['trigger_field_comments'])
             return false;
 
         $iId = $this->getId();

+ 9 - 0
inc/classes/BxDolCmtsNotes.php

@@ -21,6 +21,15 @@ class BxDolCmtsNotes extends BxTemplCmts
     {
         return BX_DOL_PG_HIDDEN;
     }
+
+    /**
+     * TODO: Remove this method when 'TriggerFieldComments' fields will be cleaned or updated 
+     * in all modules which have Notes.
+     */
+    protected function _triggerComment()
+    {
+        return false;
+    }
 }
 
 /** @} */