-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
CRM-19979 Fix issue where contacts cannot be removed from group or deleted if in status of pending #9797
Conversation
seamuslee001
commented
Feb 6, 2017
•
edited by civicrm-builder
Loading
edited by civicrm-builder
- CRM-19979: GroupContact.delete does not work for contacts with status of Pending
@BorislavZlatanov I have opened this PR to fix your issue, Have been able to reproduce issue in a unit test which is always a good sign |
…s as well as removed and added
@BorislavZlatanov I believe i now have a fix for this in the commit #518dd0e |
Does the status field support IN rather than doing 2 calls? ie. status_id => array('IN' => array('Pending', 'Removed'))
|
Possibly i'm not sure, I'll give it try @eileenmcnaughton |
@eileenmcnaughton tested it and does support IN and i also added Pending onto the check for if we have been supplied a status of Added |
…mment from Eileen
4f6fd3a
to
4e5d12a
Compare
@seamuslee001 I applied your latest patch to 4.7.14 and tried it. When trying to delete from group a contact that has Pending status, I got the "Cannot Delete GroupContact" error. When removing from group a contact that has Pending status, it removed it successfully with no errors. When deleting from group this contact that now has Removed status, it deleted it with no errors. |
… immedately permanently deleted
@BorislavZlatanov I believe with the latest commit I have solved the issue where pending cannot be "Deleted" |
@seamuslee001 Yes, I tested and both Removing and Deleting worked now. Thanks! |
Thanks @seamuslee001 & @BorislavZlatanov - looks good to me & has unit testing! and with your testing @BorislavZlatanov I'm happy to approve |
CRM-19979 Fix issue where contacts cannot be removed from group or deleted if in status of pending