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

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

index 793f5be..f90bfb9 100644 (file)
@@ -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;
         }