From eab0ef37637139fcb56f2546c0cc7a3b23aa97ff 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 6dee94d0cf..55d9c2b584 100644 --- a/Open-ILS/web/opac/skin/default/js/holds.js +++ b/Open-ILS/web/opac/skin/default/js/holds.js @@ -460,7 +460,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