User tests: Successful: Unsuccessful:
Pull Request resolves #47357
Updated the getAssignedGroups method in the userModel to check for an active list fillter before it fallls back to the default group. I added logic to get the group_id from the session state using the com_users.users.default.filter path so that if a filter is active , it become the preselected group for the new user.
go to users -> manage
Use the filter dropdown to select a group (for eg Manager).
now create a new user
click Assigned User Groups
the form ignores the active filter and always defaults to checking the Registered group.
The group you choose to filtered by in the list (e.g Manager) is already checked for you (as default).
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_users |
| Labels |
Added:
PR-6.1-dev
|
||
I have tested this item ✅ successfully on d391dce
Restored test results
| Labels |
Added:
Feature
|
||
| Status | Pending | ⇒ | Ready to Commit |
RTC
This pull request has been automatically rebased to 6.2-dev.
| Title |
|
||||||
Look at the changes in the PR, I see few problems here:
@joomdonation your concern is valid
Thanks @brianteeman
should also point out that this testing across multiple components this is not the only filter that doesnt get applied when you click on new
should also point out that testing this across multiple components this is not the only filter that doesnt get applied when you click on new
| Labels |
Added:
RTC
RMDQ
PR-6.2-dev
Removed: PR-6.1-dev |
||
Thanks @joomdonation and @brianteeman for the feedback.
@joomdonation I fixed the data loss issue - form values are now checked first, so selected groups are preserved on savee errors.
For the ux, security concerns, this feature was accepted by maintainers in [discussion #47412] maybe we gotta discuss it there ?
@krishnagandhicode Thanks for pointing out the discussion. Maintainers decided to accept this change, so we can continue. I checked the code with your last commit and it looks good to me now. @exlemor @adarshdubey03 Could you please re-test? Thanks
Seems there is a failing test? @krishnagandhicode? is it fixable?
Seems there is a failing test? @krishnagandhicode? is it fixable?
@exlemor the failing test is unrelated to this PR - Looks like a CI run issue. @richard67 could you re trigger the tests when you get a chance? (Thanks in advance)
PR is ready for Human testing.
I have tested this item ✅ successfully on d391dce
I have successfully tested this! Thanks @krishnagandhicode!
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47366.