Details
-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 4.7
-
Fix Version/s: Unscheduled
-
Component/s: CiviCRM API
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
The GroupContent Delete API has been deprecated in favour of Create with the status 'Removed'.
However, it is not possible to fully 'Delete' a contact from a group using the API. The GroupContact BAO looks for the 'Deleted' status passed to the function, rather than 'Removed'. But using 'Deleted' results in the API error:
"Deleted' is not a valid option for field status"
This is because 'Deleted' isn't a real value (as noted in the deprecated Delete API function).