[open-ils-commits] r18405 - branches/rel_1_6_0/Open-ILS/web/opac/skin/default/js (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Oct 20 11:24:47 EDT 2010


Author: phasefx
Date: 2010-10-20 11:24:45 -0400 (Wed, 20 Oct 2010)
New Revision: 18405

Modified:
   branches/rel_1_6_0/Open-ILS/web/opac/skin/default/js/rresult.js
Log:
fix record result page in opac so that lack of an rt parameter works correctly

Modified: branches/rel_1_6_0/Open-ILS/web/opac/skin/default/js/rresult.js
===================================================================
--- branches/rel_1_6_0/Open-ILS/web/opac/skin/default/js/rresult.js	2010-10-20 15:24:37 UTC (rev 18404)
+++ branches/rel_1_6_0/Open-ILS/web/opac/skin/default/js/rresult.js	2010-10-20 15:24:45 UTC (rev 18405)
@@ -31,7 +31,7 @@
 	var ids;
 
     var rtype = getRtype();
-    if (rtype.indexOf('|') > -1)
+    if (rtype && rtype.indexOf('|') > -1)
         rtype = rtype.substring(0,rtype.indexOf('|'));
 
 	switch(rtype) {



More information about the open-ils-commits mailing list