[open-ils-commits] r17325 - branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron (atz)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Aug 24 11:40:05 EDT 2010


Author: atz
Date: 2010-08-24 11:40:02 -0400 (Tue, 24 Aug 2010)
New Revision: 17325

Modified:
   branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js
Log:
1-line fix for false 404 from sylvar

solves "The requested URL /xul/rel_1_6_0_7/server/patron/ue.xhtml&clone=112879 was not found on this server."

Modified: branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js
===================================================================
--- branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js	2010-08-24 15:23:31 UTC (rev 17324)
+++ branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js	2010-08-24 15:40:02 UTC (rev 17325)
@@ -642,7 +642,7 @@
 			var href = location.href;
 			href = href.replace(/\&?usr=\d+/, '');
 			href = href.replace(/\&?clone=\d+/, '');
-			href += '&clone=' + cloneme;
+			href += (href.match(/\?/) ? "&" : "?") + 'clone=' + cloneme;
 			location.href = href;
 		}
 



More information about the open-ils-commits mailing list