Notify linked apps about changes in contact data so linked addresses get displayed with new information

This commit is contained in:
Nathan Gray 2010-03-24 16:23:12 +00:00
parent a59d33723c
commit 68a2a3d641

View File

@ -812,6 +812,8 @@ class addressbook_bo extends addressbook_so
$to_write['location'] = 'editaccountcontact'; $to_write['location'] = 'editaccountcontact';
$GLOBALS['egw']->hooks->process($to_write,False,True); // called for every app now, not only enabled ones)); $GLOBALS['egw']->hooks->process($to_write,False,True); // called for every app now, not only enabled ones));
} }
// Notify linked apps about changes in the contact data
egw_link::notify_update('addressbook', $contact['id'], $contact);
// Record change history // Record change history
$deleted = ($old['tid'] == addressbook_so::DELETED_TYPE || $contact['tid'] == addressbook_so::DELETED_TYPE); $deleted = ($old['tid'] == addressbook_so::DELETED_TYPE || $contact['tid'] == addressbook_so::DELETED_TYPE);