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 dev/core#4083 - Broken autocomplete Afform widget #25374

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

colemanw
Copy link
Member

Overview

Fixes bug in https://lab.civicrm.org/dev/core/-/issues/4083

Before

Afforms using "Existing Entity" widgets are broken with endless console errors.

After

Fixed.

@civibot
Copy link

civibot bot commented Jan 18, 2023

(Standard links)

@civibot civibot bot added the 5.58 label Jan 18, 2023
@totten
Copy link
Member

totten commented Jan 19, 2023

Merging based on testing from @briennekordis, who reported on Gitlab: "Just tried that patch and it fixed the issue for me."

@totten totten merged commit a05bcd4 into civicrm:5.58 Jan 19, 2023
@totten totten deleted the fixChange branch January 19, 2023 22:25
@colemanw colemanw restored the fixChange branch January 19, 2023 22:43
@colemanw colemanw deleted the fixChange branch January 19, 2023 22:44
colemanw added a commit to colemanw/civicrm-core that referenced this pull request Apr 5, 2023
There was some back-and-forth with this. civicrm#25374 removed the change() trigger, which fixed
the recursion bug described in https://lab.civicrm.org/dev/core/-/issues/4083 but broke
setting defaults, prompting civicrm#25465 which proposed to change it back.

This fix walks the line by triggering the change event but only when the value has actually changed.
Fixes dev/core#4110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants