Code

Correct handling of a Multilink filterspec with an empty list of linked-to items.
authorstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 20 Feb 2009 04:54:13 +0000 (04:54 +0000)
committerstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 20 Feb 2009 04:54:13 +0000 (04:54 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4153 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/backends/rdbms_common.py

index dc7264830decd4e27accf113555305c8632536d2..d0e358fcecbb55cae1fcbfa863045ed77605d339 100644 (file)
@@ -2206,7 +2206,7 @@ class Class(hyperdb.Class):
                 if p.sort_type < 2:
                     mlfilt = 1
                     tn = '%s_%s'%(pcn, k)
-                    if v in ('-1', ['-1']):
+                    if v in ('-1', ['-1'], []):
                         # only match rows that have count(linkid)=0 in the
                         # corresponding multilink table)
                         where.append(self._subselect(pcn, tn))