[open-ils-commits] r12491 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 12 12:18:36 EDT 2009
Author: phasefx
Date: 2009-03-12 12:18:34 -0400 (Thu, 12 Mar 2009)
New Revision: 12491
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/ue.js
Log:
fix for Cancel in patron editor for existing patron
Modified: trunk/Open-ILS/xul/staff_client/server/patron/ue.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/ue.js 2009-03-12 15:57:37 UTC (rev 12490)
+++ trunk/Open-ILS/xul/staff_client/server/patron/ue.js 2009-03-12 16:18:34 UTC (rev 12491)
@@ -664,7 +664,7 @@
if (xulG) if (xulG.usr) id = xulG.usr;
if (xulG) if (xulG.params) if (xulG.params.usr) id = xulG.params.usr;
/* reload the current user if available */
- if( id ) href += "&usr=" + id;
+ if( id ) href += (href.match(/\?/) ? "&" : "?") + "usr=" + id;
location.href = href;
}
More information about the open-ils-commits
mailing list