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

Merge branch 'sales_1082421_FixClassificationAddingGroupError' into '2021.1'

[Projekt: xRM-Sales][TicketNr.: 1082421][Klassifizierung: Problem wenn...

See merge request xrm/basic!1061
parents 5ace02c0 65c60ca9
No related branches found
No related tags found
No related merge requests found
......@@ -131,10 +131,27 @@ ClassificationUtils.getClassificationGroup = function(pClassificationType)
.from("CLASSIFICATIONTYPE")
.where("CLASSIFICATIONTYPE.CLASSIFICATIONTYPEID", pClassificationType)
.groupBy("CLASSIFICATIONGROUP_ID")
.cell()
.cell();
return classificationGroupId;
}
/**
* Gets the classificationTypeIds of a classification group.<br>
*
* @param {String} pClassificationGroupId <p>
* The classificationGroupId<br>
* @return {Array} <p>
* The classificationTypeIds of the chosen pClassificationGroupId<br>
*/
ClassificationUtils.getClassificationTypesOfGroup = function(pClassificationGroupId)
{
var classificationTypeIds = newSelect("CLASSIFICATIONTYPE.CLASSIFICATIONTYPEID")
.from("CLASSIFICATIONTYPE")
.where("CLASSIFICATIONTYPE.CLASSIFICATIONGROUP_ID", pClassificationGroupId)
.arrayRow();
return classificationTypeIds;
}
/**
* Get all classification type ids for a score using it's unique classification score id.<br>
*
......
......@@ -634,7 +634,7 @@ StringUtils.replaceAt = function(pPlainInputStr, pIndex, pReplacement)
return pPlainInputStr.valueOf();
}
return pPlainInputStr.substring(0, pIndex) + pReplacement + pPlainInputStr.substring(pIndex + 1);
return pPlainInputStr.substring(0, pIndex) + pReplacement + pPlainInputStr.substring(eMath.addInt(pIndex, 1));
}
......
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