From e9c64425a8df9e91c9f14051e87138edd5d84aeb Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Sat, 14 May 2011 13:40:36 -0400 Subject: [PATCH] This function also gets used with authority queues, so don't assume import_items() --- Open-ILS/web/js/ui/default/vandelay/vandelay.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/vandelay/vandelay.js b/Open-ILS/web/js/ui/default/vandelay/vandelay.js index ea06944971..e78ebcc329 100644 --- a/Open-ILS/web/js/ui/default/vandelay/vandelay.js +++ b/Open-ILS/web/js/ui/default/vandelay/vandelay.js @@ -675,7 +675,10 @@ function vlGetViewErrors(rowIdx, item) { // id:rec_error:item_import_error_count return id + ':' + (rec.import_error() ? 1 : '') + ':' + - rec.import_items().filter(function(i) {return i.import_error()}).length; + (typeof rec.import_items == 'function' + ? rec.import_items().filter(function(i) {return i.import_error()}).length + :'' + ); } return -1 } -- 2.43.2