From d9868fcf62c6203ef51002c2097bf99ed88a061d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Fri, 2 Sep 2022 18:51:25 +0000 Subject: [PATCH] Bug 31516: Add error message for viewing enrollments for a non-existent club To test: 1) Go to non-existent club's enrollment page, e.g. http://localhost:8081/cgi-bin/koha/clubs/club-enrollments.pl?id=1010101001000 2) Notice the not fully filled header text and empty table 3) Apply patch and revisit the page to see the proper error message given Signed-off-by: David Nind --- .../intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt index 4383291728..ab26a7bc26 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt @@ -36,7 +36,9 @@
- + [% IF !club %] +
The club you requested does not exist.
+ [% ELSE %]

Club enrollments for [% club.name | html %]

@@ -61,6 +63,7 @@ [% END %]
+ [% END %]
-- 2.30.2