[gen] Bugfixes.

This commit is contained in:
Gaetan Delannay 2014-12-15 10:30:24 +01:00
parent 8511c22612
commit 50bd996c3b
5 changed files with 17 additions and 8 deletions

View file

@ -1071,6 +1071,11 @@ class AbstractWrapper(object):
indexes = []
for name in fields:
field = self.getField(name)
if not field:
# The index may be a standard Appy index that does not
# correspond to a field.
indexes.append(name)
continue
if not field.indexed: continue
# A field may have 2 different indexes
iName = field.getIndexName(usage='search')