Mercurial > p > roundup > code
diff roundup/cgi/actions.py @ 3581:d10008f756a4
fix saving of queries [SF#1436169]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 02 Mar 2006 23:51:08 +0000 |
| parents | f6719836e521 |
| children | ccf516e6c3f8 |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Thu Mar 02 23:47:13 2006 +0000 +++ b/roundup/cgi/actions.py Thu Mar 02 23:51:08 2006 +0000 @@ -1,4 +1,4 @@ -#$Id: actions.py,v 1.58 2006-02-08 04:03:54 richard Exp $ +#$Id: actions.py,v 1.59 2006-03-02 23:51:08 richard Exp $ import re, cgi, StringIO, urllib, Cookie, time, random, csv, codecs @@ -192,7 +192,7 @@ qids = self.db.query.filter(None, {'name': old_queryname, 'creator': uid}) - if qids: + if qids and old_queryname: # edit query - make sure we get an exact match on the name for qid in qids: if old_queryname != self.db.query.get(qid, 'name'):
