diff --git a/entity/Product_entity/entityfields/maindocuments/stateProcess.js b/entity/Product_entity/entityfields/maindocuments/stateProcess.js index 2f286ec148c06d5119a1f7165eb867ccbdc6936f..72587c51cbebb63a1d3ec977426cc04e3ede0ecf 100644 --- a/entity/Product_entity/entityfields/maindocuments/stateProcess.js +++ b/entity/Product_entity/entityfields/maindocuments/stateProcess.js @@ -4,7 +4,7 @@ import("system.vars"); import("system.neon"); import("Sql_lib"); -if (0 == db.getBinaryCount("PRODUCT", "DOCUMENT", vars.get("$sys.uid"), SqlUtils.getSystemAlias())) +if (0 == db.getBinaryCount("PRODUCT", "DOCUMENT", vars.get("$sys.uid"), SqlUtils.getSystemAlias(), "MAINDOCUMENT")) { result.string(neon.COMPONENTSTATE_INVISIBLE); }