Add ability for HR to set tid

This commit is contained in:
Miles Lott 2001-03-26 23:19:36 +00:00
parent e2afce4073
commit cbd9cbadc8

View File

@ -60,7 +60,10 @@
$addnew['note'] .= "\nCopied from ".$phpgw->accounts->id2name($addnew['owner']).", record #".$addnew['id'].".";
$addnew['owner'] = $phpgw_info["user"]["account_id"];
$addnew['id'] = '';
addressbook_add_entry($addnew['owner'],$addnew);
if ($account=True) { addressbook_add_entry($addnew['owner'],$addnew,'','',True); }
else { addressbook_add_entry($addnew['owner'],$addnew); }
$fields = addressbook_read_last_entry($qfields);
$newid = $fields[0]['id'];
Header("Location: "