guard docauthor fields. Commit ready to merge.
- Legacy-Id: 19026
This commit is contained in:
parent
bfad845662
commit
65619f2fa8
|
@ -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