Commit 68c41787 authored by BohdanDmytryshyn's avatar BohdanDmytryshyn
Browse files

Merge branch 'release_5_6_1' into 'master'

Release 5.6.1

See merge request !54
parents 90081c6d bdaaf599
......@@ -22,6 +22,10 @@ class CRM_CiviMobileAPI_Hook_AlterMailParams_EventOnlineReceipt {
$eventId = (int)$params['tplParams']['eventIdApi'];
}
if (empty($contactId) && isset($params['contactId'])) {
$contactId = $params['contactId'];
}
try {
$participantId = civicrm_api3('Participant', 'getvalue', [
'sequential' => 1,
......
......@@ -720,6 +720,7 @@ function civimobileapi_civicrm_preProcess($formName, &$form) {
if ($formName == 'CRM_Activity_Form_Activity' || $formName == 'CRM_Custom_Form_CustomDataByType') {
$groupTree = $form->getVar('_groupTree');
if (!empty($groupTree)) {
foreach ($groupTree as $key => $customGroup) {
if ($customGroup['name'] == CRM_CiviMobileAPI_Install_Entity_CustomGroup::SURVEY) {
unset($groupTree[$key]);
......@@ -727,6 +728,7 @@ function civimobileapi_civicrm_preProcess($formName, &$form) {
}
$form->setVar('_groupTree', $groupTree);
}
}
if ($formName == 'CRM_Contribute_Form_Contribution_Main') {
(new CRM_CiviMobileAPI_Hook_Pre_ContributionPayment)->run();
}
......
......@@ -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-05-17</releaseDate>
<version>5.6.0</version>
<releaseDate>2021-05-21</releaseDate>
<version>5.6.1</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