Skip to content

Commit 1c6f81f

Browse files
committed
Correct handling of a Multilink filterspec with an empty list of linked-to items.
1 parent ef813f3 commit 1c6f81f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/backends/rdbms_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2206,7 +2206,7 @@ def filter(self, search_matches, filterspec, sort=[], group=[]):
22062206
if p.sort_type < 2:
22072207
mlfilt = 1
22082208
tn = '%s_%s'%(pcn, k)
2209-
if v in ('-1', ['-1']):
2209+
if v in ('-1', ['-1'], []):
22102210
# only match rows that have count(linkid)=0 in the
22112211
# corresponding multilink table)
22122212
where.append(self._subselect(pcn, tn))

0 commit comments

Comments
 (0)