From 526a2f44c9eb0919659656e3d866d4685d0269ae Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 6 Mar 2012 14:08:04 -0500 Subject: [PATCH] Bug 7656 - "undefined" pop-up message when putting hold on reference item This is a single line fix. Initializing the msg var to an empty string solves the problem. Signed-off-by: Jared Camins-Esakov Signed-off-by: Paul Poulain Signed-off-by: Jared Camins-Esakov --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 1719af4b76..ec8bfdf141 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -93,7 +93,7 @@ function checkMultiHold() { $(document).ready(function() { $("input.needsoverride").click(function() { // This must be before the radio button/checkbox switch logic var itemnumber = this.value; - var msg; + var msg = ''; switch (override_items[itemnumber].holdallowed) { case 0: msg = _( 'This item normally cannot be put on hold.' ); break; -- 2.39.5