Preserve old owner for if user changes addressbook

This commit is contained in:
nathangray 2019-04-04 15:20:13 -06:00
parent 66d6a6c883
commit 55a3a1b3f7

View File

@ -2459,6 +2459,7 @@ class addressbook_ui extends addressbook_bo
// allow other apps to add tabs to addressbook edit
$preserve = $content;
$preserve['old_owner'] = $content['owner'];
unset($preserve['jpegphoto'], $content['jpegphoto']); // unused and messes up json encoding (not utf-8)
$this->tmpl->setElementAttribute('tabs', 'add_tabs', true);
$tabs =& $this->tmpl->getElementAttribute('tabs', 'tabs');