FIX Notification sending was broken.

This commit is contained in:
Laurent Destailleur 2017-03-29 11:44:14 +02:00
parent ad3b54b93a
commit 1d6e760fc8

View File

@ -66,7 +66,7 @@ class InterfaceNotification extends DolibarrTriggers
require_once DOL_DOCUMENT_ROOT .'/core/class/notify.class.php';
$notify = new Notify($this->db);
if (! in_array($notifcode, $notify->arrayofnotifsupported)) return 0;
if (! in_array($action, $notify->arrayofnotifsupported)) return 0;
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);