umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.49k stars 2.69k forks source link

Setting the member group as per the example in the docs doesn't work #15215

Open Attackmonkey opened 11 months ago

Attackmonkey commented 11 months ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

10.7

Bug summary

If you follow the example MemberSendingNotification here in the docs: https://docs.umbraco.com/umbraco-cms/reference/notifications/editormodel-notifications it's meant to set the default member group, however it doesn't work.

Specifics

In the back office, you can see the JSON for the member groups appear in the JSON that's returned for the new user, however, the member group picker does NOT display the selected group. Comparing the member groups property JSON to a member with a group set shows the property value to be identical. However, for new users the group picker does not set the group in the UI and it isn't persisted on save.

Steps to reproduce

Just add the example from the URL above to a blank Umbraco site, and try and get it to set the default group.

Expected result / actual result

I'd expect it to do what the example says, e.g. set the group for a new user in the back office UI. It's not clear whether the example is wrong, or this is a bug in the UI.

github-actions[bot] commented 11 months ago

Hi there @Attackmonkey!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

Migaroez commented 11 months ago

Hey @Attackmonkey

Thank you for bringing this to our attention, the code example seems correct to me but the front-end does not picks up the modified data, I think because the getMembergroups is invoked after the getEmpty.

Marking this as an up for grabs as it should be relatively straight forward to change this in the frontend as the data is already there.

github-actions[bot] commented 11 months ago

Hi @Attackmonkey,

We're writing to let you know that we would love some help with this issue. We feel that this issue is ideal to flag for a community member to work on it. Once flagged here, folk looking for issues to work on will know to look at yours. Of course, please feel free work on this yourself ;-). If there are any changes to this status, we'll be sure to let you know.

For more information about issues and states, have a look at this blog post.

Thanks muchly, from your friendly Umbraco GitHub bot :-)