AntonLV %!s(int64=5) %!d(string=hai) anos
pai
achega
8aaffddbca
Modificáronse 2 ficheiros con 10 adicións e 1 borrados
  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()
     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;
             return false;
 
 
         $iId = $this->getId();
         $iId = $this->getId();

+ 9 - 0
inc/classes/BxDolCmtsNotes.php

@@ -21,6 +21,15 @@ class BxDolCmtsNotes extends BxTemplCmts
     {
     {
         return BX_DOL_PG_HIDDEN;
         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;
+    }
 }
 }
 
 
 /** @} */
 /** @} */