Hi,
I need to add two other recipients for every assignment notification. I assume that this needs to be edited in the following function in SugarBean.
I just need to add two other ids to the array "user_list".PHP Code:function get_notification_recipients()
00202 {
00203 $notify_user = new User();
00204 $notify_user->retrieve($this->assigned_user_id);
00205 $this->new_assigned_user_name = $notify_user->first_name.' '.$notify_user->last_name;
00206
00207 $this->log->info("Notifications: recipient is $this->new_assigned_user_name");
00208
00209 $user_list = array($notify_user);
00210 return $user_list;
00211 }
They are:
* The User to whom the $notify_user reports to (from Employee module)
* The User who assigned it to the user. (for e.g : User who created the id)
Can somebody help me append these to the $user_list?
Thanks.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks