Skip to content
Snippets Groups Projects
Commit 44f95568 authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

#1060627-LeadimportMappingassistent Löschen der Mappings bei Löschung des Leadimports

parent b4a0e9fa
No related branches found
No related tags found
No related merge requests found
......@@ -22,12 +22,13 @@ newSelect("LEADLOGID")
binMetadata = binMetadata.concat(db.getBinaryMetadata("LEADLOG", "ERRORLOG", leadLogId, false, SqlUtils.getBinariesAlias(), ""));
});
if(leadImportId != "")//delete the connected importfields
if(leadImportId != "")//delete the connected importfields und der Mappings
{
newWhere("IMPORTFIELD.LEADIMPORT_ID", leadImportId).deleteData();
newWhere("LEADTEMP.ROW_ID", leadImportId).deleteData();
newWhere("LEAD.LEADIMPORT_ID", leadImportId).deleteData();
newWhere("LEADLOG.LEADIMPORT_ID", leadImportId).deleteData();
newWhere("LEADIMPORTMAPPINGASSISTANT.LEADIMPORT_ID", leadImportId).deleteData();
}
binMetadata.forEach(function(pMeta)
......
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