Skip to content
Snippets Groups Projects
Commit 49125f36 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

#1065119 Employee email address not changeable

parent d4e65b44
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,7 @@
<mandatory v="true" />
<dropDownProcess>%aditoprj%/entity/Employee_entity/entityfields/email_address/dropDownProcess.js</dropDownProcess>
<textInputAllowed v="true" />
<stateProcess>%aditoprj%/entity/Employee_entity/entityfields/email_address/stateProcess.js</stateProcess>
<onValidation>%aditoprj%/entity/Employee_entity/entityfields/email_address/onValidation.js</onValidation>
</entityField>
<entityField>
......
import("system.result");
import("system.neon");
import("system.vars");
//the email should not be changed afterwards, because it is also used as calendar id
if (!vars.get("$field.EMAIL_ADDRESS") || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_READONLY);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment