Group module: Group memberships are lost when editing a user in the admin panel

Hi all,

I am new to Omeka S and struggling a bit with the usage of groups. I might have found a bug and I am curious to hear your thoughts or insights on how to solve this.

Problem summary
When editing a user in the admin panel (for instance to change the Display name), the dropdown list for “Groups” is not populated. Saving the user deletes the user from all its associated groups.

Expected behavior
I would expect that the dropdown list is prefilled with all group memberships for this user, so that group memberships are preserved when saving the user.

Steps to reproduce

My environment

  • Omeka S version 3.2.0
  • PHP version 7.4.29
  • mySQL version 8.0.29-0ubuntu0.20.04.3
  • Omeka-S-module-Group version 3.3.4.2

Any thoughts on this?
Thank you in advance.

Best regards,
Maarten Coonen
Maastricht University Library, The Netherlands

In addition to message above, I also found this issue on Gitlab that seems to describe the same problem.

Unfortunately, that issue is already open for 1 year without any follow-up…

Cheers,
Maarten Coonen

Hi,

You can use the fix from the merge request by modifying the Module.php file in the module folder :

It fixed it in my case.

Regards,

Thank you Guillaume, that fixes it for me as well!

Now we should get this merge-request included upstream. I will write a comment in the Gitlab thread confirming that this fixes it.

Thanks again!

Cheers,
Maarten Coonen

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.