forked from extern/egroupware
Add ability for HR to set tid
This commit is contained in:
parent
e2afce4073
commit
cbd9cbadc8
@ -18,14 +18,14 @@
|
|||||||
"nonavbar" => True
|
"nonavbar" => True
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$phpgw_info["flags"]["currentapp"] = "addressbook";
|
$phpgw_info["flags"]["currentapp"] = "addressbook";
|
||||||
$phpgw_info["flags"]["enable_addressbook_class"] = True;
|
$phpgw_info["flags"]["enable_addressbook_class"] = True;
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
|
|
||||||
$t = new Template($phpgw->common->get_tpl_dir("addressbook"));
|
$t = new Template($phpgw->common->get_tpl_dir("addressbook"));
|
||||||
$t->set_file(array("add" => "add.tpl"));
|
$t->set_file(array("add" => "add.tpl"));
|
||||||
|
|
||||||
$this = CreateObject("phpgwapi.contacts");
|
$this = CreateObject("phpgwapi.contacts");
|
||||||
|
|
||||||
// Read in user custom fields, if any
|
// Read in user custom fields, if any
|
||||||
@ -60,7 +60,10 @@
|
|||||||
$addnew['note'] .= "\nCopied from ".$phpgw->accounts->id2name($addnew['owner']).", record #".$addnew['id'].".";
|
$addnew['note'] .= "\nCopied from ".$phpgw->accounts->id2name($addnew['owner']).", record #".$addnew['id'].".";
|
||||||
$addnew['owner'] = $phpgw_info["user"]["account_id"];
|
$addnew['owner'] = $phpgw_info["user"]["account_id"];
|
||||||
$addnew['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);
|
$fields = addressbook_read_last_entry($qfields);
|
||||||
$newid = $fields[0]['id'];
|
$newid = $fields[0]['id'];
|
||||||
Header("Location: "
|
Header("Location: "
|
||||||
|
Loading…
Reference in New Issue
Block a user