Skip to content

Commit a5bb64c

Browse files
committed
Fixing the code to be Jasper/SDK compliant.
1 parent e859f85 commit a5bb64c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

eFormAPI/eFormAPI/Infrastructure/Helpers/CaseUpdateHelper.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@ public static List<string> GetFieldValuesByRequestField(CaseEditRequestField edi
4646
var checkBoxfirst = editRequestField?.FieldValues?.First();
4747
if (checkBoxfirst?.Value != null && checkBoxfirst?.FieldId != null)
4848
{
49-
string val = $"{checkBoxfirst.FieldId}|{checkBoxfirst.Value.ToString()}";
49+
string val;
50+
if (checkBoxfirst.Value.ToString() == "1" || checkBoxfirst.Value.ToString() == "checked")
51+
{
52+
val = $"{checkBoxfirst.FieldId}|checked";
53+
} else
54+
{
55+
val = $"{checkBoxfirst.FieldId}|unchecked";
56+
}
5057
list.Add(val);
5158
}
5259

@@ -55,7 +62,7 @@ public static List<string> GetFieldValuesByRequestField(CaseEditRequestField edi
5562
var commentFirst = editRequestField?.FieldValues?.First();
5663
if (commentFirst?.Value != null && commentFirst?.FieldId != null)
5764
{
58-
string val = $"{commentFirst.FieldId}|{commentFirst.Value.ToString().Replace("</p>", "<br>").Replace("<p>", "").Replace("<div>", "").Replace("</div>", "<br>").Replace("&nbsp;", "").Replace("</span>","").Replace("<span style=\"font-size: 1rem;\">","")}";
65+
string val = $"{commentFirst.FieldId}|{commentFirst.Value.ToString().Replace("</p>", "<br>").Replace("<p>", "").Replace("<div>", "").Replace("</div>", "<br>").Replace("&nbsp;", "").Replace("</span>","").Replace("<span style=\"font-size: 1rem;\">","").Replace("</br>","<br>")}";
5966
list.Add(val);
6067
}
6168

0 commit comments

Comments
 (0)