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: query SQL error not unique table/alias when have a link field reference to the same doctype #19893

Closed
wants to merge 9 commits into from

Conversation

anhlevfx
Copy link
Contributor

@anhlevfx anhlevfx commented Feb 2, 2023

Please provide enough information so that others can review your pull request:

The issue only happen if you have a link field same doctype. Access list view will show error popup.

Explain the details for making this change. What existing problem does the pull request solve?

I create an alias for join table by concat index to current table name. So, it make sure all alias table will unique. Base on current source code, I tried to apply change in last steps generate query string, all logic functions about check permission, access field of doctype... still working.

Screenshots/GIFs

@anhlevfx anhlevfx requested a review from a team as a code owner February 2, 2023 04:35
@anhlevfx anhlevfx requested review from shariquerik and removed request for a team February 2, 2023 04:35
@stale
Copy link

stale bot commented Feb 9, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

@stale stale bot added the inactive label Feb 9, 2023
@stale stale bot closed this Feb 12, 2023
@anhlevfx
Copy link
Contributor Author

Hi @shariquerik , did you check this pull request?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants