From: phasefx Date: Thu, 12 Mar 2009 16:21:19 +0000 (+0000) Subject: fix for Cancel in patron editor for existing patron X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ca456ed3a5ee290b7a80acf9b94e8a95bebc5ab8;p=Evergreen.git 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 --- 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; }