From bdd8eb5a814c2c9699f3728f7d32ae33bd6732c2 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 --- 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 fa45e26637..2771c6f3af 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