Skip to content

[Issue] fix for ambigous column user_id in where clause #31216

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #31205: fix for ambigous column user_id in where clause


Magento\Users\Model\ResourceModel\User\Collection addFilterToMap for user_id

Description (*)

When filtering Magento\Users\Model\ResourceModel\Users\Collection by user_id , it throws an SQL exception ( ambigous user_id in where condition )

Preconditions:

Magento version: 2.4-develop
PHP version: 7.4
ElasticSearch version: 7
MySQL version: 8.0

Manual testing scenario:

  1. Add the code from the attached file
    Code_to_reproduce_31205.zip
  2. Run in console: php bin/magento setup:upgrade;
  3. Log in to the admin panel;
  4. open URL /admin/column;

Actual Result: ✖️ 2 exceptions occur

Screenshot from 2021-02-02 15-26-29

Expected Result: ✔️ No exceptions

Metadata

Metadata

Assignees

Labels

Component: UserFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions