From 117620da611ca5435bb5389bf2fa0a06f1246e2e Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 30 Sep 2009 18:39:16 +0000 Subject: [PATCH] if given a bad barcode, set_penalty_css was throwing an error git-svn-id: svn://svn.open-ils.org/ILS/trunk@14228 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/util.js b/Open-ILS/xul/staff_client/server/patron/util.js index 957e421a11..56e0a6a883 100644 --- a/Open-ILS/xul/staff_client/server/patron/util.js +++ b/Open-ILS/xul/staff_client/server/patron/util.js @@ -597,7 +597,7 @@ patron.util.retrieve_fleshed_au_via_barcode = function(session, id) { 'FM_AU_RETRIEVE_VIA_BARCODE.authoritative', [ session, id ] ); - patron.util.set_penalty_css(patron_obj); + if (typeof patron_obj.ilsevent == 'undefined') patron.util.set_penalty_css(patron_obj); return patron_obj; } -- 2.11.0