guard docauthor fields. Commit ready to merge.

- Legacy-Id: 19026
This commit is contained in:
Robert Sparks 2021-05-21 14:20:21 +00:00
parent bfad845662
commit 65619f2fa8

View file

@ -566,8 +566,8 @@ def update_documentauthors(doc, new_docauthors, by=None, basis=None):
author_changes = []
# Now fill in other author details
author_changes.append(_change_field_and_describe(auth, 'email', docauthor.email))
author_changes.append(_change_field_and_describe(auth, 'affiliation', docauthor.affiliation))
author_changes.append(_change_field_and_describe(auth, 'country', docauthor.country))
author_changes.append(_change_field_and_describe(auth, 'affiliation', docauthor.affiliation or ''))
author_changes.append(_change_field_and_describe(auth, 'country', docauthor.country or ''))
author_changes.append(_change_field_and_describe(auth, 'order', order + 1))
auth.save()
log.assertion('auth.email_id != "none"')