From d5aaefd25fc41cacdd3462ddcb5ebdfc205f2d73 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 27 Sep 2011 15:42:49 -0400 Subject: [PATCH] LP#860845 hold placement UI can break hold placement UI can break and give misleading error on Submit Adds some defensive coding, but since I don't quite grok everything going on here, may not be the best fix. Signed-off-by: Jason Etheridge Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/web/opac/skin/default/js/holds.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/opac/skin/default/js/holds.js b/Open-ILS/web/opac/skin/default/js/holds.js index 4d1329fe59..61dd8a4459 100644 --- a/Open-ILS/web/opac/skin/default/js/holds.js +++ b/Open-ILS/web/opac/skin/default/js/holds.js @@ -544,7 +544,9 @@ function __holdsDrawWindow() { return (i.record() == holdArgs.record); } ); - formats = desc[0].item_type(); + if (desc) { + formats = desc[0].item_type(); + } } if( holdArgs.type == 'M' ) { -- 2.11.0