Skip to content

[6.x] Fix Bard link entry selector not showing pre-selected entry#14917

Merged
jasonvarga merged 1 commit into
6.xfrom
fix/bard-link-entry-selector-preselection
Jul 2, 2026
Merged

[6.x] Fix Bard link entry selector not showing pre-selected entry#14917
jasonvarga merged 1 commit into
6.xfrom
fix/bard-link-entry-selector-preselection

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Jul 2, 2026

Copy link
Copy Markdown
Member

This pull request fixes an issue where opening the entry selector from a Bard link's stack showed "0 out of 1 selected" with the already-linked entry left unchecked, even though the link already pointed to that entry.

This was happening because the Bard link editor embeds a hidden relationship-input to drive the entry selector, but its value was hardcoded to an empty array, so the selector always opened with nothing pre-selected.

This PR fixes it by passing the current entry's id and item data through to the relationship-input, so the selector opens with the linked entry already selected and highlighted.

Thanks to Juri for reporting it via support!

Before

CleanShot 2026-07-02 at 09 44 43

After

CleanShot 2026-07-02 at 09 44 24

When editing an existing entry link in a Bard field, opening the entry
selector showed "0 out of 1 selected" with no row checked, because the
embedded relationship-input was hardcoded with an empty value. Pass the
current entry's id and data through so it opens pre-selected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jasonvarga jasonvarga merged commit a5baa35 into 6.x Jul 2, 2026
23 checks passed
@jasonvarga jasonvarga deleted the fix/bard-link-entry-selector-preselection branch July 2, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants