Code

fix re-enabling queries (sf bug 861940)
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Sat, 17 Jan 2004 01:59:33 +0000 (01:59 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Sat, 17 Jan 2004 01:59:33 +0000 (01:59 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2041 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/client.py

index 5929d92698d268199d02ed3cbcd7ac35a46e2c64..2e2c67f2c680a0f3c93882b0593b2304e600090b 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.150 2004-01-15 00:01:15 richard Exp $
+# $Id: client.py,v 1.151 2004-01-17 01:59:33 richard Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -1322,10 +1322,10 @@ You should then receive another email with the new password.
                 qid = self.db.query.create(name=queryname,
                     klass=self.classname, url=url)
 
-                # and add it to the user's query multilink
-                queries = self.db.user.get(self.userid, 'queries')
-                queries.append(qid)
-                self.db.user.set(self.userid, queries=queries)
+            # and add it to the user's query multilink
+            queries = self.db.user.get(self.userid, 'queries')
+            queries.append(qid)
+            self.db.user.set(self.userid, queries=queries)
 
             # commit the query change to the database
             self.db.commit()