Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug related to filter in Admin UI for Role Users #1061

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

eetzen
Copy link
Contributor

@eetzen eetzen commented Jun 24, 2020

Unable to filter Role Users in Permission->Roles->Role Users or go to next Page or change the number of rows displayed per page.

This bug is introduced in pull request d644768

Mage_Adminhtml_Block_Permissions_Role_Grid_User->_getUsers() is returning an int instead of an array on line 160.

Copy link
Contributor

@kiatng kiatng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am able to replicate the bug:
image

Removing (int) fixes the filtering. The function should return an array.

Copy link
Member

@colinmollenhour colinmollenhour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sreichel sreichel added bug Component: Adminhtml Relates to Mage_Adminhtml labels Jun 24, 2020
@AlterWeb
Copy link
Contributor

Looks good! I don't see any problem with the solution. I tested it and it works.

@theroch
Copy link
Contributor

theroch commented Jun 25, 2020

I can confirm this bug.
But your description is a little bit confusing.
The filter in the grid works for me, but the first column information (in_role_users) is lost while you set any filter.

The type casting was implemented with PATCH SUPEE-11155 CE 1.9.4.0 v3-2019-06-18-08-34-01.
So this change is security related!

Maybe you make a type cast to array?

Copy link
Contributor

@theroch theroch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should always return an array.

@sreichel sreichel added this to the Release 19.4.6 milestone Jun 26, 2020
@sreichel sreichel added the code change requested For Tickets where changes in code are needed, but seem mostly fine label Jun 26, 2020
@kkrieger85 kkrieger85 merged commit 9818980 into OpenMage:1.9.4.x Jul 23, 2020
@sreichel sreichel removed the code change requested For Tickets where changes in code are needed, but seem mostly fine label Jul 23, 2020
@Flyingmana Flyingmana changed the title Fix bug on filter issues in Role Users. Fix bug related to filter in Admin UI for Role Users Aug 18, 2020
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 20, 2020
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Component: Adminhtml Relates to Mage_Adminhtml
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants