It can be done by the following steps:
Create a custom class which extends the default Contact.php
Inside this function implement the method get_notification_recipients, initially defined in SugarBean.php. You have to add in $user_list the old assigned user.
Create a custom controller for Contacts (copy from modules/Contacts/controller.php to custom/modules/Contacts/controller.php);
Add the function action_save().
Inside this function you need to override the $this->bean as an instance of the custom class.
PHP Code:
public function action_save() {
require_once('custom Contacts class');
$this->bean = new CustomContactClass();
$this->bean->save(!empty($this->bean->notify_on_save));
}
Cheers
Bookmarks