From: phasefx Date: Thu, 12 Mar 2009 16:18:34 +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=5ca492d05845ac364ca03c7d09c46e82b0f12cbd;p=evergreen%2Ftadl.git 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 --- 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; }