Projet

Général

Profil

0001-maarch-force-external_id-to-string-fixes-30045.patch

Benjamin Dauvergne, 23 janvier 2019 20:48

Télécharger (1,4 ko)

Voir les différences:

Subject: [PATCH] maarch: force external_id to string (fixes #30045)

 tests/test_source_maarch.py | 2 +-
 welco/sources/mail/utils.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tests/test_source_maarch.py
236 236
        'status': 'GRCSENT',
237 237
        'externalInfos': [
238 238
            {
239
                'external_id': 1,
239
                'external_id': '1',
240 240
                'external_link': 'http://wcs.example.net/slug-1/1',
241 241
                'res_id': 1,
242 242
            }
welco/sources/mail/utils.py
46 46

  
47 47
    def set_grc_sent_status(self, mail_pk, formdata_id, formdata_url_backoffice):
48 48
        mail = self.Courrier(self, pk=mail_pk)
49
        mail.external_id = formdata_id
49
        mail.external_id = str(formdata_id)
50 50
        mail.external_link = formdata_url_backoffice
51 51
        self.update_external_infos([mail], self.grc_send_status)
52 52

  
53
-