Skip to content
Snippets Groups Projects
Commit b2d32387 authored by Pascal Neub's avatar Pascal Neub Committed by Sebastian Listl
Browse files

[Projekt: xRM-ContactManagement][TicketNr.: 1074059][Email_lib: Parameter...

[Projekt: xRM-ContactManagement][TicketNr.: 1074059][Email_lib: Parameter Anzahl / Reihenfolge für EmailWritingUtils.openNewMail() und EmailWritingUtils.sendReportAsMail() falsch.]
parent 49b2292f
No related branches found
No related tags found
No related merge requests found
......@@ -769,7 +769,7 @@ AttributeRelationUtils.validateAttributeCount = function (pRowId, pObjectType, p
}, countObj);
}
var possibleAttributes = AttributeUtil.getPossibleAttributes(pObjectType, undefined, pFilteredAttributeIds);
var possibleAttributes = AttributeUtil.getPossibleAttributes(pObjectType, undefined, pFilteredAttributeIds) || [];
var minMaxCounts = [];
if (possibleAttributes.length > 0)
......@@ -794,8 +794,8 @@ AttributeRelationUtils.validateAttributeCount = function (pRowId, pObjectType, p
// get all possible parent attributes
var possibleParentAttributes = newSelect("distinct ATTRIBUTE_PARENT_ID")
.from("AB_ATTRIBUTE")
.where("AB_ATTRIBUTE.AB_ATTRIBUTEID", possibleAttributes, SqlBuilder.IN())
.arrayColumn();
.whereIfSet("AB_ATTRIBUTE.AB_ATTRIBUTEID", possibleAttributes, SqlBuilder.IN())
.arrayColumn(true);
// remove empty elements
possibleParentAttributes = possibleParentAttributes.filter(function (el) { return el != null && el != ""; });
......
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