Skip to content
Snippets Groups Projects
Commit e1953223 authored by S.Listl's avatar S.Listl
Browse files

AttributeRelation: fix for void-attributes

parent 6480116f
No related branches found
No related tags found
No related merge requests found
...@@ -6,3 +6,5 @@ var attributeType = vars.get("$field.ATTRIBUTE_TYPE"); ...@@ -6,3 +6,5 @@ var attributeType = vars.get("$field.ATTRIBUTE_TYPE");
var contentType = AttributeTypeUtil.getContentType(attributeType); var contentType = AttributeTypeUtil.getContentType(attributeType);
if (vars.get("$this.value") == null && contentType == "BOOLEAN") if (vars.get("$this.value") == null && contentType == "BOOLEAN")
result.string("0"); result.string("0");
else if (!contentType)
result.string("");
...@@ -4,7 +4,7 @@ import("Sql_lib"); ...@@ -4,7 +4,7 @@ import("Sql_lib");
import("system.db"); import("system.db");
var rowData = vars.get("$local.rowdata"); var rowData = vars.get("$local.rowdata");
if (rowData["AB_ATTRIBUTE_ID.value"] && rowData["VALUE.value"]) if (rowData["AB_ATTRIBUTE_ID.value"])
{ {
newWhere("AB_ATTRIBUTERELATION.AB_ATTRIBUTERELATIONID", vars.get("$local.uid")) newWhere("AB_ATTRIBUTERELATION.AB_ATTRIBUTERELATIONID", vars.get("$local.uid"))
.deleteData(true, "AB_ATTRIBUTERELATION") .deleteData(true, "AB_ATTRIBUTERELATION")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment