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

Crash when adding a relationship when CiviMember is disabled #22451

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

MegaphoneJon
Copy link
Contributor

Overview

See https://lab.civicrm.org/dev/core/-/issues/3025 for a full explanation. This is a regression introduced in 5.43.

Before

Relationship is added, but with error Key id not found in api results (in Civi 5.45) or MembershipType API is not available because CiviMember component is disabled (Civi 5.47).

After

Relationship added, no error.

Comments

I considered adding more conditionals for other components, but this problem doesn't seem to manifest on other components - most likely because only adding a relationship is the only way for these counts to change without taking an action that would require the component to be enabled (e.g. adding a membership changes the membership count, but requires CiviMember be enabled).

@civibot
Copy link

civibot bot commented Jan 10, 2022

(Standard links)

@civibot civibot bot added the master label Jan 10, 2022
@MegaphoneJon MegaphoneJon changed the base branch from master to 5.46 January 10, 2022 18:22
@civibot civibot bot added 5.46 and removed master labels Jan 10, 2022
@MegaphoneJon MegaphoneJon changed the base branch from 5.46 to master January 10, 2022 18:22
@civibot civibot bot added master and removed 5.46 labels Jan 10, 2022
@MegaphoneJon
Copy link
Contributor Author

...I guess I'm not sure whether to post this against the RC? It's two versions back but is also clearly a regression.

@MegaphoneJon
Copy link
Contributor Author

test this please

@seamuslee001
Copy link
Contributor

Jenkins re test this please

@colemanw colemanw changed the base branch from master to 5.46 January 11, 2022 00:27
@civibot civibot bot added 5.46 and removed master labels Jan 11, 2022
@colemanw
Copy link
Member

@MegaphoneJon this definitely should be against 5.46, but it needs rebasing.

@totten
Copy link
Member

totten commented Jan 11, 2022

@colemanw @MegaphoneJon It looks like there was one commit. I rebased it on top of d72538b (which is shared history for master+5.46 - so it should be agreeable about merging to either branch).

@colemanw
Copy link
Member

Confirmed this fix is correct 👍

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.

5 participants