changed sys_email_macro(): use the current users email as preselection if root.sys_email is empty
This commit is contained in:
parent
799a7faade
commit
49f0e28e82
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,11 @@ function sys_email_macro(param) {
|
||||||
return;
|
return;
|
||||||
if (param.as == "editor") {
|
if (param.as == "editor") {
|
||||||
param["type"] = "text";
|
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
|
} else
|
||||||
res.write(this.sys_email);
|
res.write(this.sys_email);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue