Details
-
Type:
Bug
-
Status: Done/Fixed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 4.1.1
-
Fix Version/s: Unscheduled
-
Component/s: CiviCRM API
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
An API 'get' on Membership returns:
- 'relationship_name' which is set to 'Child of' - this has nothing to do with the membership
- 'membership_name' with the name for the membership type. Should this attribute be named 'membership_type' instead since this is a pseudoconstant for 'membership_type_id'?
An API 'update' on Membership returns:
- 'is_override' and 'reminder_date' attributes set to "null" (the string "null", not NULL)
hmm - I think we should get rid of the relationship stuff off membership get if it doesn't work. It's legacy from API v2 , not tested , not standard & likely as not never worked.
Membership name = membership type - your recommendation makes sense to me
The update is a tricky one - we need to figure out what to do about that update function since it shouldn't exist but obviously does - somehow we need to let people know not to use it. We could set it such that it ONLY gets/ sets the id - that would be somewhat useful - ie you are going to have to do a get & create anyway.