From: Jeff Davis Date: Mon, 1 Jun 2015 23:16:25 +0000 (-0700) Subject: fix JS TypeError that prevents stat cats from displaying in stat cat editor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fjeffdavis%2Flp1477677-stat-cats-not-visible-in-editor;p=working%2FEvergreen.git fix JS TypeError that prevents stat cats from displaying in stat cat editor Signed-off-by: Jeff Davis --- diff --git a/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.js b/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.js index 32bffae30a..acfbaff09f 100644 --- a/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.js +++ b/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.js @@ -211,7 +211,7 @@ function scInsertCat( tbody, cat, type ) { else unHideMe($n(row, 'sc_opac_invisible')); - if(cat.sip_field().length != 2) + if(cat.sip_field() !== null && cat.sip_field().length != 2) unHideMe($n(row, 'sc_sip_field_none')); else { $n(row, 'sc_sip_field_value').appendChild( text( cat.sip_field() ) );