Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed code that assumed maturity #4185

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1899,12 +1899,12 @@ from i in i1.DefaultIfEmpty()
obs.ResolutionDate = f.b.Resolution_Date;
obs.Importance = f.Value;


// get the question identifier and text
GetQuestionTitleAndText(f, standardQuestions, componentQuestions, f.c.Answer_Id,
out string qid, out string qtxt);

var temp = _maturityBusiness.GetMaturityModel(_assessmentId).ModelTitle;
if (_maturityBusiness.GetMaturityModel(_assessmentId).ModelName == "CIE")
if (_maturityBusiness.GetMaturityModel(_assessmentId)?.ModelName == "CIE")
{
GetQuestionTitleAndTextForCie(f, standardQuestions, componentQuestions, f.c.Answer_Id,
out qid, out qtxt);
Expand All @@ -1914,6 +1914,7 @@ from i in i1.DefaultIfEmpty()
obs.QuestionText = qtxt;



var othersList = (from a in f.b.FINDING_CONTACT
join b in _context.ASSESSMENT_CONTACTS on a.Assessment_Contact_Id equals b.Assessment_Contact_Id
select FormatName(b.FirstName, b.LastName)).ToList();
Expand Down Expand Up @@ -2887,13 +2888,5 @@ from b in _context.VIEW_QUESTIONS_STATUS.Where(x => x.Answer_Id == a.Answer_Id).

return maturityDomains;
}

//public TempDataAttribute GetStandardAnsweredQuestionsList()
//{

//}
}
}



Loading