From: atz Date: Tue, 24 Aug 2010 15:23:31 +0000 (+0000) Subject: 1-line fix for false 404 from sylvar X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=54e38d24a572efb1f2a4760bb1fd57f7838e417c;p=contrib%2FConifer.git 1-line fix for false 404 from sylvar solves "The requested URL /xul/rel_1_6_0_7/server/patron/ue.xhtml&clone=112879 was not found on this server." git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@17324 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 793f5be0b6..f90bfb9f09 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 uEditSaveUser(cloneme) { var href = location.href; href = href.replace(/\&?usr=\d+/, ''); href = href.replace(/\&?clone=\d+/, ''); - href += '&clone=' + cloneme; + href += (href.match(/\?/) ? "&" : "?") + 'clone=' + cloneme; location.href = href; }