Projet

Général

Profil

0001-settings-loaders-put-all-active-fields-in-A2_PROFILE.patch

Thomas Noël, 04 novembre 2016 13:51

Télécharger (1,24 ko)

Voir les différences:

Subject: [PATCH] settings loaders: put all active fields in A2_PROFILE_FIELDS
 (#13864)

After #13330 in Authentic, A2_PROFILE_FIELDS is now a list of all active
fields.

This revert commit b0ef5b88d68cb982ef42b23cd332841fc04e8e90 (#12423)
 hobo/multitenant/settings_loaders.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
hobo/multitenant/settings_loaders.py
204 204
        if fields:
205 205
            fields.sort(lambda x, y: cmp(x.get('order'), y.get('order')))
206 206
            tenant_settings.A2_PROFILE_FIELDS = [
207
                    x['name'] for x in fields if
208
                    not x['disabled'] and x['user_editable']]
207
                    x['name'] for x in fields if not x['disabled']]
209 208
            tenant_settings.A2_REQUIRED_FIELDS = [
210 209
                    x['name'] for x in fields if x['required']]
211 210
            tenant_settings.A2_REGISTRATION_FIELDS = [
212
-