Skip to content
Snippets Groups Projects
Commit 65c60ca9 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

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

[Projekt: xRM-Sales][TicketNr.: 1082421][Klassifizierung: Problem wenn classificationGroup dazukommt]
parent dd572d3b
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