Skip to content

Commit

Permalink
MAN-165 - display lc note field, even if it is blank (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj authored Nov 13, 2024
1 parent caa491b commit eaa15cb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 1 addition & 3 deletions server/views/pages/sentence.njk
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@
{% endif %}
{% endset %}
{% set notes = notes.concat(note) %}
{% else %}
{% set notes = 'No notes' %}
{% endfor %}
{% set licenceHtml %}
{{ govukSummaryList({
Expand All @@ -168,7 +166,7 @@
{
key: { text: 'Notes' },
value: { html: notes }
} if notes != 'No notes'
}
]
}) }}
{% endset %}
Expand Down
16 changes: 16 additions & 0 deletions wiremock/mappings/X000001-sentence.json
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,22 @@
"mainDescription": "Licence - Prohibited Activity",
"imposedReleasedDate": "2023-09-26",
"licenceConditionNotes": []
},
{
"id": 101,
"mainDescription": "Residence at a specific place",
"subTypeDescription": "Bespoke Condition (See Notes)",
"imposedReleasedDate": "2024-10-03",
"actualStartDate": "2023-11-15",
"licenceConditionNotes": [
{
"id": 1,
"createdBy": "Gary Jones",
"createdByDate": "2021-10-04",
"note": "Need to be home by 10pm.",
"hasNoteBeenTruncated": false
}
]
}
]
}
Expand Down

0 comments on commit eaa15cb

Please sign in to comment.