Merge pull request #9016 from colinux/fix-dolist-sans-contact
Email (Dolist): pas d'erreur lorsqu'un mail n'a pas pu être envoyé vers un nouveau contact
This commit is contained in:
commit
5a3cbcdb72
1 changed files with 5 additions and 1 deletions
|
@ -152,7 +152,11 @@ module Dolist
|
|||
}
|
||||
}.to_json
|
||||
|
||||
post(url, body)["FieldList"].find { _1['ID'] == 72 }['Value']
|
||||
fields = post(url, body).fetch("FieldList", [])
|
||||
|
||||
return nil if fields.empty?
|
||||
|
||||
fields.find { _1['ID'] == 72 }.fetch('Value')
|
||||
end
|
||||
|
||||
def ignorable_error?(response, mail)
|
||||
|
|
Loading…
Reference in a new issue