'help_post' => '<p>By selecting \'Yes\' above you are confirming that
<ol>
<li>you are a UK taxpayer and</li>
<li>the amount of income and/or capital gains tax you pay is at least as much as we will reclaim on your donations in this tax year.</li>
</ol>
<p><b>About Gift Aid</b><p>
<p>Gift Aid increases the value of donations to charities by allowing them to reclaim basic rate tax on your gift. We would like to reclaim gift aid on your behalf. We can only reclaim Gift Aid if you are a UK taxpayer. Please confirm that you are a eligible for gift aid above. <a href="http://www.hmrc.gov.uk/individuals/giving/gift-aid.htm">More about Gift Aid</a>.</p>',
'help_post' => '<p>By selecting \'Yes\' above you are confirming that
<ol>
<li>You are a UK taxpayer</li>
<li>The amount of income and/or capital gains tax you pay is at least as much as we will reclaim on your donations in this tax year</li>
</ol>
<p><b>About Gift Aid</b><p>
<p>Gift Aid increases the value of membership contributions and donations to charities by allowing them to reclaim basic rate tax on your gift. It allows us to claim 25% on top of your donation, for example, on a £50 membership or donation, we can claim back an additional £12.50.</p>
<p>We would like to reclaim gift aid on your behalf. We can only reclaim Gift Aid if you are a UK taxpayer. Please confirm that you are eligible for Gift Aid. <a href="http://www.hmrc.gov.uk/individuals/giving/gift-aid.htm">More about Gift Aid</a>.</p>',
'visibility' => 'User and User Admin Only',
],
[
...
...
@@ -187,7 +188,7 @@ class CRM_Civigiftaid_Upgrader extends CRM_Civigiftaid_Upgrader_Base {
'in_selector' => '0',
'is_searchable' => '0',
'label' => 'Can we reclaim gift aid on your donation?',
'field_type' => 'Contribution',
'field_type' => 'Individual',
]);
$this->findOrCreate('UFField',
...
...
@@ -601,9 +602,13 @@ class CRM_Civigiftaid_Upgrader extends CRM_Civigiftaid_Upgrader_Base {
return TRUE;
}
public function upgrade_3111() {
$this->log('Check we have batch_type = "GiftAid".');
public function upgrade_3112() {
$this->log('Check we have batch_type = "GiftAid" and fix profile setup');
$this->ensureDataStructures();
\Civi\Api4\System::flush()
->setCheckPermissions(FALSE)
->setSession(TRUE)
->setTriggers(TRUE);
return TRUE;
}
...
...
@@ -611,8 +616,8 @@ class CRM_Civigiftaid_Upgrader extends CRM_Civigiftaid_Upgrader_Base {
* @return array
*/
private function getCustomFields() {
if (empty($this->declarationCustomGroupId)) {
throw new \RuntimeException("CRM_Civigiftaid_Upgrader::getCustomFieldscalledbeforedeclarationCustomGroupIddefined.");
if (empty($this->declarationCustomGroupID)) {
throw new \RuntimeException("CRM_Civigiftaid_Upgrader::getCustomFieldscalledbeforedeclarationCustomGroupIDdefined.");
}
if (empty($this->contributionGiftaidCustomGroupId)) {
throw new \RuntimeException("CRM_Civigiftaid_Upgrader::getCustomFieldscalledbeforecontributionGiftaidCustomGroupIddefined.");
...
...
@@ -621,7 +626,7 @@ class CRM_Civigiftaid_Upgrader extends CRM_Civigiftaid_Upgrader_Base {
@@ -9,6 +9,10 @@ Releases use the following numbering system:
***[BC]**: Items marked with [BC] indicate a breaking change that will require updates to your code if you are using that code in your extension.
## Release 3.4.5
* Fix [#10](https://lab.civicrm.org/extensions/ukgiftaid/-/issues/10) - issues with Gift Aid profile description and fields.
## Release 3.4.4
**Requires CiviCRM 5.25 minimum or you won't see the batch name anymore in the contribution detail** - *alterCustomFieldDisplayValue hook does not exist.*