mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix field limiting
This commit is contained in:
parent
73b80211c2
commit
be3258b0a8
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ and c.nid=n.id %s""" % (q, order)
|
|||
for m in self.col.models.all():
|
||||
for f in m['flds']:
|
||||
if f['name'].lower() == field:
|
||||
mods[m['id']] = (m, f['ord'])
|
||||
mods[str(m['id'])] = (m, f['ord'])
|
||||
if not mods:
|
||||
# nothing has that field
|
||||
self.lims['valid'] = False
|
||||
|
|
Loading…
Reference in a new issue