Fix empty history rows when editing an account

This commit is contained in:
nathangray 2019-03-21 11:19:59 -06:00
parent f3b0362653
commit 86fa5cbd7a

View File

@ -643,7 +643,8 @@ class Accounts
{
if (!$data['person_id']) $data['person_id'] = $old['person_id'];
$contact = array(
// Include previous contact information to avoid blank history rows
$contact = $GLOBALS['egw']->contacts->read($data['person_id']) + array(
'n_given' => $data['account_firstname'],
'n_family' => $data['account_lastname'],
'email' => $data['account_email'],