Merged in [19026] from rjsparks@nostrum.com:

guard docauthor fields.
 - Legacy-Id: 19061
Note: SVN reference [19026] has been migrated to Git commit 65619f2fa8
This commit is contained in:
Robert Sparks 2021-06-02 17:51:50 +00:00
commit 74d3895033

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"')