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

CiviCRM Membership Status can never be deleted when logging is enabled #22032

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

agileware-justin
Copy link
Contributor

CiviCRM Membership Status can never be deleted when logging is enabled, if the membership status was used once. Because there is a check in the membership log table for records having this membership status.

Membership Status delete function appears to have been copied from Membership Type.

Note, Membership Type can be deleted with no such check.

Before

Cannot delete Membership Status.

After

Can delete Membership Status.

Technical Details

Fixed incorrect references to Membership Type in code comments.

Comments

Agileware Ref: CIVICRM-1885

@civibot civibot bot added the master label Nov 10, 2021
@civibot
Copy link

civibot bot commented Nov 10, 2021

(Standard links)

@eileenmcnaughton
Copy link
Contributor

This makes sense to me - I'll see if I can get a couple more thumbs up to confirm no-one sees a problem

@johntwyman
Copy link
Contributor

I've tested this and can confirm the problem exists and that the PR solves it. Nice work @agileware-justin

@eileenmcnaughton eileenmcnaughton added the merge ready PR will be merged after a few days if there are no objections label Nov 11, 2021
@eileenmcnaughton
Copy link
Contributor

Based on the above I've added merge-ready. If no-one comments agains this we will merge in a few days

@demeritcowboy demeritcowboy merged commit 86e4890 into civicrm:master Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants