civicrm-core.git
2 years agoFix for new prefetch key
Eileen McNaughton [Sat, 28 Aug 2021 02:17:57 +0000 (14:17 +1200)]
Fix for new prefetch key

Fixes a bug in
https://github.com/civicrm/civicrm-core/pull/21184
which was masked in the test by the lack of campaigns to load.

The ?? operator handles FALSE differently to the ?: operator
so this was casting FALSE to TRUE

2 years agoMerge pull request #21294 from eileenmcnaughton/cont_form
colemanw [Sat, 28 Aug 2021 05:40:38 +0000 (01:40 -0400)]
Merge pull request #21294 from eileenmcnaughton/cont_form

[REF] Remove unreachable code

2 years agoMerge pull request #21293 from eileenmcnaughton/auth2
Eileen McNaughton [Sat, 28 Aug 2021 04:41:13 +0000 (16:41 +1200)]
Merge pull request #21293 from eileenmcnaughton/auth2

[Ref] Minor extraction

2 years agoMerge pull request #21290 from eileenmcnaughton/pdftrait
colemanw [Sat, 28 Aug 2021 03:22:15 +0000 (23:22 -0400)]
Merge pull request #21290 from eileenmcnaughton/pdftrait

[REF] dev/core#2790 Initial creation of pdf trait

2 years ago[REF] Remove unreachable code
Eileen McNaughton [Sat, 28 Aug 2021 02:58:22 +0000 (14:58 +1200)]
[REF] Remove unreachable code

2 years ago[Ref] Minor extraction
Eileen McNaughton [Sat, 28 Aug 2021 02:32:38 +0000 (14:32 +1200)]
[Ref] Minor extraction

Simply extracts getting the subscription id & since the retrieve function throws
defaults to 'abort' the next line is unreachable

2 years agoMerge pull request #21268 from totten/master-ml-optlabel
Eileen McNaughton [Sat, 28 Aug 2021 00:36:44 +0000 (12:36 +1200)]
Merge pull request #21268 from totten/master-ml-optlabel

(dev/translation#70) Multilingual - Fix loading multiple translations within same page-view (OptionValues, ContactTypes)

2 years ago[REF] dev/core#2790 Initial creation of pdf trait
Eileen McNaughton [Fri, 27 Aug 2021 23:55:59 +0000 (11:55 +1200)]
[REF] dev/core#2790 Initial creation of pdf trait

Only one function copied over for now - setDefaultValues

2 years agoMerge pull request #21220 from agileware/CIVICRM-1812
demeritcowboy [Fri, 27 Aug 2021 13:49:04 +0000 (09:49 -0400)]
Merge pull request #21220 from agileware/CIVICRM-1812

Change the default PDF file name from "CiviLetter.pdf" to use the Activity Subject, if available

2 years agoMerge pull request #21139 from totten/master-msgtpl-class
Eileen McNaughton [Fri, 27 Aug 2021 09:04:43 +0000 (21:04 +1200)]
Merge pull request #21139 from totten/master-msgtpl-class

(dev/mail#83) Workflow Messages - Introduce class contracts

2 years agoMerge pull request #21281 from civicrm/5.41
Seamus Lee [Fri, 27 Aug 2021 08:15:14 +0000 (18:15 +1000)]
Merge pull request #21281 from civicrm/5.41

5.41

2 years agoMerge pull request #21275 from eileenmcnaughton/541
Seamus Lee [Fri, 27 Aug 2021 06:15:07 +0000 (16:15 +1000)]
Merge pull request #21275 from eileenmcnaughton/541

Fix token deprecation to be a check not an upgrade notice

2 years agoMerge pull request #21280 from civicrm/5.41
Seamus Lee [Fri, 27 Aug 2021 06:04:05 +0000 (16:04 +1000)]
Merge pull request #21280 from civicrm/5.41

5.41

2 years agoMerge pull request #21150 from colemanw/afformUpload
Seamus Lee [Fri, 27 Aug 2021 05:59:58 +0000 (15:59 +1000)]
Merge pull request #21150 from colemanw/afformUpload

Afform - support file uploads

2 years agodev/translation#70 - Cache separate ContactType lists per-locale
Tim Otten [Fri, 27 Aug 2021 05:21:49 +0000 (22:21 -0700)]
dev/translation#70 - Cache separate ContactType lists per-locale

Notes:

* If you grep to see how `contactTypes` cache is used, it appears that they never
  access this row individually outside this function.
* There are coarse-grained `clear()` invocations all `contactTypes`-related data.
  These should hit the old+new keys the same way.
* I made the cache-lookup a little more micro-optimal. :shrug:

To verify that this fixes the bug, I enabled multilingual with fr_CA+es_MX and manually translated the labels for "Individual" contacts.
Then used the following command:

```
cv ev -U admin 'function go($l){ CRM_Core_I18n::singleton()->setLocale($l); return \Civi\Test\Invasive::call(["CRM_Contact_BAO_ContactType","getAllContactTypes"])["Individual"]; } return [go("fr_CA"),go("es_MX")];'
```

Before the patch, it returns the en_US labels ("Individual"..."Individual"...).

After the patch, it returns the fr_CA and es_MX labels that I had created ("Particulier"..."Persona"...).

2 years agoOptionGroup - Fix loading of localized labels
Tim Otten [Thu, 26 Aug 2021 09:12:15 +0000 (02:12 -0700)]
OptionGroup - Fix loading of localized labels

2 years agoLocaleTest - Add example for loading localized labels
Tim Otten [Thu, 26 Aug 2021 09:12:00 +0000 (02:12 -0700)]
LocaleTest - Add example for loading localized labels

2 years agoMerge pull request #21278 from seamuslee001/5.41
Seamus Lee [Fri, 27 Aug 2021 04:12:41 +0000 (14:12 +1000)]
Merge pull request #21278 from seamuslee001/5.41

Add release-notes/5.40.4.md

2 years agoAdd release-notes/5.40.4.md
Tim Otten [Fri, 27 Aug 2021 03:00:33 +0000 (20:00 -0700)]
Add release-notes/5.40.4.md

2 years agoCIVICRM-1812 Change the default PDF file name from "CiviLetter.pdf" to use the Activi...
Justin Freeman [Fri, 27 Aug 2021 03:10:24 +0000 (13:10 +1000)]
CIVICRM-1812 Change the default PDF file name from "CiviLetter.pdf" to use the Activity Subject, if available

2 years agoMerge pull request #21259 from demeritcowboy/better-file
Eileen McNaughton [Fri, 27 Aug 2021 02:01:25 +0000 (14:01 +1200)]
Merge pull request #21259 from demeritcowboy/better-file

dev/core#2789 - Filename is not non-english-friendly in print/merge document

2 years agoAfform - support file uploads
Coleman Watts [Mon, 16 Aug 2021 01:33:57 +0000 (21:33 -0400)]
Afform - support file uploads

Adds a new API action Afform.submitFile which receives uploaded files one at a time after the form is submitted.

2 years agoFix token deprecation to be a check not an upgrade notice
Eileen McNaughton [Fri, 27 Aug 2021 01:21:43 +0000 (13:21 +1200)]
Fix token deprecation to be a check not an upgrade notice

It turns out the upgrade notice is calculated before the upgrade action runs
- this means that currently the upgrade notice is displayed even though
manual intervention will only be required in edge cases (since the
upgrade replaces the most common usage and it would require the
presence of an if or something like that for it to still exist).

2 years agoMerge pull request #21274 from mattwire/contributionviewid
Seamus Lee [Fri, 27 Aug 2021 00:31:52 +0000 (10:31 +1000)]
Merge pull request #21274 from mattwire/contributionviewid

REF Don't check if id is set in ContributionView form - it's required

2 years agoMerge pull request #21273 from eileenmcnaughton/mem
Eileen McNaughton [Fri, 27 Aug 2021 00:07:08 +0000 (12:07 +1200)]
Merge pull request #21273 from eileenmcnaughton/mem

[REF] Remove meaningless if

2 years agoDon't check if id is set in ContributionView - it's required
Matthew Wire [Thu, 26 Aug 2021 22:04:32 +0000 (23:04 +0100)]
Don't check if id is set in ContributionView - it's required

2 years ago[REF] Remove meaningless if
Eileen McNaughton [Thu, 26 Aug 2021 21:48:16 +0000 (09:48 +1200)]
[REF] Remove meaningless if

This if is meaningless but I left it in last time to reduce
visual change

2 years agoMerge pull request #21126 from eileenmcnaughton/batch
Eileen McNaughton [Thu, 26 Aug 2021 21:37:11 +0000 (09:37 +1200)]
Merge pull request #21126 from eileenmcnaughton/batch

dev/core#2717  - further cleanup

2 years agoAPIv4 - Add util function to get name of id field (primary key)
Coleman Watts [Sun, 15 Aug 2021 15:29:43 +0000 (11:29 -0400)]
APIv4 - Add util function to get name of id field (primary key)

2 years agoMerge pull request #21269 from mattwire/removeisdevelopment
colemanw [Thu, 26 Aug 2021 18:40:10 +0000 (14:40 -0400)]
Merge pull request #21269 from mattwire/removeisdevelopment

Remove deprecated isDevelopment() function

2 years agoRemove deprecated isDevelopment() function
Matthew Wire [Thu, 26 Aug 2021 13:28:18 +0000 (14:28 +0100)]
Remove deprecated isDevelopment() function

2 years agoMerge pull request #21221 from agileware/CIVICRM-1813
demeritcowboy [Thu, 26 Aug 2021 13:25:51 +0000 (09:25 -0400)]
Merge pull request #21221 from agileware/CIVICRM-1813

Change PDF file name from "civicrmContributionReceipt.pdf" to use the standard "receipt.pdf" file name

2 years agoMerge pull request #21266 from civicrm/5.41
Seamus Lee [Thu, 26 Aug 2021 08:34:17 +0000 (18:34 +1000)]
Merge pull request #21266 from civicrm/5.41

5.41

2 years agoMerge pull request #21265 from seamuslee001/5.41
Seamus Lee [Thu, 26 Aug 2021 05:13:04 +0000 (15:13 +1000)]
Merge pull request #21265 from seamuslee001/5.41

[NFC] Do not generate a result cache file when running legacycustomse…

2 years ago[NFC] Do not generate a result cache file when running legacycustomsearches phpunit...
Seamus Lee [Thu, 26 Aug 2021 03:13:44 +0000 (13:13 +1000)]
[NFC] Do not generate a result cache file when running legacycustomsearches phpunit tests

2 years agoMerge pull request #21260 from eileenmcnaughton/act_search
Seamus Lee [Thu, 26 Aug 2021 02:46:36 +0000 (12:46 +1000)]
Merge pull request #21260 from eileenmcnaughton/act_search

Do not enable custom activity search on new installs

2 years agoMerge pull request #21235 from seamuslee001/dev_core_2768
Eileen McNaughton [Thu, 26 Aug 2021 02:06:37 +0000 (14:06 +1200)]
Merge pull request #21235 from seamuslee001/dev_core_2768

Resolve dev/core#2768 Reinstate code into APIv4 that handled magic fu…

2 years agoMerge pull request #21264 from civicrm/5.41
Eileen McNaughton [Thu, 26 Aug 2021 01:58:46 +0000 (13:58 +1200)]
Merge pull request #21264 from civicrm/5.41

5.41 to master

2 years agoMerge pull request #21250 from agileware/CIVICRM-1820
Eileen McNaughton [Thu, 26 Aug 2021 01:50:31 +0000 (13:50 +1200)]
Merge pull request #21250 from agileware/CIVICRM-1820

CiviCRM Scheduled Reminders, Effective Start Date and Effective End Date are incorrectly evaluated if these fields contain a value '0000-00-00 00:00:00'

2 years agoMerge pull request #21243 from mattwire/contributionpageerrors
Seamus Lee [Thu, 26 Aug 2021 01:26:00 +0000 (11:26 +1000)]
Merge pull request #21243 from mattwire/contributionpageerrors

Logging improvements for "Failed to update contribution in database"

2 years agoDo not enable custom activity search on new installs
Eileen McNaughton [Thu, 26 Aug 2021 00:34:04 +0000 (12:34 +1200)]
Do not enable custom activity search on new installs

In general we want to get away from maintaining the custom searches. Reading the docs I realised
this search does not do anything not done through advanced search and activity search (even
before we start talking about search kit) so this is 'one down

2 years agomake filename non-english-friendly
demeritcowboy [Thu, 26 Aug 2021 00:07:54 +0000 (20:07 -0400)]
make filename non-english-friendly

2 years agoCIVICRM-1820 CiviCRM Scheduled Reminders, Effective Start Date and Effective End...
Justin Freeman [Wed, 25 Aug 2021 23:59:14 +0000 (09:59 +1000)]
CIVICRM-1820 CiviCRM Scheduled Reminders, Effective Start Date and Effective End Date are incorrectly evaluated if these fields contain a value '0000-00-00 00:00:00'

2 years agoMerge pull request #21258 from civicrm/5.41
Seamus Lee [Wed, 25 Aug 2021 23:51:48 +0000 (09:51 +1000)]
Merge pull request #21258 from civicrm/5.41

5.41

2 years agoCleanup input params on legacyProcessMembership
Eileen McNaughton [Mon, 16 Aug 2021 05:08:37 +0000 (17:08 +1200)]
Cleanup input params on legacyProcessMembership

2 years agoChanged support to dev/core from ext/oauth
Joe Murray [Wed, 25 Aug 2021 22:50:10 +0000 (18:50 -0400)]
Changed support to dev/core from ext/oauth

2 years agoMerge pull request #20935 from eileenmcnaughton/hhhh
Seamus Lee [Wed, 25 Aug 2021 22:36:25 +0000 (08:36 +1000)]
Merge pull request #20935 from eileenmcnaughton/hhhh

dev/core#2717 Simplify batch membership renewal

2 years agoMerge pull request #21106 from eileenmcnaughton/order
Seamus Lee [Wed, 25 Aug 2021 22:16:38 +0000 (08:16 +1000)]
Merge pull request #21106 from eileenmcnaughton/order

dev/core#2634 Add v4 Membership api, access it via order

2 years agoMerge pull request #21230 from eileenmcnaughton/541-w-order
Seamus Lee [Wed, 25 Aug 2021 22:10:03 +0000 (08:10 +1000)]
Merge pull request #21230 from eileenmcnaughton/541-w-order

FIx order api regression

2 years agoMerge pull request #21257 from eileenmcnaughton/cset
Seamus Lee [Wed, 25 Aug 2021 22:07:39 +0000 (08:07 +1000)]
Merge pull request #21257 from eileenmcnaughton/cset

Template fixes - notices, syntax

2 years agoMerge pull request #21255 from demeritcowboy/not-so-hidden
Seamus Lee [Wed, 25 Aug 2021 22:07:31 +0000 (08:07 +1000)]
Merge pull request #21255 from demeritcowboy/not-so-hidden

Fix invalid parameter giving E_WARNING

2 years agoE notice fixes
Eileen McNaughton [Wed, 25 Aug 2021 19:55:04 +0000 (07:55 +1200)]
E notice fixes

2 years agofix invalid parameter
demeritcowboy [Wed, 25 Aug 2021 19:44:58 +0000 (15:44 -0400)]
fix invalid parameter

2 years agoSettings.tpl - Fix syntax error
Tim Otten [Wed, 25 Aug 2021 06:50:10 +0000 (23:50 -0700)]
Settings.tpl - Fix syntax error

2 years agoAdd order fix
Eileen McNaughton [Tue, 24 Aug 2021 02:03:48 +0000 (14:03 +1200)]
Add order  fix

2 years agoMerge pull request #21252 from civicrm/JoeMurray-patch-1
Eileen McNaughton [Wed, 25 Aug 2021 19:24:23 +0000 (07:24 +1200)]
Merge pull request #21252 from civicrm/JoeMurray-patch-1

Provided standard links in ext/oauth-client/info.xml, fixed typo

2 years agoMerge pull request #21251 from eileenmcnaughton/email
demeritcowboy [Wed, 25 Aug 2021 18:09:04 +0000 (14:09 -0400)]
Merge pull request #21251 from eileenmcnaughton/email

[Ref] Copy emailcommon function back to email trait

2 years agoMerge pull request #21101 from eileenmcnaughton/inv3
demeritcowboy [Wed, 25 Aug 2021 16:24:17 +0000 (12:24 -0400)]
Merge pull request #21101 from eileenmcnaughton/inv3

[REF] Update a few references to invoicing

2 years agoProvided standard links, fixed typo
Joe Murray [Wed, 25 Aug 2021 13:25:25 +0000 (09:25 -0400)]
Provided standard links, fixed typo

2 years agoMerge pull request #21217 from colemanw/searchKitButtonTokens
Seamus Lee [Wed, 25 Aug 2021 10:11:02 +0000 (20:11 +1000)]
Merge pull request #21217 from colemanw/searchKitButtonTokens

SearchKit - Allow tokens in menu button text

2 years agoMerge pull request #21134 from eileenmcnaughton/tok_nearly
Tim Otten [Wed, 25 Aug 2021 09:35:54 +0000 (02:35 -0700)]
Merge pull request #21134 from eileenmcnaughton/tok_nearly

 dev/core#2745 - Contribution Tokens - Support 'contributionId'

2 years ago[Ref] Copy emailcommon function back to email trait
Eileen McNaughton [Wed, 25 Aug 2021 07:35:32 +0000 (19:35 +1200)]
[Ref] Copy emailcommon function back to email trait

This is part of ending the email common trait. It is currently 'shared'
with a couple of other places - but most of the functionality is
not that shared & could be easily cleaned up when separated out.

I want to create a trait for PdfTrait like the email trait so
getting the email trait better separated for that

2 years agoMerge pull request #21006 from deb1990/rename-pdf-file
Eileen McNaughton [Wed, 25 Aug 2021 07:21:36 +0000 (19:21 +1200)]
Merge pull request #21006 from deb1990/rename-pdf-file

dev/core#2121 Ability to change pdf filename before downloading

2 years agoMerge pull request #21246 from eileenmcnaughton/master
Seamus Lee [Wed, 25 Aug 2021 01:24:13 +0000 (11:24 +1000)]
Merge pull request #21246 from eileenmcnaughton/master

5.41 to master

2 years agoMerge pull request #21244 from demeritcowboy/angular-loader
colemanw [Wed, 25 Aug 2021 01:21:25 +0000 (21:21 -0400)]
Merge pull request #21244 from demeritcowboy/angular-loader

[NFC] - Replace deprecated function in AngularLoaderTest

2 years agoMerge pull request #21245 from agileware/CIVICRM-1816
Eileen McNaughton [Wed, 25 Aug 2021 01:04:03 +0000 (13:04 +1200)]
Merge pull request #21245 from agileware/CIVICRM-1816

CiviCRM Mailing, function unsub_from_mailing has spelling error, "experiement" impacts A/B Mailing unsubscribes

2 years agoRevert "Re-fix test to work with new check"
Eileen McNaughton [Tue, 24 Aug 2021 23:36:12 +0000 (11:36 +1200)]
Revert "Re-fix test to work with new check"

This reverts commit 77136dc6d4216211998729cea305d81868309809.

2 years agoMerge branch '5.41' of github.com:civicrm/civicrm-core
Eileen McNaughton [Tue, 24 Aug 2021 23:35:28 +0000 (11:35 +1200)]
Merge branch '5.41' of github.com:civicrm/civicrm-core

2 years agoCIVICRM-1816 CiviCRM Mailing, function unsub_from_mailing has spelling error, "experi...
Justin Freeman [Tue, 24 Aug 2021 23:13:51 +0000 (09:13 +1000)]
CIVICRM-1816 CiviCRM Mailing, function unsub_from_mailing has spelling error, "experiement" impacts A/B Mailing unsubscribes

2 years agoMerge pull request #21169 from eileenmcnaughton/email
Seamus Lee [Tue, 24 Aug 2021 22:20:40 +0000 (08:20 +1000)]
Merge pull request #21169 from eileenmcnaughton/email

dev/core#2769 use php email validation not hacked & bad quickform function

2 years agoreplace deprecated function
demeritcowboy [Tue, 24 Aug 2021 22:01:15 +0000 (18:01 -0400)]
replace deprecated function

2 years agoSet error level for mail configuration errors
Matthew Wire [Tue, 24 Aug 2021 19:07:59 +0000 (20:07 +0100)]
Set error level for mail configuration errors

2 years agoLog actual error message when contribution page submission fails to complete
Matthew Wire [Tue, 24 Aug 2021 16:01:35 +0000 (17:01 +0100)]
Log actual error message when contribution page submission fails to complete

2 years agoMerge pull request #21212 from eileenmcnaughton/541-orig
Monish Deb [Tue, 24 Aug 2021 15:59:24 +0000 (21:29 +0530)]
Merge pull request #21212 from eileenmcnaughton/541-orig

dev/financial#180 Fix line item calculation regression on line items (incorrectly treating as exclusive)

2 years agoMerge pull request #20898 from JMAConsulting/issue_2701
demeritcowboy [Tue, 24 Aug 2021 13:58:55 +0000 (09:58 -0400)]
Merge pull request #20898 from JMAConsulting/issue_2701

(Smart Group) is being constantly added while editing the smart group title from 'Manage Group' page

2 years agodev/core#2769 use php email validation not hacked qf
Eileen McNaughton [Tue, 17 Aug 2021 22:44:19 +0000 (10:44 +1200)]
dev/core#2769 use php email validation not hacked qf

Per https://lab.civicrm.org/dev/core/-/issues/2769 we have had problems over the years with
quickform's email validation and we now have a hacked version that is
problematic from a maintenance pov & also doesn't work
with the string I have just encountered: name.-o-.i.10@example.com
(which I am told is valid and which passes the php filter).

We already have an email rule which calls a php native function
which is better maintained than our layers of hacks. This
PR registers our email rule - which overrides the quickform
one. If we merge this we can revert quickform back to
unhacked which will improve debugging
and maintenance (although it's actually bypassed
now with this change)

2 years agoMerge pull request #21240 from civicrm/5.41
Eileen McNaughton [Tue, 24 Aug 2021 07:26:45 +0000 (19:26 +1200)]
Merge pull request #21240 from civicrm/5.41

5.41 to master

2 years agoRevert test change that 'supported' incorrect code change
Eileen McNaughton [Tue, 24 Aug 2021 00:22:35 +0000 (12:22 +1200)]
Revert test change that 'supported' incorrect code change

https://github.com/civicrm/civicrm-core/commit/e967ce8fe2b58b94e2163dde395542e55599da13#diff-44a947115564a688b2d6e0772ad25039b8d244225cf250dbc27ed32a134467a3L395-R396

2 years agoMerge pull request #21239 from kcristiano/dev-2784
Eileen McNaughton [Tue, 24 Aug 2021 07:09:40 +0000 (19:09 +1200)]
Merge pull request #21239 from kcristiano/dev-2784

dev/core#2784 Export PRIMARY fields Fails on CiviCRM 5.40.2 and MariaDB 10.3 with row size issue

2 years agoMerge pull request #21105 from colemanw/afformSubmission
Eileen McNaughton [Tue, 24 Aug 2021 04:58:29 +0000 (16:58 +1200)]
Merge pull request #21105 from colemanw/afformSubmission

Afform - Store submissions in a new database table

2 years agoMerge pull request #21231 from civicrm/5.41
Eileen McNaughton [Tue, 24 Aug 2021 04:57:43 +0000 (16:57 +1200)]
Merge pull request #21231 from civicrm/5.41

5.41

2 years agoMove the tested but crazy tax calc to the contribution api
Eileen McNaughton [Mon, 23 Aug 2021 20:57:08 +0000 (08:57 +1200)]
Move the tested but crazy tax calc to the contribution api

2 years agoFix line item calculation from exclusive to inclusive
Eileen McNaughton [Sun, 22 Aug 2021 00:16:12 +0000 (12:16 +1200)]
Fix line item calculation from exclusive to inclusive

This was added https://github.com/civicrm/civicrm-core/commit/e967ce8fe2b58b94e2163dde395542e55599da13#diff-a16d4d7449cf5f3a0616d1d282a32f27ab6d3f7d2726d076c02ad1d4d655af41R512

but incorrectly assumes the totalAmount is exclusive at this point - but
it is inclusive

2 years agoMerge pull request #21238 from eileenmcnaughton/541-lines
Eileen McNaughton [Tue, 24 Aug 2021 04:23:46 +0000 (16:23 +1200)]
Merge pull request #21238 from eileenmcnaughton/541-lines

Fix test to actually pass valid data

2 years agoMerge pull request #21237 from seamuslee001/5.41
Seamus Lee [Tue, 24 Aug 2021 03:08:30 +0000 (13:08 +1000)]
Merge pull request #21237 from seamuslee001/5.41

Add release-notes/5.40.3.md

2 years agoExport PRIMARY fields Fails on CiviCRM 5.40.2 and MariaDB 10.3
Kevin Cristiano [Tue, 24 Aug 2021 02:12:04 +0000 (22:12 -0400)]
Export PRIMARY fields Fails on CiviCRM 5.40.2 and MariaDB 10.3

with row size issue  https://lab.civicrm.org/dev/core/-/issues/2784

2 years agoRe-fix test to work with new check
Eileen McNaughton [Tue, 24 Aug 2021 01:30:10 +0000 (13:30 +1200)]
Re-fix test to work with new check

A new check was enabled for this test recently and it passed because we
were doing recalculation - but that recalculation was not always right
and there is no expectation that passing in the wrong total_amount
is OK so this fixes total_amount to be equal to the
sum of the line items - which is what is checked

2 years agoAdd release-notes/5.40.3.md
Tim Otten [Tue, 24 Aug 2021 01:32:01 +0000 (18:32 -0700)]
Add release-notes/5.40.3.md

2 years agoResolve dev/core#2768 Reinstate code into APIv4 that handled magic functions
Seamus Lee [Tue, 24 Aug 2021 00:12:12 +0000 (10:12 +1000)]
Resolve dev/core#2768 Reinstate code into APIv4 that handled magic functions

Add in test to assert Exception type and exception message that is thrown

2 years agoAfform - Store submissions in a new database table
Coleman Watts [Thu, 12 Aug 2021 21:17:05 +0000 (17:17 -0400)]
Afform - Store submissions in a new database table

This adds the `civicrm_afform_submission` table and accompanying api entity,
and a new Afform setting "create_submission" which will store a
submission record whenever a form is submitted.

2 years agoMerge pull request #21233 from eileenmcnaughton/xml
Seamus Lee [Tue, 24 Aug 2021 00:33:31 +0000 (10:33 +1000)]
Merge pull request #21233 from eileenmcnaughton/xml

Add date metadata for email.on_hold, reset_date

2 years agoMerge pull request #21228 from colemanw/afformFixTitle
Seamus Lee [Mon, 23 Aug 2021 23:44:16 +0000 (09:44 +1000)]
Merge pull request #21228 from colemanw/afformFixTitle

Afform - fix contact source field & field defaults

2 years agoMerge pull request #21218 from colemanw/afformLocationType
Seamus Lee [Mon, 23 Aug 2021 23:35:52 +0000 (09:35 +1000)]
Merge pull request #21218 from colemanw/afformLocationType

Afform - Rename blocks and joins for clarity

2 years agoMerge pull request #21224 from ufundo/oauth-systoken-refresh-fix
Seamus Lee [Mon, 23 Aug 2021 23:28:14 +0000 (09:28 +1000)]
Merge pull request #21224 from ufundo/oauth-systoken-refresh-fix

dev/core#2779 - Specify row fields to fetch in Api4 OAuthSysToken.Refresh

2 years agoMerge pull request #21208 from colemanw/refNotes
Seamus Lee [Mon, 23 Aug 2021 23:06:47 +0000 (09:06 +1000)]
Merge pull request #21208 from colemanw/refNotes

[REF] APIv4 Notes - Ensure child notes are deleted with parent, and hooks are called

2 years agoAdd date metadata for email.on_hold, reset_date
Eileen McNaughton [Mon, 23 Aug 2021 22:20:30 +0000 (10:20 +1200)]
Add date metadata for email.on_hold, reset_date

2 years agoMerge pull request #21229 from eileenmcnaughton/cache
Seamus Lee [Mon, 23 Aug 2021 21:31:09 +0000 (07:31 +1000)]
Merge pull request #21229 from eileenmcnaughton/cache

Test cleanup fix

2 years agoNote API - Ensure child notes are deleted with parent, and hooks are called
Coleman Watts [Sat, 21 Aug 2021 16:51:41 +0000 (12:51 -0400)]
Note API - Ensure child notes are deleted with parent, and hooks are called

Deprecates the CRM_Core_BAO_Note::del() function and refactors out all references to it.
Related to work on dev/core#2757

2 years agoMerge pull request #21226 from colemanw/noteRef
Eileen McNaughton [Mon, 23 Aug 2021 21:14:25 +0000 (09:14 +1200)]
Merge pull request #21226 from colemanw/noteRef

[REF] Remove unused/unneeded variables from Note View page

2 years agoAfform - Fix setting default value
Coleman Watts [Mon, 23 Aug 2021 20:21:41 +0000 (16:21 -0400)]
Afform - Fix setting default value

String comparison was failing for integer keys.