From 3f1b24c61588bfb534a4af05d86c3e916daabfbb Mon Sep 17 00:00:00 2001
From: Frankie Roberto <30665+frankieroberto@users.noreply.github.com>
Date: Tue, 23 Jun 2026 11:30:42 +0100
Subject: [PATCH] Bugfix: missing joinWithAnd filter
The `joinWithAnd` was used by this isn't defined anywhere.
Switching it to `join(" and ")` instead, so that those pages render.
This could be refactored into a `joinWithAnd` filter later if needed.
---
app/views/appointments/_cancelled.html | 2 +-
app/views/appointments/_completed.html | 2 +-
app/views/appointments/_scheduled.html | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/views/appointments/_cancelled.html b/app/views/appointments/_cancelled.html
index b5e5c173..1702c86f 100644
--- a/app/views/appointments/_cancelled.html
+++ b/app/views/appointments/_cancelled.html
@@ -25,7 +25,7 @@
{{ appointment.patient.dateOfBirth | age }} old
- {{ appointment.vaccinations | joinWithAnd }}
+ {{ appointment.vaccinations | join(" and ") }}
|
diff --git a/app/views/appointments/_completed.html b/app/views/appointments/_completed.html
index db279cba..837eaec4 100644
--- a/app/views/appointments/_completed.html
+++ b/app/views/appointments/_completed.html
@@ -24,7 +24,7 @@
{{ appointment.patient.dateOfBirth | age }} old
|
- {{ appointment.vaccinations | joinWithAnd }}
+ {{ appointment.vaccinations | join(" and ") }}
|
{% if appointment.patient.contactDetails.mobile %}
diff --git a/app/views/appointments/_scheduled.html b/app/views/appointments/_scheduled.html
index 333e12ca..f1b15d6a 100644
--- a/app/views/appointments/_scheduled.html
+++ b/app/views/appointments/_scheduled.html
@@ -28,7 +28,7 @@
{{ appointment.patient.dateOfBirth | age }} old
|
- {{ appointment.vaccinations | joinWithAnd }}
+ {{ appointment.vaccinations | join(" and ") }}
|
{% if appointment.patient.contactDetails.mobile %}
|