diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b5156a89..a79c2d37a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - Fix a bug: error message during the setup: the input device is not a TTY - Fix a bug: when Fab-manager was installed as non-root user, unable to compile the assets during the upgrade - Fix a bug: unable to remove an SSO data mapping field once saved +- Fix a bug: unable to update the user profile after toggling the organization switch twice - [TODO DEPLOY] `\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/scripts/set-docker-user.sh | bash` ## v5.4.4 2022 June 8 diff --git a/app/controllers/api/members_controller.rb b/app/controllers/api/members_controller.rb index ab62e69b5..7de54207c 100644 --- a/app/controllers/api/members_controller.rb +++ b/app/controllers/api/members_controller.rb @@ -267,7 +267,7 @@ class API::MembersController < API::ApiController :dailymotion, :github, :echosciences, :pinterest, :lastfm, :flickr, user_avatar_attributes: %i[id attachment destroy]], invoicing_profile_attributes: [ - :id, + :id, :organization, address_attributes: %i[id address], organization_attributes: [:id, :name, address_attributes: %i[id address]], user_profile_custom_fields_attributes: %i[id value invoicing_profile_id profile_custom_field_id] @@ -282,7 +282,7 @@ class API::MembersController < API::ApiController :dailymotion, :github, :echosciences, :pinterest, :lastfm, :flickr, user_avatar_attributes: %i[id attachment destroy]], invoicing_profile_attributes: [ - :id, + :id, :organization, address_attributes: %i[id address], organization_attributes: [:id, :name, address_attributes: %i[id address]], user_profile_custom_fields_attributes: %i[id value invoicing_profile_id profile_custom_field_id] diff --git a/app/frontend/src/stylesheets/modules/supporting-documents/supporting-documents-validation.scss b/app/frontend/src/stylesheets/modules/supporting-documents/supporting-documents-validation.scss index f8680cc44..a886005e0 100644 --- a/app/frontend/src/stylesheets/modules/supporting-documents/supporting-documents-validation.scss +++ b/app/frontend/src/stylesheets/modules/supporting-documents/supporting-documents-validation.scss @@ -30,7 +30,10 @@ } @media (min-width: 1200px) { + .supporting-documents-validation .fab-panel { + width: 56.33%; + } .supporting-documents-validation .fab-panel.refusal { - width: 33.33333333333333%; + width: 33.33%; } } diff --git a/app/frontend/templates/admin/members/edit.html b/app/frontend/templates/admin/members/edit.html index d08c3861c..fa83b940c 100644 --- a/app/frontend/templates/admin/members/edit.html +++ b/app/frontend/templates/admin/members/edit.html @@ -60,7 +60,7 @@ - +