diff --git a/entity/Comm_entity/entityfields/commid/valueProcess.js b/entity/Comm_entity/entityfields/commid/valueProcess.js index 580b42a632cfa1879400ed46f990395363afc1c9..46a10710c68fc7e58ac7062e01b4721f02611d62 100644 --- a/entity/Comm_entity/entityfields/commid/valueProcess.js +++ b/entity/Comm_entity/entityfields/commid/valueProcess.js @@ -3,6 +3,6 @@ import("system.result"); import("system.neon"); import("system.vars"); - -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && (vars.get("$this.value") == null || vars.get("$this.value") == "")) +//do not check if own value is null or empty because the own value is currently not set correctly when you've got several COMM entries (e.g. in a list edit) +if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Comm_entity/entityfields/standard/valueProcess.js b/entity/Comm_entity/entityfields/standard/valueProcess.js index c8fae64aee3a281e5864c2f2c6715468d117045d..86534e08301a4a16b99a3fdeab49fa48099e6a67 100644 --- a/entity/Comm_entity/entityfields/standard/valueProcess.js +++ b/entity/Comm_entity/entityfields/standard/valueProcess.js @@ -3,5 +3,6 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && (vars.get("$this.value") == "" || vars.get("$this.value") == null)) +//do not check if own value is null or empty because the own value is currently not set correctly when you've got several COMM entries (e.g. in a list edit) +if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) result.string("0"); \ No newline at end of file