diff --git a/entity/AttributeRelation_entity/entityfields/value/valueProcess.js b/entity/AttributeRelation_entity/entityfields/value/valueProcess.js index 0257edcb7c0a24334e29b733a1267c1dcc49d641..ae579d7b00c83fcd3d83369b0120df65b474d8dd 100644 --- a/entity/AttributeRelation_entity/entityfields/value/valueProcess.js +++ b/entity/AttributeRelation_entity/entityfields/value/valueProcess.js @@ -6,4 +6,6 @@ import("system.result"); var attributeType = vars.get("$field.ATTRIBUTE_TYPE"); var contentType = AttributeTypeUtil.getContentType(attributeType); if (!vars.get("$this.value") && contentType == "BOOLEAN") - result.string("0"); \ No newline at end of file + result.string("0"); +else if (!contentType) + result.string(""); \ No newline at end of file diff --git a/entity/AttributeRelation_entity/recordcontainers/jdito/onDelete.js b/entity/AttributeRelation_entity/recordcontainers/jdito/onDelete.js index 607a023f25cbeff1e916650381ecf5dfa3bb42bc..dd430c94394e9b46d1cbd3547863f9df12a4c212 100644 --- a/entity/AttributeRelation_entity/recordcontainers/jdito/onDelete.js +++ b/entity/AttributeRelation_entity/recordcontainers/jdito/onDelete.js @@ -4,7 +4,7 @@ import("Sql_lib"); import("system.db"); var rowData = vars.get("$local.rowdata"); -if (rowData["AB_ATTRIBUTE_ID.value"] && rowData["VALUE.value"]) +if (rowData["AB_ATTRIBUTE_ID.value"]) { db.deleteData("AB_ATTRIBUTERELATION", SqlCondition.equals("AB_ATTRIBUTERELATION.AB_ATTRIBUTERELATIONID", vars.get("$local.uid"), "1=2")); } \ No newline at end of file