claroline / Claroline

Learning management system
https://www.claroline.com
Other
315 stars 188 forks source link

[Account] Cannot modify organization custom field despite organizations being public #2145

Open maieutiquer opened 2 years ago

maieutiquer commented 2 years ago
Q A
Bug report? yes
Version? 13.2 - 13.5

Steps:

  1. Install Claroline 13.5 from scratch
  2. Create at least one organization on the root level (no parent), make it public
  3. Create a custom field for selecting an organization
  4. Enable self-registration
  5. Register a new account using the account registration page and select the public organization that you have created
  6. Login with the new account
  7. Navigate to "My account" and try editing your account's organization field

Expected: you should be able to select a public organization the same way that you can do it when creating an account

Actual: the organisation select field is not available as organizations are not visible

Quand on essaie de modifier son profil, on ne voit pas le Select avec les organisations, bien qu'elles sont publiques : image

Quand on ouvre le profil en mode lecture, l'organisation choisie lors de la création est visible correctement : image

C'est bien ce qui a été choisi lors de la création : image

Les organisations sont publiques et ça ne fonctionne pas quand même : image

This is a critical issue for us as it's blocking our client's users from being able to modify their organization, so we implemented a workaround in our previous release (based on 13.2) to make all organizations always visible to everyone, and then it works correctly: https://github.com/konsept-ch/Claroline/pull/69/files

maieutiquer commented 2 years ago

Here's another workaround that we'll try using in Prod, please let us know what you think : https://github.com/konsept-ch/Claroline/pull/104/files