From af765d348fdc4ba7106dc3ee767ccd71f86835d5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 25 Apr 2018 16:52:07 -0300 Subject: [PATCH] Bug 20659: Fix blocking errors display The include file blocking-errors.inc has been created to by-pass regular processing and display an error that should block the elements of the view. For instance you call a patron's page with invalid borrowernumber => we do not want the app to crash (500) or the page to display with broken elements. It worked well on bug 18403 but it's now broken, a blank page is displayed instead. It may be caused by the move of the JS to the bottom of the page. Test plan: hit /cgi-bin/koha/members/moremember.pl?borrowernumber=45432 Without this patch a blank page is displayed. With this patch you see the blocking error Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/includes/blocking_errors.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/blocking_errors.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/blocking_errors.inc index 2d25a16da0..4be8110e46 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/blocking_errors.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/blocking_errors.inc @@ -6,5 +6,6 @@ [% CASE %][% blocking_error %] [% END %] + [% INCLUDE 'intranet-bottom.inc' %] [% STOP %] [%# Will stop gracefully without processing any more of the template document.%] [% END %] -- 2.39.5