Projet

Général

Profil

0001-clicrdv-update-appointment-request-format-39248.patch

Valentin Deniaud, 27 janvier 2020 16:56

Télécharger (1,82 ko)

Voir les différences:

Subject: [PATCH] clicrdv: update appointment request format (#39248)

 passerelle/apps/clicrdv/models.py | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)
passerelle/apps/clicrdv/models.py
165 165
        if websource is None:
166 166
            websource = self.websource or ''
167 167
        appointment = {
168
            'fiche': {
169
                'firstname': get_data('clicrdv_firstname') or '-',
170
                'lastname': get_data('clicrdv_lastname') or '-',
171
                'email': get_data('clicrdv_email', ''),
172
                'firstphone': get_data('clicrdv_firstphone', ''),
173
                'secondphone': get_data('clicrdv_secondphone', ''),
174
             },
175
             'date': date,
176
             'intervention_ids': [intervention],
177
             'websource': websource,
168
            'appointment': {
169
                'fiche': {
170
                    'firstname': get_data('clicrdv_firstname') or '-',
171
                    'lastname': get_data('clicrdv_lastname') or '-',
172
                    'email': get_data('clicrdv_email', ''),
173
                    'firstphone': get_data('clicrdv_firstphone', ''),
174
                    'secondphone': get_data('clicrdv_secondphone', ''),
175
                 },
176
                 'date': date,
177
                 'intervention_ids': [intervention],
178
                 'websource': websource,
179
            },
178 180
        }
179 181
        comments = get_data('clicrdv_comments') or self.default_comment
180 182
        if comments:
181
-