civicrm-core.git
4 years agodev/wordpress#73 - Be more forgiving about slash in wpBasePage
Tim Otten [Wed, 2 Sep 2020 23:34:27 +0000 (16:34 -0700)]
dev/wordpress#73 - Be more forgiving about slash in wpBasePage

Overview
--------

The correct functioning of `wpBasePage` depends on whether the administrator
omitted or added a trailing slash.  This is apparent on URLs with a trailing slash, eg

```
http://wpmaster.bknix:8001/civicrm/contribute/transact/?reset=1&id=1
```

Make it less sensitive.

Before
------

URL is OK with default setting `wpBasePage=civicrm`

URL fails with setting `wpBasePage=civicrm/`

After
-----

URL is OK with either setting `wpBasePage=civicrm` or `wpBasePage=civicrm/`

Technical Details
-----------------

I believe the old symptom arose because of the formula which produces the WP
rewrite rules (`'^' .  $config->wpBasePage .  '/([^?]*)?'`) expects that
there is no trailing slash. You could theoretically patch there, but this
seems like it'll provide more thorough normalization.

When testing, the results affect the WP rewrite rules, so you may need to be particularly
aggressive about clearing caches whenever you make a change in code or settings, eg

```
wp cache flush ; cv flush;  wp rewrite flush
```

4 years agoSet version to 5.29.beta1
CiviCRM [Thu, 6 Aug 2020 06:23:07 +0000 (06:23 +0000)]
Set version to 5.29.beta1

4 years agoMerge pull request #18080 from seamuslee001/dev_core_1928
Seamus Lee [Thu, 6 Aug 2020 03:54:01 +0000 (13:54 +1000)]
Merge pull request #18080 from seamuslee001/dev_core_1928

dev/core#1928 Fix HTML5 error due to required attribute being set swi…

4 years agoMerge pull request #18084 from civicrm/5.28
Seamus Lee [Thu, 6 Aug 2020 03:25:30 +0000 (13:25 +1000)]
Merge pull request #18084 from civicrm/5.28

5.28

4 years agoMerge pull request #18083 from totten/5.28-rn
Tim Otten [Thu, 6 Aug 2020 03:23:56 +0000 (20:23 -0700)]
Merge pull request #18083 from totten/5.28-rn

(NFC) 5.28.0.md - Describe last minute PR. Random copyedits.

4 years agoMerge pull request #18082 from seamuslee001/master
Seamus Lee [Thu, 6 Aug 2020 02:53:29 +0000 (12:53 +1000)]
Merge pull request #18082 from seamuslee001/master

5.28

4 years ago5.28.0.md - Describe last minute PR. Random copyedits.
Tim Otten [Thu, 6 Aug 2020 02:47:27 +0000 (19:47 -0700)]
5.28.0.md - Describe last minute PR. Random copyedits.

4 years agoMerge in 5.28
Seamus Lee [Thu, 6 Aug 2020 02:38:20 +0000 (12:38 +1000)]
Merge in 5.28

4 years agoMerge pull request #18079 from eileenmcnaughton/528
Seamus Lee [Thu, 6 Aug 2020 02:35:59 +0000 (12:35 +1000)]
Merge pull request #18079 from eileenmcnaughton/528

dev/core#1930 fix for move-related checkbox being overridden to true …

4 years agodev/core#1928 Fix HTML5 error due to required attribute being set switch to using...
Seamus Lee [Thu, 6 Aug 2020 01:18:33 +0000 (11:18 +1000)]
dev/core#1928 Fix HTML5 error due to required attribute being set switch to using a class as jquery.validation picks up the class as well

4 years agodev/core#1930 fix for move-related checkbox being overridden to true in form
eileen [Thu, 6 Aug 2020 00:50:43 +0000 (12:50 +1200)]
dev/core#1930 fix for move-related checkbox being overridden to true in form

4 years agoMerge pull request #18078 from eileenmcnaughton/directp
Seamus Lee [Wed, 5 Aug 2020 23:16:02 +0000 (09:16 +1000)]
Merge pull request #18078 from eileenmcnaughton/directp

dev/financial#135 Remove stub function from payflowPro

4 years agoMerge pull request #18077 from civicrm/5.28
Seamus Lee [Wed, 5 Aug 2020 22:14:57 +0000 (08:14 +1000)]
Merge pull request #18077 from civicrm/5.28

5.28

4 years agoMerge pull request #18000 from eileenmcnaughton/brn
Seamus Lee [Wed, 5 Aug 2020 21:20:04 +0000 (07:20 +1000)]
Merge pull request #18000 from eileenmcnaughton/brn

Fix button name on updated form

4 years agoRemove stub function
eileen [Wed, 5 Aug 2020 21:05:56 +0000 (09:05 +1200)]
Remove stub function

We used to do this, we don't now

4 years agoMerge pull request #18074 from agh1/5.28.0-releasenotes-final
Mathieu Lu [Wed, 5 Aug 2020 20:33:23 +0000 (16:33 -0400)]
Merge pull request #18074 from agh1/5.28.0-releasenotes-final

5.28.0 release notes final edits

4 years ago5.28.0 release notes: added late changes
Andrew Hunt [Wed, 5 Aug 2020 18:50:10 +0000 (14:50 -0400)]
5.28.0 release notes: added late changes

4 years ago5.28.0 release notes: misc edits
Andrew Hunt [Wed, 5 Aug 2020 16:04:32 +0000 (12:04 -0400)]
5.28.0 release notes: misc edits

4 years agoMerge pull request #18073 from seamuslee001/provider_test_php74
Eileen McNaughton [Wed, 5 Aug 2020 12:20:24 +0000 (00:20 +1200)]
Merge pull request #18073 from seamuslee001/provider_test_php74

[NFC] Fix provider unit test on PHP7.4

4 years agoMerge pull request #17981 from eileenmcnaughton/merge_form
Eileen McNaughton [Wed, 5 Aug 2020 12:18:52 +0000 (00:18 +1200)]
Merge pull request #17981 from eileenmcnaughton/merge_form

[REF] Move handling of form elements back to the Form

4 years agoMerge pull request #18071 from eileenmcnaughton/anet
Matthew Wire [Wed, 5 Aug 2020 10:26:48 +0000 (11:26 +0100)]
Merge pull request #18071 from eileenmcnaughton/anet

Do not pass-by-reference to recur function

4 years agoMerge pull request #18072 from eileenmcnaughton/manual
Matthew Wire [Wed, 5 Aug 2020 10:26:16 +0000 (11:26 +0100)]
Merge pull request #18072 from eileenmcnaughton/manual

dev/financial#135 Remove unreachable doDirectPayment from manual processor

4 years ago[NFC] Fix provider unit test on PHP7.4
Seamus Lee [Wed, 5 Aug 2020 10:14:03 +0000 (20:14 +1000)]
[NFC] Fix provider unit test on PHP7.4

4 years agoMerge pull request #18049 from christianwach/lab-core-1891
Matthew Wire [Wed, 5 Aug 2020 09:57:03 +0000 (10:57 +0100)]
Merge pull request #18049 from christianwach/lab-core-1891

Refactor "applyLocale" and remove references to "language" column in UFMatch table

4 years agodev/financial#135 Remove unreachable doDirectPayment from manual processor
eileen [Wed, 5 Aug 2020 06:35:45 +0000 (18:35 +1200)]
dev/financial#135 Remove unreachable doDirectPayment from manual processor

doDirectPayment is only ever called (deprecated) when doPayment is not overriden (for quite some time now). This is
unreachable & can be removed

4 years agoDo not pass-by-reference to recur function
eileen [Wed, 5 Aug 2020 06:25:53 +0000 (18:25 +1200)]
Do not pass-by-reference to recur function

This is called once, from the main function and the values are not used again

4 years agoMerge pull request #18065 from colemanw/cronAlert
Eileen McNaughton [Wed, 5 Aug 2020 03:51:33 +0000 (15:51 +1200)]
Merge pull request #18065 from colemanw/cronAlert

Show cron warning on Scheduled Jobs admin page

4 years agoMerge pull request #18069 from civicrm/5.28
Eileen McNaughton [Wed, 5 Aug 2020 02:32:59 +0000 (14:32 +1200)]
Merge pull request #18069 from civicrm/5.28

5.28

4 years agoAPIv4 - Fix potential PHP undefined index warning
Coleman Watts [Wed, 5 Aug 2020 01:22:43 +0000 (21:22 -0400)]
APIv4 - Fix potential PHP undefined index warning

Ensures the array key '0' exists in the where clause before accessing it.

4 years agoMerge pull request #18070 from seamuslee001/dev_core_1927
Seamus Lee [Wed, 5 Aug 2020 00:48:44 +0000 (10:48 +1000)]
Merge pull request #18070 from seamuslee001/dev_core_1927

dev/core#1927 Ensure that the contents of the database table are fixe…

4 years agoMerge pull request #18056 from pradpnayak/invopdf
Eileen McNaughton [Tue, 4 Aug 2020 23:38:57 +0000 (11:38 +1200)]
Merge pull request #18056 from pradpnayak/invopdf

Use correct pdf package to generate pdf file on invoice download/email activity

4 years agodev/core#1927 Ensure that the contents of the database table are fixed up before...
Seamus Lee [Tue, 4 Aug 2020 23:19:17 +0000 (09:19 +1000)]
dev/core#1927 Ensure that the contents of the database table are fixed up before changing the column type

4 years agoMerge pull request #18066 from seamuslee001/dev_drupal_131
Seamus Lee [Tue, 4 Aug 2020 22:34:17 +0000 (08:34 +1000)]
Merge pull request #18066 from seamuslee001/dev_drupal_131

dev/drupal#131 Ensure that the General class exists

4 years agodev/drupal#131 Ensure that the General class exists
Seamus Lee [Tue, 4 Aug 2020 20:48:47 +0000 (06:48 +1000)]
dev/drupal#131 Ensure that the General class exists

4 years agoMerge pull request #18005 from agh1/button-icon-placement
Seamus Lee [Tue, 4 Aug 2020 20:24:06 +0000 (06:24 +1000)]
Merge pull request #18005 from agh1/button-icon-placement

Fix buggy placement of icons on buttons

4 years agoMerge pull request #18058 from eileenmcnaughton/date
Seamus Lee [Tue, 4 Aug 2020 20:22:55 +0000 (06:22 +1000)]
Merge pull request #18058 from eileenmcnaughton/date

[REF] Even less variable variables

4 years agoShow cron warning on Scheduled Jobs admin page
Coleman Watts [Tue, 4 Aug 2020 20:19:09 +0000 (16:19 -0400)]
Show cron warning on Scheduled Jobs admin page

4 years agoMerge pull request #18064 from agh1/configicons-ts
Eileen McNaughton [Tue, 4 Aug 2020 19:34:24 +0000 (07:34 +1200)]
Merge pull request #18064 from agh1/configicons-ts

dev/core#1905 rework #17942 with simpler ts strings

4 years agodev/core#1905 rework #17942 with simpler ts strings
Andrew Hunt [Tue, 4 Aug 2020 17:04:37 +0000 (13:04 -0400)]
dev/core#1905 rework #17942 with simpler ts strings

4 years agoMerge pull request #18039 from eileenmcnaughton/mail
Matthew Wire [Tue, 4 Aug 2020 13:40:02 +0000 (14:40 +0100)]
Merge pull request #18039 from eileenmcnaughton/mail

Extract code to set isEmailReceipt in Contribution.completeOrder

4 years agoMerge pull request #18055 from eileenmcnaughton/curr_copy
Matthew Wire [Tue, 4 Aug 2020 13:38:37 +0000 (14:38 +0100)]
Merge pull request #18055 from eileenmcnaughton/curr_copy

[REF] remove first attempt to set currency in repeattransaction flow

4 years agoMerge pull request #18063 from civicrm/5.28
Seamus Lee [Tue, 4 Aug 2020 11:58:07 +0000 (21:58 +1000)]
Merge pull request #18063 from civicrm/5.28

5.28

4 years agoMerge pull request #17942 from jitendrapurohit/configure-link
Eileen McNaughton [Tue, 4 Aug 2020 11:57:00 +0000 (23:57 +1200)]
Merge pull request #17942 from jitendrapurohit/configure-link

dev/core#1905 Add configure icons on public pages

4 years agoMerge pull request #17995 from colemanw/updateHook
Eileen McNaughton [Tue, 4 Aug 2020 11:32:52 +0000 (23:32 +1200)]
Merge pull request #17995 from colemanw/updateHook

CRM_Utils_Hook: deprecation warning and short array syntax

4 years agoMerge pull request #18040 from MegaphoneJon/selfservice-fixes
Eileen McNaughton [Tue, 4 Aug 2020 11:30:37 +0000 (23:30 +1200)]
Merge pull request #18040 from MegaphoneJon/selfservice-fixes

event#35: move statusBounce out of BAO layer; don't allow self-service when dis…

4 years agoMerge pull request #18054 from agh1/no-button-bg
Matthew Wire [Tue, 4 Aug 2020 11:30:28 +0000 (12:30 +0100)]
Merge pull request #18054 from agh1/no-button-bg

Why not make the buttons flat?

4 years agoMerge pull request #18061 from seamuslee001/5274_notes
Seamus Lee [Tue, 4 Aug 2020 10:13:27 +0000 (20:13 +1000)]
Merge pull request #18061 from seamuslee001/5274_notes

[NFC] 5.27.4 Release Notes

4 years agoMerge pull request #18062 from eileenmcnaughton/error_juice
Matthew Wire [Tue, 4 Aug 2020 10:05:44 +0000 (11:05 +0100)]
Merge pull request #18062 from eileenmcnaughton/error_juice

Improve error handling on IPN

4 years agoremoved unused statements
Pradeep Nayak [Tue, 4 Aug 2020 08:36:49 +0000 (09:36 +0100)]
removed unused statements

4 years agoImprove error handling on IPN
eileen [Tue, 4 Aug 2020 07:44:33 +0000 (19:44 +1200)]
Improve error handling on IPN

https://civicrm.stackexchange.com/questions/37277/paypal-standard-payments-are-being-accepted-but-marked-as-incomplete-transaction/37279#37279

shows how unhelpful this error is - getting data from the exception should help.

Targetting 5.28 in case the gitlab relates to a regression & we need to solicit more debug info

4 years agorelease-notes.md - Small copy-edits
Tim Otten [Tue, 4 Aug 2020 06:26:11 +0000 (23:26 -0700)]
release-notes.md - Small copy-edits

4 years agoAdd release-notes/5.27.4.md
Tim Otten [Mon, 3 Aug 2020 10:04:07 +0000 (03:04 -0700)]
Add release-notes/5.27.4.md

4 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

4 years ago[REF] remove first attempt to set currency in repeattransaction flow
eileen [Tue, 4 Aug 2020 00:25:23 +0000 (12:25 +1200)]
[REF] remove first attempt to set currency in repeattransaction flow

The currency is retrieved from the template transaction, these lines are no longer needed, as demonstrated
in the test

4 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

4 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

4 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

4 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`.

4 years ago[REF] Even less variable variables
eileen [Tue, 4 Aug 2020 01:30:55 +0000 (13:30 +1200)]
[REF] Even less variable variables

4 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

4 years agoReset button height in the WP backend
Andrew Hunt [Thu, 30 Jul 2020 19:32:13 +0000 (15:32 -0400)]
Reset button height in the WP backend

4 years agoSimplify button padding and set consistent line height
Andrew Hunt [Thu, 30 Jul 2020 18:55:51 +0000 (14:55 -0400)]
Simplify button padding and set consistent line height

4 years agoremove IE6-only CSS
Andrew Hunt [Mon, 3 Aug 2020 23:19:01 +0000 (19:19 -0400)]
remove IE6-only CSS

4 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

4 years agoUse correct pdf package to generate pdf file on invoice download/email activity
Pradeep Nayak [Tue, 4 Aug 2020 00:23:18 +0000 (01:23 +0100)]
Use correct pdf package to generate pdf file on invoice download/email activity

4 years agoNo need to make Cancel button color imperceptibly dimmer
Andrew Hunt [Mon, 3 Aug 2020 23:59:24 +0000 (19:59 -0400)]
No need to make Cancel button color imperceptibly dimmer

4 years agoRemove crm-button-bg
Andrew Hunt [Mon, 3 Aug 2020 23:57:50 +0000 (19:57 -0400)]
Remove crm-button-bg

4 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

4 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

4 years agoExtract code to set isEmailReceipt in Contribution.completeOrder
eileen [Sun, 2 Aug 2020 11:03:01 +0000 (23:03 +1200)]
Extract code to set isEmailReceipt in Contribution.completeOrder

This consolidates all the code in the completeOrder that determines whether or not to send an email receipt.

Note that
- testCompleteTransactionWithEmailReceiptInput tests that input is respected
- for events the event::sendMail function will not send unless it's configured for the event - which
explains our final default of TRUE (testCompleteTransactionWithParticipantRecord)
- testCompleteTransaction covers the back-office case which also defaults to true
- I figure the cost of reloading the value for contribution_recur is pretty cheap compared to the confusion of passing values around
- testpayLater covers contribution_page with is_email_receipt

4 years agoFix button name on updated form
eileen [Thu, 30 Jul 2020 04:02:22 +0000 (16:02 +1200)]
Fix button name on updated form

4 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

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

4 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

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

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

4 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

4 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

4 years agomove statusBounce out of BAO layer; don't allow self-service when disabled; support...
Jon Goldberg [Sat, 1 Aug 2020 21:25:23 +0000 (17:25 -0400)]
move statusBounce out of BAO layer; don't allow self-service when disabled; support cancel deadlines > 24 hours.

4 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

4 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

4 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

4 years agoRemove unused button-crm-i CSS
Andrew Hunt [Thu, 30 Jul 2020 18:48:48 +0000 (14:48 -0400)]
Remove unused button-crm-i CSS

4 years agoRemove weird styling for "Configure CKEditor" button
Andrew Hunt [Thu, 30 Jul 2020 18:46:48 +0000 (14:46 -0400)]
Remove weird styling for "Configure CKEditor" button

4 years agoStandardize single space (not nbsp) between icon and text
Andrew Hunt [Thu, 30 Jul 2020 18:36:13 +0000 (14:36 -0400)]
Standardize single space (not nbsp) between icon and text

4 years agoEliminate support for old jQuery UI based crm-button-icon icon buttons
Andrew Hunt [Thu, 30 Jul 2020 18:24:45 +0000 (14:24 -0400)]
Eliminate support for old jQuery UI based crm-button-icon icon buttons

4 years agoNo need for crm-i-button class
Andrew Hunt [Thu, 30 Jul 2020 18:15:02 +0000 (14:15 -0400)]
No need for crm-i-button class

4 years agoIcons on buttons positioned inline, not absolute
Andrew Hunt [Thu, 30 Jul 2020 18:04:39 +0000 (14:04 -0400)]
Icons on buttons positioned inline, not absolute

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

4 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

4 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

4 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

4 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

4 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

4 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

4 years agoRefactor "applyLocale" and remove references to "language" column in UFMatch table
Christian Wach [Mon, 3 Aug 2020 11:26:11 +0000 (12:26 +0100)]
Refactor "applyLocale" and remove references to "language" column in UFMatch table

4 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

4 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

4 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

4 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