mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:56 +02:00
preserve accountstatus: only write to errorlog if condition is met
This commit is contained in:
parent
f3bfc6bc19
commit
90723084fc
@ -829,9 +829,12 @@ class addressbook_bo extends addressbook_so
|
|||||||
// IF THE OLD ENTRY IS A ACCOUNT, dont allow to change the owner/location
|
// IF THE OLD ENTRY IS A ACCOUNT, dont allow to change the owner/location
|
||||||
// maybe we need that for id and account_id as well.
|
// maybe we need that for id and account_id as well.
|
||||||
if (is_array($old) && (!isset($old['owner']) || empty($old['owner'])))
|
if (is_array($old) && (!isset($old['owner']) || empty($old['owner'])))
|
||||||
|
{
|
||||||
|
if (isset($to_write['owner']) && !empty($to_write['owner']))
|
||||||
{
|
{
|
||||||
error_log(__METHOD__.__LINE__." Trying to change account to owner:". $to_write['owner'].' Account affected:'.array2string($old).' Data send:'.array2string($to_write));
|
error_log(__METHOD__.__LINE__." Trying to change account to owner:". $to_write['owner'].' Account affected:'.array2string($old).' Data send:'.array2string($to_write));
|
||||||
if (isset($to_write['owner']) && !empty($to_write['owner'])) unset($to_write['owner']);
|
unset($to_write['owner']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user