dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-dev] Get assigned user of an event on Deletion


From: Gilles Lengy
Subject: [Dolibarr-dev] Get assigned user of an event on Deletion
Date: Mon, 11 Sep 2017 11:44:16 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Hello,

Sorry for the previous mail with the subject "Re: [Dolibarr-dev] Dolibarr-dev Digest, Vol 168, Issue 7".

My issue is below.


Le 11/09/2017 à 09:52, Gilles Lengy a écrit :
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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]