Bug 20659: Fix blocking errors display
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 25 Apr 2018 19:52:07 +0000 (16:52 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 25 Apr 2018 19:52:07 +0000 (16:52 -0300)
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 <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/blocking_errors.inc

index 2d25a16..4be8110 100644 (file)
@@ -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 %]