From: stefan Date: Fri, 20 Feb 2009 04:54:13 +0000 (+0000) Subject: Correct handling of a Multilink filterspec with an empty list of linked-to items. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f46516aef819f3a992530fa2ab7d0dac45ea16af;p=roundup.git Correct handling of a Multilink filterspec with an empty list of linked-to items. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4153 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/backends/rdbms_common.py b/roundup/backends/rdbms_common.py index dc72648..d0e358f 100644 --- a/roundup/backends/rdbms_common.py +++ b/roundup/backends/rdbms_common.py @@ -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))