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)
_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev