Commit dcf1a536 authored by BohdanDmytryshyn's avatar BohdanDmytryshyn
Browse files

Release 5.5.2

parent 2a980741
......@@ -12,7 +12,8 @@ class CRM_CiviMobileAPI_Api_CiviMobileSurvey_GetContactSurveys extends CRM_CiviM
$preparedSurveys = [];
$paramsToApi = [
'options' => ['limit' => 0],
'activity_type_id' => $this->validParams['activity_type_id']
'activity_type_id' => $this->validParams['activity_type_id'],
'is_active' => $this->validParams['is_active']
];
if (!empty($this->validParams['survey_id'])) {
......@@ -93,6 +94,7 @@ class CRM_CiviMobileAPI_Api_CiviMobileSurvey_GetContactSurveys extends CRM_CiviM
'contact_id' => isset($params['contact_id']) ? $params['contact_id'] : NULL,
'activity_type_id' => $params['activity_type_id'],
'title' => isset($params['title']) ? $params['title'] : NULL,
'is_active' => isset($params['is_active']) ? $params['is_active'] : NULL,
];
}
......
......@@ -530,7 +530,8 @@ class CRM_CiviMobileAPI_Page_PublicApi_Api extends CRM_CiviMobileAPI_Page_Public
'actionName' => 'get_contact_surveys',
'actionPermissions' => ['sign CiviCRM Petition'],
'availableParams' => [
'survey_id'
'survey_id',
'is_active'
],
'availableReturnFields' => [
'id',
......
......@@ -46,6 +46,12 @@ function _civicrm_api3_civi_mobile_survey_get_contact_surveys_spec(&$params) {
'type' => CRM_Utils_Type::T_BOOLEAN,
'api.required' => 0,
];
$params['is_active'] = [
'title' => 'Is active?',
'description' => ts('Is active?'),
'type' => CRM_Utils_Type::T_BOOLEAN,
'api.required' => 0,
];
}
/**
......
......@@ -14,8 +14,8 @@
<url desc="Support">https://civimobile.org</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2021-01-25</releaseDate>
<version>5.5.1</version>
<releaseDate>2021-02-01</releaseDate>
<version>5.5.2</version>
<compatibility>
<ver>4.7</ver>
<ver>5.20</ver>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment