diff --git a/entity/ObjectTree_entity/recordcontainers/jdito/onUpdate.js b/entity/ObjectTree_entity/recordcontainers/jdito/onUpdate.js index 70af0573d3349eafa495898ff9e7001ed6fc51b4..eeb63ca799b10d70e54f1e522cb2d941942dc8a0 100644 --- a/entity/ObjectTree_entity/recordcontainers/jdito/onUpdate.js +++ b/entity/ObjectTree_entity/recordcontainers/jdito/onUpdate.js @@ -1,7 +1,9 @@ import("system.vars"); import("Sql_lib"); -var objectRelationId = vars.get("$local.rowdata")["OBJECTRELATIONID.value"]; - -newWhereIfSet("AB_OBJECTRELATION.AB_OBJECTRELATIONID", objectRelationId) - .updateFields({"INFO" : rowdata["INFO.value"]}); +if (vars.get("$local.changed").indexOf("INFO.value") !== -1) +{ + var rowdata = vars.get("$local.rowdata"); + newWhereIfSet("AB_OBJECTRELATION.AB_OBJECTRELATIONID", rowdata["OBJECTRELATIONID.value"]) + .updateFields({"INFO" : rowdata["INFO.value"]}); +}