Skip to content

Commit

Permalink
Merge pull request #2275 from vishnubansaltarento/kb-5608-5609-fix
Browse files Browse the repository at this point in the history
update for issue if more then 100 question compatibility level
  • Loading branch information
vishnubansaltarento authored Jul 6, 2024
2 parents e418718 + 2014ede commit 09d7b2d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ export class PracticeComponent implements OnInit, OnChanges, OnDestroy {
const setStartIndex = this.noOfQuestionsPerSet * this.currentSetNumber
const setEndIndex = setStartIndex + this.noOfQuestionsPerSet
const secQuestions = qq.slice(setStartIndex, setEndIndex)
return secQuestions
return this.selectedAssessmentCompatibilityLevel < 7 ? qq : secQuestions
}

get hasNextSet(): boolean {
Expand Down Expand Up @@ -655,7 +655,10 @@ export class PracticeComponent implements OnInit, OnChanges, OnDestroy {
}
}
getMultiQuestions(ids: string[]) {
return this.quizSvc.getQuestions(ids, this.identifier).toPromise()
if (this.selectedAssessmentCompatibilityLevel < 7) {
return this.quizSvc.getQuestionsV4(ids, this.identifier).toPromise()
}
return this.quizSvc.getQuestions(ids, this.identifier).toPromise()
}
getRhsValue(question: NSPractice.IQuestionV2) {
if (question && question.qType) {
Expand Down

0 comments on commit 09d7b2d

Please sign in to comment.