Fix bug when editing a Person

This commit is contained in:
Lance Edgar 2021-02-04 16:44:40 -06:00
parent 562d7b48bc
commit 8f69b07ee2

View file

@ -180,7 +180,7 @@ class PersonView(MasterView):
names['middle'] = data['middle_name']
if 'last_name' in form:
names['last'] = data['last_name']
if 'display_name' in form:
if 'display_name' in form and 'display_name' not in form.readonly_fields:
names['full'] = data['display_name']
# TODO: why do we find colander.null values in data at this point?