]> git.koha-community.org Git - koha.git/commit
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)
commitaf765d348fdc4ba7106dc3ee767ccd71f86835d5
tree557105b4d167925d75e562a869b44b5c6994975e
parent53045699eb84926f41b3316fd9f96bed7671dbed
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 <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/blocking_errors.inc