From: Jason Etheridge Date: Sat, 14 May 2011 17:40:36 +0000 (-0400) Subject: This function also gets used with authority queues, so don't assume import_items() X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e9c64425a8df9e91c9f14051e87138edd5d84aeb;p=evergreen%2Fequinox.git This function also gets used with authority queues, so don't assume import_items() --- 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 }