From d4c0360b780a9be1e56a506c18ecaa816f1c0a21 Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Wed, 21 Aug 2019 14:02:05 +0200
Subject: [PATCH] fix after operating state Productprice

---
 entity/Productprice_entity/afterOperatingState.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/entity/Productprice_entity/afterOperatingState.js b/entity/Productprice_entity/afterOperatingState.js
index 80a3d84eb82..3a2be077156 100644
--- a/entity/Productprice_entity/afterOperatingState.js
+++ b/entity/Productprice_entity/afterOperatingState.js
@@ -1,10 +1,9 @@
 import("system.neon");
 import("system.vars");
 
-if(vars.get("$sys.operatingstate") != undefined 
-&& vars.get("$sys.operatingstate") != null 
-&& vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW 
-&& vars.get("$local.value")) // local.value is previous operationgstate or null. This fixes not working Filter
+if(vars.exists("$sys.operatingstate") 
+    && vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW 
+    && vars.get("$local.value")) // local.value is previous operationgstate or null. This fixes not working Filter
 {
     neon.refresh();
 }
-- 
GitLab