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

Use try catch when deleting groups (dev/core/issues/22 ) #11826

Merged
merged 1 commit into from
Mar 23, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Prevent fatal error on deleting broken smart group

Before

Error when deleting broken smart group

After

Presumable no error - see below.

Technical Details

Comments

@KarinG hit a bug when one of her customers could not delete broken smart groups. I suggested using the try-catch block on chat. However, Karin only tried commenting out this line so did not confirm whether the try-catch works. I was on the fence about putting this up as a PR since I don't think the bug rises to the level of it being an important use of volunteer time & I could not justify the time involved either for myself or a reviewer trying to replicate it.

OTOH I think it's pretty harmless & safe, and I had already sunk time into it on the support channel

@eileenmcnaughton
Copy link
Contributor Author

test this please

1 similar comment
@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

@colemanw @seamuslee001 are one of you happy to merge this - per comments above I'm happy to close this if it can't be agreed easily.

@mattwire
Copy link
Contributor

@eileenmcnaughton This looks sensible to me. We don't care if a count fails if we're trying to delete something and it's just this kind of thing that spoils the end-user perception of CiviCRM when it goes wrong!

@eileenmcnaughton
Copy link
Contributor Author

I'm going to merge based on @mattwire endorsement. This is safe IMHO & needs to not take up any more of my time

@eileenmcnaughton eileenmcnaughton merged commit 16bfa7c into civicrm:master Mar 23, 2018
@eileenmcnaughton eileenmcnaughton deleted the karing branch May 12, 2018 06:01
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.

3 participants