ignore internal/unknown roles assigned to functions (#37015)
This commit is contained in:
parent
32ff0b75b5
commit
ba95cc7f28
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue