1-line fix for false 404 from sylvar
authoratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 24 Aug 2010 15:40:02 +0000 (15:40 +0000)
committeratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 24 Aug 2010 15:40:02 +0000 (15:40 +0000)
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_1_6_0@17325 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/ue.js

index 8de0aba..ead778e 100644 (file)
@@ -642,7 +642,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;
                }