mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fixed error-message on save of new contact (id was not returned due to a recent change)
This commit is contained in:
parent
c0effaf429
commit
acd9ac7777
@ -476,6 +476,7 @@ class bocontacts extends socontacts
|
|||||||
// we dont update the content-history, if we run inside setup (admin-account-creation)
|
// we dont update the content-history, if we run inside setup (admin-account-creation)
|
||||||
if(!($this->error = parent::save($to_write)) && is_object($GLOBALS['egw']->contenthistory))
|
if(!($this->error = parent::save($to_write)) && is_object($GLOBALS['egw']->contenthistory))
|
||||||
{
|
{
|
||||||
|
$contact['id'] = $to_write['id'];
|
||||||
$GLOBALS['egw']->contenthistory->updateTimeStamp('contacts', $contact['id'],$isUpdate ? 'modify' : 'add', time());
|
$GLOBALS['egw']->contenthistory->updateTimeStamp('contacts', $contact['id'],$isUpdate ? 'modify' : 'add', time());
|
||||||
|
|
||||||
if ($contact['account_id']) // invalidate the cache of the accounts class
|
if ($contact['account_id']) // invalidate the cache of the accounts class
|
||||||
|
@ -368,7 +368,7 @@ class socontacts
|
|||||||
* saves contact data including custiom felds
|
* saves contact data including custiom felds
|
||||||
*
|
*
|
||||||
* @param array &$contact contact data from etemplate::exec
|
* @param array &$contact contact data from etemplate::exec
|
||||||
* @return bool false if all went wrong, errornumber on failure
|
* @return bool false on success, errornumber on failure
|
||||||
*/
|
*/
|
||||||
function save(&$contact)
|
function save(&$contact)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user