Skip to content
Snippets Groups Projects
Commit cdd1c901 authored by David Büchler's avatar David Büchler
Browse files

Wird ein Dublettenfilter gelöscht, werden nun alle Unterfilter mitgelöscht

parent f1f26778
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,7 @@
<dbRecordContainer>
<name>DBRecordContainer</name>
<alias>Data_alias</alias>
<onDBDelete>%aditoprj%/entity/DuplicateScan_entity/recordcontainers/dbrecordcontainer/onDBDelete.js</onDBDelete>
<linkInformation>
<linkInformation>
<name>b61b26d3-e823-45ba-9ac5-12acaaa1ec15</name>
......
import("system.db");
import("system.vars");
import("Sql_lib");
var currentId = vars.getString("$field.UID");
if (currentId)
{
var toDelete = [
"DUPLICATESCANCONDITIONCONFIG",
];
toDelete = toDelete.map(function(pTable)
{
return [pTable, SqlCondition.equals(pTable + ".DUPLICATESCAN_ID", currentId, "1=2")]
});
db.deletes(toDelete);
}
\ No newline at end of file
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