Skip to content

[pull] develop from frappe:develop#1180

Merged
pull[bot] merged 7 commits intofproldan:developfrom
frappe:develop
Apr 25, 2026
Merged

[pull] develop from frappe:develop#1180
pull[bot] merged 7 commits intofproldan:developfrom
frappe:develop

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 25, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

vijayanrxbb and others added 7 commits April 25, 2026 12:42
When a DocType has two or more Link fields pointing back to itself and
list view tries to join them, pypika auto-aliased both joins with the
same '<table>2' suffix, producing a MySQL 1066 'Not unique table/alias'
error.

Alias each self-referential join with 'tab<doctype>_<link_fieldname>'
so every join gets a unique alias, and use the same aliased table in
apply_select so SELECT references resolve correctly.
…lias

Mirrors test_ambiguous_linked_tables but with a DocType whose Link
fields point back to itself, covering the path where pypika's '2'
auto-alias collides on the second self-join.
fix(db_query): unique alias on self-referential Link joins
fix(sidebar): notification panel and icon hover state
@pull pull Bot locked and limited conversation to collaborators Apr 25, 2026
@pull pull Bot added the ⤵️ pull label Apr 25, 2026
@pull pull Bot merged commit 5b4ddb2 into fproldan:develop Apr 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants