From: phasefx Date: Wed, 20 Oct 2010 15:24:51 +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=2c3574a7ff5a3a92975d1bbe4a75cfa334a9e798;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_1@18406 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) {