civicrm-core.git
3 years agoMerge pull request #17951 from eileenmcnaughton/export_im
Seamus Lee [Tue, 4 Aug 2020 05:53:48 +0000 (15:53 +1000)]
Merge pull request #17951 from eileenmcnaughton/export_im

[REF] Simplify location metadata handling in Export class

3 years agoMerge pull request #18059 from civicrm/5.28
Seamus Lee [Tue, 4 Aug 2020 04:13:04 +0000 (14:13 +1000)]
Merge pull request #18059 from civicrm/5.28

5.28

3 years agoMerge pull request #18053 from seamuslee001/test_ports
Seamus Lee [Tue, 4 Aug 2020 04:11:44 +0000 (14:11 +1000)]
Merge pull request #18053 from seamuslee001/test_ports

[NFC] Port some recent test fixes from master to 5.28

3 years agoMerge pull request #18057 from eileenmcnaughton/single
Seamus Lee [Tue, 4 Aug 2020 02:33:43 +0000 (12:33 +1000)]
Merge pull request #18057 from eileenmcnaughton/single

[REF] Do not pass by reference to the recur function

3 years ago(REF) WebsiteTest - Mitigate flaky failures
Tim Otten [Tue, 14 Jul 2020 18:18:08 +0000 (11:18 -0700)]
(REF) WebsiteTest - Mitigate flaky failures

Overview
--------

In recent days, api_v3_WebsiteTest has emitted sporadic failures like this:

```
api_v3_WebsiteTest::testDeleteWebsite with data set #0 (3)
Failed asserting that 3 matches expected 0.

/home/jenkins/bknix-max/build/build-2/web/sites/all/modules/civicrm/tests/phpunit/api/v3/WebsiteTest.php:75
/home/jenkins/bknix-max/build/build-2/web/sites/all/modules/civicrm/tests/phpunit/CiviTest/CiviUnitTestCase.php:209
/home/jenkins/bknix-max/extern/phpunit7/phpunit7.phar:615
```

and

```
api_v3_WebsiteTest::testDeleteWebsiteInvalid with data set #0 (3)
Failed asserting that 4 matches expected 1.

/home/jenkins/bknix-max/build/build-2/web/sites/all/modules/civicrm/tests/phpunit/api/v3/WebsiteTest.php:88
/home/jenkins/bknix-max/build/build-2/web/sites/all/modules/civicrm/tests/phpunit/CiviTest/CiviUnitTestCase.php:209
/home/jenkins/bknix-max/extern/phpunit7/phpunit7.phar:615
```

These failures do not reproduce for me in isolation.

Before
------

Both the failing assertions make an implicit assumption that the baseline content of `civicrm_website` is empty.

After
-----

The failing assertions use an explicit baseline (`$beforeCount`).

Comments
--------

The test failures are sporadic and only seem to seem occur when run in the full suite.

My theory is that something else is leaking `civicrm_website` records;
however, it's hard to track that down amidst a full suite (when the full
suite takes so long to execute).  Therefore, I cannot be certain that this
is actually fixes the problem.  However, this really just tightens up the
assumptions of the test - as long as it passes the PR tests, it should be
safe to merge and then watch in the `CiviCRM-Core-Matrix`.

3 years agoMerge pull request #18051 from demeritcowboy/member-status
Eileen McNaughton [Tue, 4 Aug 2020 01:12:54 +0000 (13:12 +1200)]
Merge pull request #18051 from demeritcowboy/member-status

[REF] Simplify getMembershipStatusByDate more

3 years ago[REF] Do not pass by reference to the recur function
eileen [Tue, 4 Aug 2020 00:43:40 +0000 (12:43 +1200)]
[REF] Do not pass by reference to the recur function

This is called twice (from with the same file). In both cases the calling function exits straight after
without using or returning the value and the calling function has not itself received them by reference

3 years agoMerge pull request #17993 from eileenmcnaughton/mm
Seamus Lee [Tue, 4 Aug 2020 00:05:20 +0000 (10:05 +1000)]
Merge pull request #17993 from eileenmcnaughton/mm

Fix obscure dedupe scenario where 'bad' location data can overwrite good data

3 years agoMerge pull request #17915 from demeritcowboy/useradd-messages
Eileen McNaughton [Tue, 4 Aug 2020 00:02:46 +0000 (12:02 +1200)]
Merge pull request #17915 from demeritcowboy/useradd-messages

dev/drupal#127 - require email for the Useradd task and errors not showing

3 years agoFix for failing test
eileen [Sun, 2 Aug 2020 04:41:16 +0000 (16:41 +1200)]
Fix for failing test

BY ensuring join_date is in the past we get away from situations where there is no valid status

3 years agore-re-fix test
demeritcowboy [Fri, 31 Jul 2020 15:39:56 +0000 (11:39 -0400)]
re-re-fix test

3 years agoRe-fix test
eileen [Fri, 31 Jul 2020 04:27:55 +0000 (16:27 +1200)]
Re-fix test

The strtotime calculation adds 4 months before setting the day of month. However

July 31 + 4 months is 1 Dec - ie the month is 12 not 11 due to there being only 30 days. So to
get 27 Nov we need to get the July month (7) and add 4 and voila 11, not 12

3 years agoupdate failing test
demeritcowboy [Thu, 30 Jul 2020 03:28:56 +0000 (23:28 -0400)]
update failing test

3 years agomake test less time-sensitive
demeritcowboy [Tue, 21 Jul 2020 03:14:46 +0000 (23:14 -0400)]
make test less time-sensitive

3 years agoapi_v3_TaxContributionPageTest fix - remove hard coded processor id
eileen [Thu, 16 Jul 2020 07:12:54 +0000 (19:12 +1200)]
api_v3_TaxContributionPageTest fix - remove hard coded processor id

3 years agoMerge pull request #18025 from eileenmcnaughton/isotosql
Seamus Lee [Mon, 3 Aug 2020 23:31:19 +0000 (09:31 +1000)]
Merge pull request #18025 from eileenmcnaughton/isotosql

dev/core#1921 [Ref] remove isoToMysql

3 years agoMerge pull request #18052 from seamuslee001/master
Seamus Lee [Mon, 3 Aug 2020 23:02:45 +0000 (09:02 +1000)]
Merge pull request #18052 from seamuslee001/master

dev/core#1665 Remove the having clause as well as having needs a group by

3 years agoRemove the having clause as well as having needs a group by
Seamus Lee [Mon, 3 Aug 2020 21:34:21 +0000 (07:34 +1000)]
Remove the having clause as well as having needs a group by

3 years agoMerge pull request #16877 from agileware/CIVICRM-1457
Seamus Lee [Mon, 3 Aug 2020 21:35:26 +0000 (07:35 +1000)]
Merge pull request #16877 from agileware/CIVICRM-1457

Remove ORDER BY and GROUP BY from alphabetQuery to improve performance

3 years agosimplification and add more test
demeritcowboy [Mon, 3 Aug 2020 17:51:40 +0000 (13:51 -0400)]
simplification and add more test

3 years agoMerge pull request #17937 from seamuslee001/radio_jquery_require
Matthew Wire [Mon, 3 Aug 2020 14:20:40 +0000 (15:20 +0100)]
Merge pull request #17937 from seamuslee001/radio_jquery_require

Fix JQuery Validation for radios

3 years agoMerge pull request #18030 from eileenmcnaughton/fail
Matthew Wire [Mon, 3 Aug 2020 13:18:45 +0000 (14:18 +0100)]
Merge pull request #18030 from eileenmcnaughton/fail

[REF] Simplify membership status date handling

3 years agoMerge pull request #18044 from eileenmcnaughton/pprefs
Matthew Wire [Mon, 3 Aug 2020 13:17:40 +0000 (14:17 +0100)]
Merge pull request #18044 from eileenmcnaughton/pprefs

Fix PaypalIPN single function to not receive-by-reference

3 years agoMerge pull request #18018 from eileenmcnaughton/cont_status
Matthew Wire [Mon, 3 Aug 2020 13:15:16 +0000 (14:15 +0100)]
Merge pull request #18018 from eileenmcnaughton/cont_status

Remove requirement to pass 'contribution_status_id' => Pending from order.create

3 years agoMerge pull request #18032 from eileenmcnaughton/single
Matthew Wire [Mon, 3 Aug 2020 13:13:44 +0000 (14:13 +0100)]
Merge pull request #18032 from eileenmcnaughton/single

[REF] Clean up handling of financial_type_id override

3 years agoMerge pull request #18033 from eileenmcnaughton/cont_id
Matthew Wire [Mon, 3 Aug 2020 13:11:20 +0000 (14:11 +0100)]
Merge pull request #18033 from eileenmcnaughton/cont_id

Use saved contribution's line items rather than the primaryContributionID

3 years agoMerge pull request #18046 from eileenmcnaughton/trans
Eileen McNaughton [Mon, 3 Aug 2020 03:42:38 +0000 (15:42 +1200)]
Merge pull request #18046 from eileenmcnaughton/trans

[REF] Remove transaction from completeOrder signature

3 years agoMerge pull request #17966 from pradpnayak/divwrap
Eileen McNaughton [Mon, 3 Aug 2020 01:52:00 +0000 (13:52 +1200)]
Merge pull request #17966 from pradpnayak/divwrap

Wrap multi record custom field inside a div

3 years ago[REF] Clean up handling of financial_type_id override
eileen [Sat, 1 Aug 2020 20:45:13 +0000 (08:45 +1200)]
[REF] Clean up handling of financial_type_id override

Currently we use the primaryContributionID to determine whether the templateContribution will
have more than one line item & unset the parameter. It makes much more sense to do evaluations
on how many line items the template contribution will have when we have loaded it's line items.

The logic is that the financial_type_id can be overriden either by editing the recurring contribution
(which you are permitted to do if only one line item exists) or by passing it in via input (which
is ignored if there is more than one line item.

This change ensures the input parameter reaches repeatTrannsaction - which is the appropriate
place to determine whether to apply it.

It removes one of 2 places that refers to primaryContributionID. The other is also inappropriate
as it is basically used to look up the line items to see the number of terms for the membership. However,
we already know that for any repeat transactions as we have already loaded the line items. In
completeOrder the line items are that of the contribution being saved.

We could pass the saved contribution id into this function as a quick way to eliminate the primaryContributionID
or we could just determine num_terms rather than primaryContributionID earlier on

3 years agoMerge pull request #18045 from eileenmcnaughton/sleep
Eileen McNaughton [Mon, 3 Aug 2020 01:16:37 +0000 (13:16 +1200)]
Merge pull request #18045 from eileenmcnaughton/sleep

[Test fix] We might need this to ensure really quick test runs don't fail

3 years ago[REF] Remove transaction from completeOrder signature
eileen [Mon, 3 Aug 2020 01:10:45 +0000 (13:10 +1200)]
[REF] Remove transaction from completeOrder signature

It is no longer passed in

3 years agoMerge pull request #17706 from demeritcowboy/mysql-ssl-alt
Eileen McNaughton [Mon, 3 Aug 2020 00:57:31 +0000 (12:57 +1200)]
Merge pull request #17706 from demeritcowboy/mysql-ssl-alt

dev/core#1137 - Allow ssl connection to mysql by specifying in DSN

3 years agoMerge pull request #18038 from eileenmcnaughton/perm_test
Seamus Lee [Mon, 3 Aug 2020 00:16:10 +0000 (10:16 +1000)]
Merge pull request #18038 from eileenmcnaughton/perm_test

Test - attempt to replicate #17852

3 years agoMerge pull request #18042 from eileenmcnaughton/transact
Seamus Lee [Mon, 3 Aug 2020 00:15:30 +0000 (10:15 +1000)]
Merge pull request #18042 from eileenmcnaughton/transact

[REF] Remove transaction from BaseIPN completeTransaction call

3 years agoMerge pull request #17700 from ixiam/dev-#1843
Eileen McNaughton [Sun, 2 Aug 2020 23:56:16 +0000 (11:56 +1200)]
Merge pull request #17700 from ixiam/dev-#1843

Remove url-tracking in mass sms. dev/core#1843

3 years agoMerge pull request #17972 from eileenmcnaughton/matt_another
Eileen McNaughton [Sun, 2 Aug 2020 23:54:36 +0000 (11:54 +1200)]
Merge pull request #17972 from eileenmcnaughton/matt_another

Do not overwrite values saved from the repeatContribution routine

3 years agoMerge pull request #18043 from demeritcowboy/liar-fields
Eileen McNaughton [Sun, 2 Aug 2020 23:54:20 +0000 (11:54 +1200)]
Merge pull request #18043 from demeritcowboy/liar-fields

dev/core#1916 - Fix naming of case export fields / remove ones that aren't true

3 years agoMerge pull request #17824 from colemanw/checks
Eileen McNaughton [Sun, 2 Aug 2020 23:48:13 +0000 (11:48 +1200)]
Merge pull request #17824 from colemanw/checks

SystemCheck: add ability to efficiently run only specified checks

3 years ago[Test fix] We might need this to ensure really quick test runs don't fail
eileen [Sun, 2 Aug 2020 23:24:07 +0000 (11:24 +1200)]
[Test fix] We might need this to ensure really quick test runs don't fail

3 years agoFix PaypalIPN single function to not receive-by-reference
eileen [Sun, 2 Aug 2020 22:05:02 +0000 (10:05 +1200)]
Fix PaypalIPN single function to not receive-by-reference

The function is called from 2 places
- main
- recur

In both cases it is at the end of the function & so the vars, if altered, are not used again.
In the case of main they are internal to the function whereas for recur they are not returned to the
calling function

3 years agoFix naming of fields /remove ones that aren't true
demeritcowboy [Fri, 31 Jul 2020 14:30:13 +0000 (10:30 -0400)]
Fix naming of fields /remove ones that aren't true

3 years ago[REF] Remove transaction from BaseIPN completeTransaction call
eileen [Sun, 2 Aug 2020 21:43:56 +0000 (09:43 +1200)]
[REF] Remove transaction from BaseIPN completeTransaction call

This is now never passed in

3 years agoFix code to not overwrite source contribution - unit test for 17455
Jitendra Purohit [Wed, 15 Jul 2020 10:12:30 +0000 (15:42 +0530)]
Fix code to not overwrite source contribution - unit test for 17455

3 years agoMerge pull request #18028 from eileenmcnaughton/anet
Seamus Lee [Sun, 2 Aug 2020 21:24:03 +0000 (07:24 +1000)]
Merge pull request #18028 from eileenmcnaughton/anet

Add testing to Authorize.net and remove the lines that are repeated

3 years agoMerge pull request #18037 from eileenmcnaughton/status_check
Seamus Lee [Sun, 2 Aug 2020 20:37:26 +0000 (06:37 +1000)]
Merge pull request #18037 from eileenmcnaughton/status_check

Add test on status calculation

3 years agoMerge pull request #18041 from demeritcowboy/status-type-whats-the-diff
Seamus Lee [Sun, 2 Aug 2020 20:35:55 +0000 (06:35 +1000)]
Merge pull request #18041 from demeritcowboy/status-type-whats-the-diff

Fix qill typo

3 years agofix qill typo
demeritcowboy [Sun, 2 Aug 2020 18:21:54 +0000 (14:21 -0400)]
fix qill typo

3 years agoRemove requirement to pass 'contribution_status_id' => Pending from order.create
eileen [Sat, 1 Aug 2020 00:36:27 +0000 (12:36 +1200)]
Remove requirement to pass 'contribution_status_id' => Pending from order.create

contribution_status_id is a required param, but the only acceptable value is Pending. Let's make it optional.....

3 years agoMerge pull request #18015 from demeritcowboy/resubscribe-missing
Matthew Wire [Sun, 2 Aug 2020 10:23:12 +0000 (11:23 +0100)]
Merge pull request #18015 from demeritcowboy/resubscribe-missing

dev/core#1919 - Missing resubscribe url in text/plain version of unsubscribe confirmation email

3 years agoMerge pull request #18029 from eileenmcnaughton/sendmail
Matthew Wire [Sun, 2 Aug 2020 10:20:26 +0000 (11:20 +0100)]
Merge pull request #18029 from eileenmcnaughton/sendmail

[Ref] Simplify is_email_receipt in sendMail

3 years agoMerge pull request #17912 from eileenmcnaughton/flex2
Matthew Wire [Sun, 2 Aug 2020 10:18:07 +0000 (11:18 +0100)]
Merge pull request #17912 from eileenmcnaughton/flex2

Update flexmailer release information

3 years agoUse saved contribution's line items rather than the primaryContributionID
eileen [Sat, 1 Aug 2020 21:58:39 +0000 (09:58 +1200)]
Use saved contribution's line items rather than the primaryContributionID

By the time we reach this point in the code we know that
1) the contributon exists and it has an id
2) it has line items  - either those created in it's pending stage or those calculated in repeattransaction

Therefore we can reasonably assume these line items are accurate now and use them, rather than the confusing
primaryContributionID that we have doubts about the validity of

3 years agoMerge pull request #18019 from eileenmcnaughton/event_clean
Seamus Lee [Sun, 2 Aug 2020 09:40:54 +0000 (19:40 +1000)]
Merge pull request #18019 from eileenmcnaughton/event_clean

[REF] [Test] Minor simplification on test

3 years agoTest - attempt to replicate #17852
eileen [Sun, 2 Aug 2020 09:39:33 +0000 (21:39 +1200)]
Test - attempt to replicate #17852

3 years agoAdd testing to Authorize.net and remove the lines that are repeated
eileen [Sat, 1 Aug 2020 05:10:20 +0000 (17:10 +1200)]
Add testing to Authorize.net and remove the lines that are repeated

In Authorize.netIPN updates are made to the contributionRecur that are later made in ContributionRecur::updateOnNewPayment

This adds test cover to ensure no change and then removes them.

With these lines gone it's apparent that the transaction is not required here

3 years agoMerge pull request #17943 from jitendrapurohit/core-1906
Eileen McNaughton [Sun, 2 Aug 2020 07:39:29 +0000 (19:39 +1200)]
Merge pull request #17943 from jitendrapurohit/core-1906

dev/core#1906 - Allow payment create api to record payment on Failed …

3 years agoFix obscure dedupe scenario where 'bad' location data can overwrite good data
eileen [Wed, 29 Jul 2020 12:20:43 +0000 (00:20 +1200)]
Fix obscure dedupe scenario where 'bad' location data can overwrite good data

Our api permits the creation of addresses with no actual address-related data. I'm not sure this is a good
thing but one way or another some addresses got into our database with no useful information and I'm not convinced we
are alone.

When merging it's possible for a null address record to be treated as 'not a conflict' with an address record
with the same location but actual data, and for the null record to be retained. This fixes it such that in that
scenario the retained record is the one with data.

This is pretty obscure and an argument could be made for not fixing it. On the other hand this extends tests on the code
(in addition to the fairly extensive set in testBatchMergesAddresses) and I also did a few tangental cleanups

3 years agoMerge pull request #18036 from eileenmcnaughton/exp_test
Eileen McNaughton [Sun, 2 Aug 2020 06:28:14 +0000 (18:28 +1200)]
Merge pull request #18036 from eileenmcnaughton/exp_test

Fix for failing test

3 years agoAdd test on status calculation
eileen [Sun, 2 Aug 2020 04:57:34 +0000 (16:57 +1200)]
Add test on status calculation

3 years agoFix for failing test
eileen [Sun, 2 Aug 2020 04:41:16 +0000 (16:41 +1200)]
Fix for failing test

BY ensuring join_date is in the past we get away from situations where there is no valid status

3 years agoMerge pull request #18031 from mattwire/crmmoney
Eileen McNaughton [Sat, 1 Aug 2020 21:34:07 +0000 (09:34 +1200)]
Merge pull request #18031 from mattwire/crmmoney

Remove invalid use of crmMoney formatter

3 years ago[REF] [Test] Minor simplification on test
eileen [Sat, 1 Aug 2020 01:16:44 +0000 (13:16 +1200)]
[REF] [Test] Minor simplification on test

This is towards standardising on one way to reference created entities -ie

->ids['Participant'][key] = 4

3 years agomissing resubscribe url
demeritcowboy [Fri, 31 Jul 2020 21:23:16 +0000 (17:23 -0400)]
missing resubscribe url

3 years agoRemove invalid use of crmMoney
Matthew Wire [Sat, 1 Aug 2020 11:09:50 +0000 (12:09 +0100)]
Remove invalid use of crmMoney

3 years agoMerge pull request #18010 from eileenmcnaughton/pex
Matthew Wire [Sat, 1 Aug 2020 09:38:28 +0000 (10:38 +0100)]
Merge pull request #18010 from eileenmcnaughton/pex

Remove main PaymentExpress class

3 years ago[REF] Simplify membership status date handling
eileen [Sat, 1 Aug 2020 06:52:46 +0000 (18:52 +1200)]
[REF] Simplify membership status date handling

We have a test error coming out of this code. I find it unreadable - I think this would help....

There are some obvious next steps if this is all good

3 years agoMerge pull request #18026 from eileenmcnaughton/pptrans
Eileen McNaughton [Sat, 1 Aug 2020 05:43:31 +0000 (17:43 +1200)]
Merge pull request #18026 from eileenmcnaughton/pptrans

[Ref] Remove transaction instantiation in PaypalPro

3 years ago[Ref] Simplify is_email_receipt in sendMail
eileen [Sat, 1 Aug 2020 05:35:38 +0000 (17:35 +1200)]
[Ref] Simplify is_email_receipt in sendMail

This function has evolved through refactoring so there was a time when this code needed to decide whether to
send emails out or not. However, the function is now called more deliberately -ie
1) from completeTransaction - where it is only called if the decision to send an email is made
2) from the search action send Email receipts - where a user has made the decision to send (or pdf)
receipts and unless it's being called with returnMessageText = TRUE (to construct a pdf) then
send makes sense

Ergo we should send unless returnMessageText = TRUE

3 years agodev/core#1921 [Ref] remove isoToMysql
eileen [Sat, 1 Aug 2020 04:06:40 +0000 (16:06 +1200)]
dev/core#1921 [Ref] remove isoToMysql

It used to be necessary (until maybe 5 years ago) to reformat retrieved date params before re-saving

https://lab.civicrm.org/dev/core/-/issues/1921

3 years ago[Ref] Remove transaction instantiation in PaypalPro
eileen [Sat, 1 Aug 2020 04:13:59 +0000 (16:13 +1200)]
[Ref] Remove transaction instantiation in PaypalPro

The transaction is an optional param & we are not doing any saves so let's take the option to not pass it in...

3 years agoMerge pull request #18020 from eileenmcnaughton/pptrans
Seamus Lee [Sat, 1 Aug 2020 04:10:47 +0000 (14:10 +1000)]
Merge pull request #18020 from eileenmcnaughton/pptrans

[REF] Stop instantiating transaction in PaypalIPN

3 years agoMerge pull request #18021 from eileenmcnaughton/ids_billing
Seamus Lee [Sat, 1 Aug 2020 04:08:35 +0000 (14:08 +1000)]
Merge pull request #18021 from eileenmcnaughton/ids_billing

Remove unused parameter ids['billing']

3 years agoMerge pull request #18023 from civicrm/5.28
Eileen McNaughton [Sat, 1 Aug 2020 03:47:36 +0000 (15:47 +1200)]
Merge pull request #18023 from civicrm/5.28

5.28 to master

3 years agoMerge pull request #18017 from seamuslee001/dev_mail_72
Eileen McNaughton [Sat, 1 Aug 2020 03:47:11 +0000 (15:47 +1200)]
Merge pull request #18017 from seamuslee001/dev_mail_72

dev/mail#72 Remove call to custom fatal error handler from CRM_Core_E…

3 years agoMerge pull request #17999 from eileenmcnaughton/sql_cache
Seamus Lee [Sat, 1 Aug 2020 03:03:18 +0000 (13:03 +1000)]
Merge pull request #17999 from eileenmcnaughton/sql_cache

Cache loader - remove legacy handling, handle null result from setting

3 years agoRemove unused parameter ids['billing']
eileen [Sat, 1 Aug 2020 02:06:39 +0000 (14:06 +1200)]
Remove unused parameter ids['billing']

This is no longer used in later functions and a quick grep of the code finds only one deprecated
function still refers to ids-billing after this

3 years ago[REF] Stop instantiating transaction in PaypalIPN
eileen [Sat, 1 Aug 2020 01:56:22 +0000 (13:56 +1200)]
[REF] Stop instantiating transaction in PaypalIPN

3 years agoMerge pull request #18001 from mattwire/inform-icon
Eileen McNaughton [Sat, 1 Aug 2020 01:25:38 +0000 (13:25 +1200)]
Merge pull request #18001 from mattwire/inform-icon

Change inform-icon to fa-info-circle

3 years agoMerge pull request #17984 from eileenmcnaughton/sendref
Seamus Lee [Sat, 1 Aug 2020 00:59:53 +0000 (10:59 +1000)]
Merge pull request #17984 from eileenmcnaughton/sendref

[REF] Remove pass-by-reference & always empty param

3 years agoMerge pull request #17990 from totten/master-bao-cache-adapter
Seamus Lee [Sat, 1 Aug 2020 00:59:36 +0000 (10:59 +1000)]
Merge pull request #17990 from totten/master-bao-cache-adapter

CIVICRM_BAO_CACHE_ADAPTER - Remove obsolete option

3 years agoMerge pull request #18012 from demeritcowboy/utf8mb4-temptable
Eileen McNaughton [Sat, 1 Aug 2020 00:30:46 +0000 (12:30 +1200)]
Merge pull request #18012 from demeritcowboy/utf8mb4-temptable

SQL temp table not using utf8mb4 if server default already set to utf8mb4

3 years agoMerge pull request #17996 from demeritcowboy/wrong-link-pcp-domain
Eileen McNaughton [Fri, 31 Jul 2020 23:56:07 +0000 (11:56 +1200)]
Merge pull request #17996 from demeritcowboy/wrong-link-pcp-domain

Wrong link to admin page in error message about FROM address on PCP page

3 years agoMerge pull request #17923 from eileenmcnaughton/dedupe_return
Seamus Lee [Fri, 31 Jul 2020 23:38:27 +0000 (09:38 +1000)]
Merge pull request #17923 from eileenmcnaughton/dedupe_return

[REF] Tighten up function signature for dedupePair

3 years agodev/mail#72 Remove call to custom fatal error handler from CRM_Core_Error::debug_log_...
Seamus Lee [Fri, 31 Jul 2020 23:33:52 +0000 (09:33 +1000)]
dev/mail#72 Remove call to custom fatal error handler from CRM_Core_Error::debug_log_message

3 years agoMerge pull request #17982 from eileenmcnaughton/isreceipt
Seamus Lee [Fri, 31 Jul 2020 23:25:13 +0000 (09:25 +1000)]
Merge pull request #17982 from eileenmcnaughton/isreceipt

[Ref] Move noisily deprecate  BaseIPN->sendMail, call api from it rather than BAO function

3 years agoMerge pull request #17396 from seamuslee001/use_util_mail_events
Eileen McNaughton [Fri, 31 Jul 2020 23:25:01 +0000 (11:25 +1200)]
Merge pull request #17396 from seamuslee001/use_util_mail_events

[REF] Use CRM_Utils_Mail::send for sending emails for confirming unsu…

3 years agoCIVICRM_BAO_CACHE_ADAPTER - Remove obsolete option
Tim Otten [Wed, 29 Jul 2020 04:10:11 +0000 (21:10 -0700)]
CIVICRM_BAO_CACHE_ADAPTER - Remove obsolete option

Overview
--------

The constant `CIVICRM_BAO_CACHE_ADAPTER` was a low-visibility transitional
option added during early 5.x.  It facilitated the deprecation of
`CRM_Core_BAO_Cache` (in favor of `Civi::cache()`).  The option allowed
certain builds/configurations to be tested in a "purer" configuration where
`Civi::cache()` handled all storage.

However, following #17989, the deprecated functions no longer exist.  Hence,
there's no need for transitional mechanism to support them.  The
replacements are now mainline.

Before
-------

There's some obsolete stuff hanging around.

After
-----

The obsolete stuff is taking a long walk to the moon.

3 years agoMerge pull request #17989 from eileenmcnaughton/cache_deprecate
Tim Otten [Fri, 31 Jul 2020 23:23:02 +0000 (16:23 -0700)]
Merge pull request #17989 from eileenmcnaughton/cache_deprecate

CRM_Core_BAO_Cache - Remove functions deprecated a year ago

3 years agoMerge pull request #18011 from totten/5.28-tbl
Tim Otten [Fri, 31 Jul 2020 21:55:23 +0000 (14:55 -0700)]
Merge pull request #18011 from totten/5.28-tbl

FiveTwentyEight - Provide concrete details about civicrm.files

3 years agoMerge pull request #18013 from demeritcowboy/fix-fix-test-test
Seamus Lee [Fri, 31 Jul 2020 21:48:16 +0000 (07:48 +1000)]
Merge pull request #18013 from demeritcowboy/fix-fix-test-test

[Test framework] re-re-fix test and add test for test

3 years agore-re-fix test
demeritcowboy [Fri, 31 Jul 2020 15:39:56 +0000 (11:39 -0400)]
re-re-fix test

3 years agotemptable not using utf8mb4 if server default already set
demeritcowboy [Fri, 31 Jul 2020 14:34:54 +0000 (10:34 -0400)]
temptable not using utf8mb4 if server default already set

3 years agoChange inform-icon to fa-info-circle
Matthew Wire [Thu, 30 Jul 2020 10:58:57 +0000 (11:58 +0100)]
Change inform-icon to fa-info-circle

3 years agoFiveTwentyEight - Provide concrete details about civicrm.files
Tim Otten [Fri, 31 Jul 2020 04:47:26 +0000 (21:47 -0700)]
FiveTwentyEight - Provide concrete details about civicrm.files

This hopefully makes it easier to decide what to do without needing a
scavenger hunt.

3 years agoMerge pull request #18009 from eileenmcnaughton/test
Seamus Lee [Fri, 31 Jul 2020 08:17:05 +0000 (18:17 +1000)]
Merge pull request #18009 from eileenmcnaughton/test

Re-fix test

3 years agoRemove main PaymentExpress class
eileen [Fri, 31 Jul 2020 07:48:19 +0000 (19:48 +1200)]
Remove main PaymentExpress class

I recently identified that this processor had been broken for a long time & removed the broken IPN class

At that time I didn't remove the main class as I was unsure how to deal with any legacy transactions related to it.

However, @mattwire pointed out he had done work earlier to make CiviCRM cope with not-present processor classes and,
on testing, I was unable to trigger any errors after setting up a contribution page & an event page & making a payment
and then deleting the class. I couldn't edit the contribution, but with appropriate in app messaging and no fatal
error.

3 years agoRe-fix test
eileen [Fri, 31 Jul 2020 04:27:55 +0000 (16:27 +1200)]
Re-fix test

The strtotime calculation adds 4 months before setting the day of month. However

July 31 + 4 months is 1 Dec - ie the month is 12 not 11 due to there being only 30 days. So to
get 27 Nov we need to get the July month (7) and add 4 and voila 11, not 12

3 years agoMerge pull request #18004 from colemanw/saveDoc
Eileen McNaughton [Fri, 31 Jul 2020 04:02:19 +0000 (16:02 +1200)]
Merge pull request #18004 from colemanw/saveDoc

[NFC] Improve docs for APIv4 Save action

3 years agoMerge pull request #18006 from demeritcowboy/missing-transactioninfo
Eileen McNaughton [Fri, 31 Jul 2020 04:00:55 +0000 (16:00 +1200)]
Merge pull request #18006 from demeritcowboy/missing-transactioninfo

dev/core#1909 - E_NOTICE on contribution edit

3 years agoMerge pull request #18007 from demeritcowboy/strpos-revisited
Eileen McNaughton [Fri, 31 Jul 2020 03:23:02 +0000 (15:23 +1200)]
Merge pull request #18007 from demeritcowboy/strpos-revisited

dev/core#1918 - Remove dubious qfkey checking code that never runs