Also update civility/email of CorpContacts when importing from file
This commit is contained in:
parent
d9c6289264
commit
68b50514a4
1 changed files with 7 additions and 0 deletions
|
|
@ -492,6 +492,13 @@ class HPContactsImportView(ImportViewBase):
|
|||
corporation=corp, first_name=line['PRENOMMDS'].strip(),
|
||||
last_name=line['NOMMDS'].strip(), title=line['CIVMDS'], email=line['EMAILMDS']
|
||||
)
|
||||
else:
|
||||
if line['CIVMDS'] and contact.title != line['CIVMDS']:
|
||||
contact.title = line['CIVMDS']
|
||||
contact.save()
|
||||
if line['EMAILMDS'] and contact.email != line['EMAILMDS']:
|
||||
contact.email = line['EMAILMDS']
|
||||
contact.save()
|
||||
if student.instructor != contact:
|
||||
student.instructor = contact
|
||||
student.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue