From 6886b8a47e1cf9d2f88ebc88b91524aff01cfc0e Mon Sep 17 00:00:00 2001 From: =?utf8?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 Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit c757abd675c538a55c93bf3e337e16c0911d06e7) Signed-off-by: Lucas Gass (cherry picked from commit 0de714bbadb050c3a1eecec7670ec38bf8a69cf3) Signed-off-by: Arthur Suzuki --- .../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.39.5