If I disable a template and then generate an activity message via heartbeat_api_log(), the state of the disabled boolean is ignored.

It seems logical that the activity messages should not be logged if this is set to TRUE.

Should this function check the setting of $template->disabled and avoid creating a log if set to TRUE?

E.g.


857 $template = heartbeat_message_template_load($message_id);

       if($template->disabled) {
         return FALSE;
       }

Comments

paulatfitsolve created an issue. See original summary.

delacosta456’s picture