From 89a9f12d551c6f4b2dcacc055ffea59455327e7c Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Tue, 26 Feb 2019 17:26:38 +0100 Subject: [PATCH] [cragr] Add default='' to internal recipients For some recipients that are present in both internal and external lists, the "accountNatureLongLabel" does not appear in the JSON so we must put a default value, even if these recipients will not appear in the final list of recipients because they will be skipped in the browser.py (recipients without the "accountNatureLongLabel" key are actually proxy accounts) --- modules/cragr/api/transfer_pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cragr/api/transfer_pages.py b/modules/cragr/api/transfer_pages.py index 707fe330de..32a0d0cb00 100644 --- a/modules/cragr/api/transfer_pages.py +++ b/modules/cragr/api/transfer_pages.py @@ -69,7 +69,7 @@ def condition(self): klass = Recipient obj_id = Dict('accountNumber') - obj_label = Dict('accountNatureLongLabel') + obj_label = Dict('accountNatureLongLabel', default='') obj_iban = Dict('ibanCode') obj_category = 'Interne' obj_enabled_at = date.today() -- GitLab