Be a bit more careful with handling the submitter info as well as it
turns out there are some (although apparently all old) entries with author_order = 0 - Legacy-Id: 4015
This commit is contained in:
parent
3ebee25c2a
commit
117eac031a
|
@ -141,10 +141,10 @@ def perform_postREDESIGN(request, submission):
|
|||
update_authors(draft, submission)
|
||||
|
||||
# new revision event
|
||||
try:
|
||||
a = submission.tempidauthors_set.get(author_order=0)
|
||||
submitter = ensure_person_email_info_exists(a).person
|
||||
except TempIdAuthors.DoesNotExist:
|
||||
a = submission.tempidauthors_set.filter(author_order=0)
|
||||
if a:
|
||||
submitter = ensure_person_email_info_exists(a[0]).person
|
||||
else:
|
||||
submitter = system
|
||||
|
||||
e = NewRevisionDocEvent(type="new_revision", doc=draft, rev=draft.rev)
|
||||
|
|
Loading…
Reference in a new issue