From: phasefx Date: Wed, 20 Oct 2010 15:24:37 +0000 (+0000) Subject: fix record result page in opac so that lack of an rt parameter works correctly X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=81047bc888e7f888554684e9336887615d3b5341;p=Evergreen.git fix record result page in opac so that lack of an rt parameter works correctly git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@18404 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/js/rresult.js b/Open-ILS/web/opac/skin/default/js/rresult.js index 4a7fb35957..47df34e808 100644 --- a/Open-ILS/web/opac/skin/default/js/rresult.js +++ b/Open-ILS/web/opac/skin/default/js/rresult.js @@ -31,7 +31,7 @@ function rresultCollectIds() { var ids; var rtype = getRtype(); - if (rtype.indexOf('|') > -1) + if (rtype && rtype.indexOf('|') > -1) rtype = rtype.substring(0,rtype.indexOf('|')); switch(rtype) {