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

APIv4 - Don't link to non-existent API entities #25743

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Mar 6, 2023

Overview

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

Before

FormBuilder tries and fails to autocomplete ParticipantStatusID

After

Since that entity hasn't (yet) been implemented in APIv4, it falls back to using the option list.

Technical Details

Since APIv4 getFields is specific to, well, APIv4, it probably shouldn't link to entities that don't exist in APIv4.

@civibot
Copy link

civibot bot commented Mar 6, 2023

(Standard links)

@civibot civibot bot added the master label Mar 6, 2023
@eileenmcnaughton
Copy link
Contributor

I've hit variants of this a lot so yay to merge - style issue to fix

image

@colemanw
Copy link
Member Author

colemanw commented Mar 7, 2023

retest this please

@totten
Copy link
Member

totten commented Mar 7, 2023

civibot, test this please

@eileenmcnaughton eileenmcnaughton merged commit d8b3a30 into civicrm:master Mar 7, 2023
@eileenmcnaughton eileenmcnaughton deleted the fixFkEntity branch March 7, 2023 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants