From 5ca492d05845ac364ca03c7d09c46e82b0f12cbd Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 12 Mar 2009 16:18:34 +0000 Subject: [PATCH] fix for Cancel in patron editor for existing patron git-svn-id: svn://svn.open-ils.org/ILS/trunk@12491 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/ue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/ue.js b/Open-ILS/xul/staff_client/server/patron/ue.js index 2a3bec45d3..fae0c4f219 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue.js +++ b/Open-ILS/xul/staff_client/server/patron/ue.js @@ -664,7 +664,7 @@ function uEditCancel() { 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; } -- 2.11.0