Added assingment of the person.name_from_draft field on draft submission. To be used to replace the content of person.name if someone requires removal of consent-based name info.
- Legacy-Id: 15178
This commit is contained in:
parent
aa1e42100b
commit
b1440e818b
|
@ -437,9 +437,12 @@ def ensure_person_email_info_exists(name, email, docname):
|
|||
if not person:
|
||||
person = Person()
|
||||
person.name = name
|
||||
person.name_from_draft = name
|
||||
log.assertion('isinstance(person.name, six.text_type)')
|
||||
person.ascii = unidecode_name(person.name).decode('ascii')
|
||||
person.save()
|
||||
else:
|
||||
person.name_from_draft = name
|
||||
|
||||
# make sure we have an email address
|
||||
if addr and (addr.startswith('unknown-email-') or is_valid_email(addr)):
|
||||
|
|
Loading…
Reference in a new issue