Skip to content

Commit e406070

Browse files
committed
Fix lookupIds for try_id_parsing off
Fixes my patch in commit 716d50585c8d.
1 parent 378763f commit e406070

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/cgi/templating.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ def lookupIds(db, prop, ids, fail_ok=0, num_re=num_re, do_lookup=True):
384384
cl = db.getclass(prop.classname)
385385
l = []
386386
for entry in ids:
387-
# Do not look up numeric IDs
388-
if num_re.match(entry):
387+
# Do not look up numeric IDs if try_id_parsing
388+
if prop.try_id_parsing and num_re.match(entry):
389389
l.append(entry)
390390
continue
391391
if do_lookup:

0 commit comments

Comments
 (0)