From ca456ed3a5ee290b7a80acf9b94e8a95bebc5ab8 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 12 Mar 2009 16:21:19 +0000 Subject: [PATCH] fix for Cancel in patron editor for existing patron git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4_0@12493 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 8ab42d2e8a..5333332294 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue.js +++ b/Open-ILS/xul/staff_client/server/patron/ue.js @@ -638,7 +638,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