From a97ba699b3a8c5312e067b433e6e8e4702d40fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Fri, 2 Sep 2022 18:44:24 +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 --- .../intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt | 6 +++++- 1 file changed, 5 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..76b3a9bf77 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,9 +36,12 @@
- + [% IF !club %] +
The club you requested does not exist.
+ [% ELSE %]

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

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