Skip to content
Snippets Groups Projects
Commit 36af0f88 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

Attribute onUpdate and onDelete used wrong uid

parent 30739bc5
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,10 @@ import("Sql_lib");
import("system.vars");
import("Attribute_lib");
newWhere("AB_ATTRIBUTE.AB_ATTRIBUTEID", "$field.UID")
newWhere("AB_ATTRIBUTE.AB_ATTRIBUTEID", "$local.uid")
.deleteData();
var attributeId = vars.get("$field.UID");
var attributeId = vars.get("$local.uid");
var childIds = AttributeUtil.getAllChildren(attributeId).concat(attributeId);
......
......@@ -20,5 +20,5 @@ vars.get("$local.changed").forEach(function (field)
fieldValues[dbField] = rowdata[field] || "";
});
newWhere("AB_ATTRIBUTE.AB_ATTRIBUTEID", "$field.UID")
newWhere("AB_ATTRIBUTE.AB_ATTRIBUTEID", "$local.uid")
.updateFields(fieldValues);
......@@ -34,10 +34,6 @@
<name>70953962-9472-484b-ac95-567d2249f42e</name>
<entityField>ATTRIBUTE_ACTIVE</entityField>
</entityFieldLink>
<entityFieldLink>
<name>1b1cfdcb-fcab-4ca9-b0e0-b69fe88b65f0</name>
<entityField>SORTING</entityField>
</entityFieldLink>
</fields>
</genericViewTemplate>
<neonViewReference>
......
......@@ -233,7 +233,7 @@ HasLinkedObjectTester._testForConsumer = function ()
*/
HasLinkedObjectTester._testForCallback = function ()
{
fnResult = this.callbackFn();
var fnResult = this.callbackFn();
return this.failValue
? fnResult != this.failValue
: fnResult;
......
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