Skip to content

Commit 400c8a8

Browse files
Merge branch 'develop' into release/12.2.1.0
2 parents f9a4f67 + faea50c commit 400c8a8

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Reports/ReportsDataBusiness.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,6 +1781,12 @@ private void GetQuestionTitleAndText(dynamic f,
17811781
identifier = f.mq.Question_Title;
17821782
questionText = f.mq.Question_Text;
17831783

1784+
// CPG is a special case
1785+
if (!String.IsNullOrEmpty(f.mq.Security_Practice))
1786+
{
1787+
questionText = f.mq.Security_Practice;
1788+
}
1789+
17841790
// overlay
17851791
MaturityQuestionOverlay o = _overlay.GetMaturityQuestion(f.mq.Mat_Question_Id, lang);
17861792
if (o != null)

CSETWebNg/src/app/reports/cpg/cpg-deficiency/cpg-deficiency.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ <h1 class="page-title">{{t('reports.core.cpg.deficiency.deficiencies')}}</h1>
4545
<tr>
4646
<td class="deficiencies-list-item" style="font-weight: bold; width: 50px;">{{s.mat.question_Title}}
4747
</td>
48-
<td class="deficiencies-list-comment">{{parseQuestionText(s.mat.question_Text)}}</td>
48+
<td class="deficiencies-list-comment">{{s.mat.security_Practice}}</td>
4949
<td style="padding-top: 1rem; padding-left: 1rem; vertical-align: top; color: #555555">
5050
<div style="width: 9rem; font-weight: bold;">
51-
<!-- {{s.answer.answer_Text}} -->
5251
{{questionsSvc.answerDisplayLabel(11, s.answer.answer_Text)}}
5352
</div>
5453
</td>

CSETWebNg/src/app/reports/cpg/cpg-deficiency/cpg-deficiency.component.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,4 @@ export class CpgDeficiencyComponent implements OnInit {
8787
this.loading = true;
8888
})
8989
}
90-
91-
parseQuestionText(textWithHtml: string) {
92-
let startOfRealText = textWithHtml.indexOf(this.cpgPracticeTag) + this.cpgPracticeTag.length;
93-
let endOfRealText = textWithHtml.indexOf('<', startOfRealText);
94-
95-
return textWithHtml.substring(startOfRealText, endOfRealText);
96-
}
97-
9890
}

0 commit comments

Comments
 (0)