Bug 21064: Use undefined instead of undef
authorNick Clemens <nick@bywatersolutions.com>
Thu, 12 Jul 2018 10:18:10 +0000 (10:18 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 19 Jul 2018 16:24:30 +0000 (16:24 +0000)
To test:
1 - Load the advanced cataloging editor
2 - Refresh the page several times
3 - Check the JS console, you shoudl see an error:
    'undef is not defined'
4 - Apply patch
5 - Try again, should be no error

Signed-off-by: Pierre-Luc Lapointe <pierreluc.lapointe@inLibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc

index 4f9a76a..d052fd9 100644 (file)
@@ -1089,7 +1089,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
             if(editor.modified )
                 { return 1; }
             else
-                { return undef; }
+                { return undefined; }
         };
 
         // Start editor