[IMPLEMENTED] Editing last permission on custom role is not saved

When I try to edit the permissions of a custom role, the last permission in the role is not saved after the Save button is pressed, unless I add an empty permission below.

Perhaps this is intended behavior, but I would prefer UI/UX improvements in that case.

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

When I edit the permissions of a custom role, the last permission in the list is not saved unless I add an empty permission at the end.

In the example below, roles.read is not saved on refresh.

Expected behavior

All permissions should be saved, including the last one in the list.

Minimal reproduction of the problem

  • Create a new custom role
  • Add at least 2 permissions to the role
  • Press save

Environment

  • [x] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: 7.3

Browser:

  • [x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [x] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

It is not a bug, but I see that it can be confusing. The last row works as a “Add Form”, so it adds a new row, when the button is clicked.

I will have a look, how it can be improved.

1 Like

I have simplified it:

1 Like

That looks a lot better, thank you.

This topic was automatically closed after 2 days. New replies are no longer allowed.