another find&replace bug

This commit is contained in:
Damien Elmes 2012-03-24 19:03:14 +09:00
parent ce86670c76
commit ccb0c08c9c

View file

@ -394,7 +394,7 @@ def findReplace(col, nids, src, dst, regex=False, field=None, fold=True):
for m in col.models.all():
for f in m['flds']:
if f['name'] == field:
mmap[m['id']] = f['ord']
mmap[str(m['id'])] = f['ord']
if not mmap:
return 0
# find and gather replacements