Fix bug in users view when person field not present

This commit is contained in:
Lance Edgar 2018-02-22 13:25:20 -06:00
parent f2a60f683c
commit 2c2df9f01e

View file

@ -142,6 +142,7 @@ class UsersView(PrincipalMasterView):
# person
f.set_renderer('person', self.render_person)
if self.creating or self.editing:
if 'person' in f.fields:
f.replace('person', 'person_uuid')
f.set_node('person_uuid', colander.String(), missing=colander.null)
person_display = ""