Skip to content

Commit 8d316f6

Browse files
Fix display of site name (#519)
1 parent dac973b commit 8d316f6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/routes/records.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ module.exports = router => {
120120
vaccination.vaccine = data.vaccine
121121
vaccination.vaccineProduct = data.vaccineProduct
122122
}
123-
if (data.deliveryTeam) {
124-
vaccination.deliveryTeam = data.deliveryTeam
123+
if (data.siteId) {
124+
vaccination.siteId = data.siteId
125125
}
126126
if (data.vaccinator) {
127127
vaccination.vaccinator = data.vaccinator

app/views/record-vaccinations/review-previous.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
3838
text: "Site"
3939
},
4040
value: {
41-
text: (currentOrganisation.sites | findById(data.deliveryTeam)).name
41+
text: (currentOrganisation.sites | findById(data.siteId)).name
4242
},
4343
actions: {
4444
items: [

app/views/records/delivery-team.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
<input type="hidden" name="changedField" value="Site">
2020

2121
{{ radios({
22-
idPrefix: "deliveryTeam",
23-
name: "deliveryTeam",
22+
idPrefix: "site-id",
23+
name: "siteId",
2424
fieldset: {
2525
legend: {
2626
text: "Which site was it?",
2727
classes: "nhsuk-fieldset__legend--l",
2828
isPageHeading: true
2929
}
3030
},
31-
value: data.deliveryTeam,
31+
value: data.siteId,
3232
items: [
3333
{
3434
value: "Anne Ward Maternity Unit",

0 commit comments

Comments
 (0)