ignore internal/unknown roles assigned to functions (#37015)

This commit is contained in:
Frédéric Péters 2019-10-17 09:13:45 +02:00
parent 32ff0b75b5
commit ba95cc7f28
1 changed files with 4 additions and 1 deletions

View File

@ -817,7 +817,10 @@ class WcsFormdefFeeder(object):
except KeyError:
v = None
else:
v = v and self.olap_feeder.role_mapping[v.id]
if v and v.id in self.olap_feeder.role_mapping:
v = self.olap_feeder.role_mapping[v.id]
else:
v = None
at = 'function_%s' % slugify(function)
row[at] = v