Bug 7656 - "undefined" pop-up message when putting hold on reference item
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 6 Mar 2012 19:08:04 +0000 (14:08 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 16 Mar 2012 11:10:40 +0000 (12:10 +0100)
This is a single line fix. Initializing the msg var to an empty
string solves the problem.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt

index fa45e26..2771c6f 100644 (file)
@@ -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;