|
From: | Gilles Lengy |
Subject: | Re: [Dolibarr-dev] Dolibarr-dev Digest, Vol 168, Issue 7 |
Date: | Mon, 11 Sep 2017 09:52:55 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
Hello,In our module Internal Notification, we have added the possibility to alert the assigned user of an event of the creation, the modification. We tried to do so for the deletion, but it doesn't work.
Here is the code that gets the emails of the assigned user of the event : $userIdAssignedArray = $object->userassigned; foreach ($userIdAssignedArray as $key => $value) { $userAssigned->fetch($key); $userMail = $userAssigned->email; array_push($sendto_array, $userMail); } No email are pushed into the array... Is there an another way that works to do so ? Thank you for your help ! -- Gilles Lengy Artaban Communication 33 (0)1 40 09 18 18 www.artaban.fr spip.artaban.fr Adhérent de l'April (www.april.org)
[Prev in Thread] | Current Thread | [Next in Thread] |