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:
commit
74d3895033
|
@ -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"')
|
||||
|
|
Loading…
Reference in a new issue