X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FMembershipStatus.php;h=f49c269435f894e729b2aad37a95f5b9cab172d6;hb=49efc06e32bcd18ad6ad150ed00157ca3aff2903;hp=87d01b3656086f8e5aa9bfd77b728c810a01b9d9;hpb=c77f9b14576dbe8314a82b2e4f19a170d3cc1695;p=civicrm-core.git diff --git a/api/v3/MembershipStatus.php b/api/v3/MembershipStatus.php index 87d01b3656..f49c269435 100644 --- a/api/v3/MembershipStatus.php +++ b/api/v3/MembershipStatus.php @@ -72,7 +72,7 @@ function civicrm_api3_membership_status_update($params) { civicrm_api3_verify_mandatory($params, NULL, ['id']); //don't allow duplicate names. - $name = CRM_Utils_Array::value('name', $params); + $name = $params['name'] ?? NULL; if ($name) { $status = new CRM_Member_DAO_MembershipStatus(); $status->name = $params['name']; @@ -173,4 +173,7 @@ SELECT start_date, end_date, join_date, membership_type_id function _civicrm_api3_membership_status_calc_spec(&$params) { $params['membership_id']['api.required'] = 1; $params['membership_id']['title'] = 'Membership ID'; + $params['ignore_admin_only']['title'] = 'Ignore admin only statuses'; + $params['ignore_admin_only']['description'] = 'Ignore statuses that are for admin/manual assignment only'; + $params['ignore_admin_only']['type'] = CRM_Utils_Type::T_BOOLEAN; }