fix record result page in opac so that lack of an rt parameter works correctly
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Oct 2010 15:24:45 +0000 (15:24 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Oct 2010 15:24:45 +0000 (15:24 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@18405 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/rresult.js

index 4a7fb35..47df34e 100644 (file)
@@ -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) {