From 9a47d762cdfbdf1cde71bd26e00af0cdf41ba126 Mon Sep 17 00:00:00 2001 From: Jose Torres Date: Wed, 3 Aug 2016 10:48:45 -0700 Subject: [PATCH] API test fix, added title, desc, type to new api param for Membership Delete. --- api/v3/Membership.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/v3/Membership.php b/api/v3/Membership.php index f50b3c3d0b..5307224def 100644 --- a/api/v3/Membership.php +++ b/api/v3/Membership.php @@ -41,7 +41,12 @@ * Array of parameters determined by getfields. */ function _civicrm_api3_membership_delete_spec(&$params) { - $params['preserve_contribution']['api.required'] = 0; + $params['preserve_contribution'] = array( + 'api.required' => 0, + 'title' => 'Preserve Contribution', + 'description' => 'By default this is 0, or 0 if not set. Set to 1 to preserve the associated contribution record when membership is deleted.', + 'type' => CRM_Utils_Type::T_BOOLEAN, + ); } /** -- 2.25.1