changed sys_email_macro(): use the current users email as preselection if root.sys_email is empty

This commit is contained in:
Robert Gaggl 2003-03-23 22:36:37 +00:00
parent 799a7faade
commit 49f0e28e82

View file

@ -34,7 +34,11 @@ function sys_email_macro(param) {
return;
if (param.as == "editor") {
param["type"] = "text";
renderInputText(this.createInputParam("sys_email",param));
var iParam = this.createInputParam("sys_email",param);
// use the users email if sys_email is empty
if (!iParam.value)
iParam.value = session.user.email;
renderInputText(iParam);
} else
res.write(this.sys_email);
return;