Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Extensions
civimobileapi
Commits
f9a7afe5
Commit
f9a7afe5
authored
Feb 01, 2021
by
BohdanDmytryshyn
Browse files
Merge branch 'release_5_5_2' into 'master'
Release 5.5.2 See merge request
!51
parents
2a980741
dcf1a536
Changes
4
Hide whitespace changes
Inline
Side-by-side
CRM/CiviMobileAPI/Api/CiviMobileSurvey/GetContactSurveys.php
View file @
f9a7afe5
...
...
@@ -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
,
];
}
...
...
CRM/CiviMobileAPI/Page/PublicApi/Api.php
View file @
f9a7afe5
...
...
@@ -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'
,
...
...
api/v3/CiviMobileSurvey.php
View file @
f9a7afe5
...
...
@@ -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
,
];
}
/**
...
...
info.xml
View file @
f9a7afe5
...
...
@@ -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-0
1-25
</releaseDate>
<version>
5.5.
1
</version>
<releaseDate>
2021-0
2-01
</releaseDate>
<version>
5.5.
2
</version>
<compatibility>
<ver>
4.7
</ver>
<ver>
5.20
</ver>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment