From cafdfb428940cb4e4130f7eddd575fb2e5d17050 Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Tue, 20 Aug 2019 10:45:40 +0200 Subject: [PATCH] partial fix classificaion - refresh throws exception --- entity/Classification_entity/afterOperatingState.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/entity/Classification_entity/afterOperatingState.js b/entity/Classification_entity/afterOperatingState.js index a94093073f..b32d1a0e9e 100644 --- a/entity/Classification_entity/afterOperatingState.js +++ b/entity/Classification_entity/afterOperatingState.js @@ -1,7 +1,9 @@ +import("system.logging"); import("system.vars"); import("system.neon"); -if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW) +// "$local.value" contains the previous operationg state +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW && vars.get("$local.value") == neon.OPERATINGSTATE_EDIT) { - neon.refreshAll(); + neon.refreshAll() } -- GitLab