Skip to content
Snippets Groups Projects
Commit 631503d6 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

bugfix: comm insert

parent 0595b72d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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
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