civicrm-core.git
4 years agoMerge pull request #17393 from eileenmcnaughton/to
Matthew Wire [Tue, 26 May 2020 15:22:33 +0000 (16:22 +0100)]
Merge pull request #17393 from eileenmcnaughton/to

[REF] Code simplification & unit test on suppressed emails in task

4 years agoMerge pull request #17391 from mattwire/createEmailActivityclarity
Matthew Wire [Tue, 26 May 2020 15:16:43 +0000 (16:16 +0100)]
Merge pull request #17391 from mattwire/createEmailActivityclarity

NFC Add a bit more clarity to createEmailActivity function

4 years agoMerge pull request #17388 from seamuslee001/domain_tokens_message_template_admin_inte...
Matthew Wire [Tue, 26 May 2020 12:22:14 +0000 (13:22 +0100)]
Merge pull request #17388 from seamuslee001/domain_tokens_message_template_admin_interface

Add in domain tokens onto the Message Template admin interface

4 years agoMerge pull request #17253 from mattwire/utf8convertblocksize
Matthew Wire [Tue, 26 May 2020 11:28:00 +0000 (12:28 +0100)]
Merge pull request #17253 from mattwire/utf8convertblocksize

utf8mb4 - If strict mode enabled query will fail if KEY_BLOCK_SIZE is not 0

4 years agoMerge pull request #17178 from mattwire/simplifyrecurtemplates
Eileen McNaughton [Tue, 26 May 2020 11:11:01 +0000 (23:11 +1200)]
Merge pull request #17178 from mattwire/simplifyrecurtemplates

Simplify recurring contribution template inheritance

4 years agoMerge pull request #17398 from eileenmcnaughton/mem_recur
Matthew Wire [Tue, 26 May 2020 11:00:46 +0000 (12:00 +0100)]
Merge pull request #17398 from eileenmcnaughton/mem_recur

[REF] Pass an array of correct params to the function to create a recurring contribution.

4 years ago[REF] Pass an array of correct params to the function to create a recurring contribution.
eileen [Tue, 26 May 2020 07:21:21 +0000 (19:21 +1200)]
[REF] Pass an array of correct params to the function to create a recurring contribution.

This is getting away from 'passing whatever params we have' to 'passing the right params', which makes it easier
to see what can and can't be altered.

Note that from https://issues.civicrm.org/jira/browse/CRM-17636 we can see that is_email_receipt is not set
for payment purposes but contributionRecur purposes and since it's not a propertyBag param we can leave it off
here

4 years agoMerge pull request #17395 from seamuslee001/update_DAO
Eileen McNaughton [Tue, 26 May 2020 09:36:03 +0000 (21:36 +1200)]
Merge pull request #17395 from seamuslee001/update_DAO

Update DAO and L10n Schema file

4 years agoUpdate DAO and L10n Schema file
Seamus Lee [Tue, 26 May 2020 04:31:16 +0000 (14:31 +1000)]
Update DAO and L10n Schema file

4 years agoMerge pull request #17394 from colemanw/api4CustomJoins
Seamus Lee [Tue, 26 May 2020 04:28:33 +0000 (14:28 +1000)]
Merge pull request #17394 from colemanw/api4CustomJoins

APIv4 - support custom entity joins

4 years agoMerge pull request #17363 from eileenmcnaughton/price_field
Seamus Lee [Tue, 26 May 2020 03:55:45 +0000 (13:55 +1000)]
Merge pull request #17363 from eileenmcnaughton/price_field

Api4: Add Price api entities

4 years ago[REF] Code simplification & unit test on suppressed emails in task
eileen [Tue, 26 May 2020 01:26:29 +0000 (13:26 +1200)]
[REF] Code simplification & unit test on suppressed emails in task

4 years agoMerge pull request #17118 from lcdservices/dev-core-1722
Eileen McNaughton [Tue, 26 May 2020 00:58:20 +0000 (12:58 +1200)]
Merge pull request #17118 from lcdservices/dev-core-1722

dev/core#1722 Allow for first name and last name to be searched on

4 years agoMerge pull request #17244 from totten/master-preboot
Seamus Lee [Tue, 26 May 2020 00:24:17 +0000 (10:24 +1000)]
Merge pull request #17244 from totten/master-preboot

dev/translation#39 - Fix `core:install --lang`. Realign boot plugins.

4 years agoMerge pull request #17392 from eileenmcnaughton/ct
Seamus Lee [Tue, 26 May 2020 00:23:07 +0000 (10:23 +1000)]
Merge pull request #17392 from eileenmcnaughton/ct

Remove unused 'reset' param, other NFC tidy up:

4 years agoMerge pull request #17364 from eileenmcnaughton/price_pseudo
Seamus Lee [Tue, 26 May 2020 00:08:07 +0000 (10:08 +1000)]
Merge pull request #17364 from eileenmcnaughton/price_pseudo

Fix pricefield pseudoconstant.

4 years agoPriceFieldValue - Make name and label required in DB
Coleman Watts [Wed, 20 May 2020 19:57:33 +0000 (15:57 -0400)]
PriceFieldValue - Make name and label required in DB

4 years agoFix notice and redundant code in PriceFieldValue BAO
Coleman Watts [Wed, 20 May 2020 13:04:32 +0000 (09:04 -0400)]
Fix notice and redundant code in PriceFieldValue BAO

4 years agoAdd Price api entities
eileen [Wed, 20 May 2020 02:25:15 +0000 (14:25 +1200)]
Add Price api entities

Api4 entities for Price, PriceField & PriceFieldValue.

All 3 entities are accessed in the PriceFieldTest

4 years agoMerge pull request #17390 from mattwire/api3activitydatetimedefault
Eileen McNaughton [Mon, 25 May 2020 23:55:04 +0000 (11:55 +1200)]
Merge pull request #17390 from mattwire/api3activitydatetimedefault

Set default using spec for activity_date_time

4 years agoMerge pull request #17386 from seamuslee001/dev_core_1775
Eileen McNaughton [Mon, 25 May 2020 22:53:31 +0000 (10:53 +1200)]
Merge pull request #17386 from seamuslee001/dev_core_1775

dev/core#1775 Fix fee amount reversals when doing a change of financi…

4 years agoRemove unused 'reset' param, other NFC tidy up:
eileen [Mon, 25 May 2020 22:48:12 +0000 (10:48 +1200)]
Remove unused 'reset' param, other NFC tidy up:

4 years agoAPIv4 - Fix explicit joins to custom entities
Coleman Watts [Fri, 22 May 2020 20:45:11 +0000 (16:45 -0400)]
APIv4 - Fix explicit joins to custom entities

4 years agoMerge pull request #17387 from eileenmcnaughton/ct
colemanw [Mon, 25 May 2020 22:40:14 +0000 (18:40 -0400)]
Merge pull request #17387 from eileenmcnaughton/ct

Use apiv4, cache infra for basicTypes

4 years agoAPIv4 - Improve joins test coverage
Coleman Watts [Fri, 8 May 2020 13:49:10 +0000 (09:49 -0400)]
APIv4 - Improve joins test coverage

4 years agoUse apiv4, cache infra for basicTypes
eileen [Mon, 25 May 2020 06:51:33 +0000 (18:51 +1200)]
Use apiv4, cache infra for basicTypes

I came across this as using an old weird pattern accessing the DAO. On looking it made most
sense just to switch to an apiv4 call. The caching was not convoluted but effectively
used an array cache, if loaded, and the array or Redis or sql cache if not. This
is the same as using the 'metadata' or 'contactTypes' cache so I switched to the latter.

I was inclined towards the former as I lean towards thinking this metadata all belongs in one - but there
is already another function in the same class going to the latter.

4 years agoAdd a bit more clarity to createEmailActivity function
Matthew Wire [Mon, 25 May 2020 14:33:29 +0000 (15:33 +0100)]
Add a bit more clarity to createEmailActivity function

4 years agoSet default using spec for activity_date_time
Matthew Wire [Mon, 25 May 2020 14:29:03 +0000 (15:29 +0100)]
Set default using spec for activity_date_time

4 years agoMerge pull request #17228 from mattwire/fixmultilingualoptiongroups
Mathieu Lu [Mon, 25 May 2020 12:33:45 +0000 (08:33 -0400)]
Merge pull request #17228 from mattwire/fixmultilingualoptiongroups

Fix adding languages in multilingual

4 years agoMerge pull request #17308 from colemanw/BAOcleanup
Matthew Wire [Mon, 25 May 2020 11:33:32 +0000 (12:33 +0100)]
Merge pull request #17308 from colemanw/BAOcleanup

Various BAO create/add cleanups to use writeRecord()

4 years agoMerge pull request #17348 from eileenmcnaughton/payex
Matthew Wire [Mon, 25 May 2020 11:31:59 +0000 (12:31 +0100)]
Merge pull request #17348 from eileenmcnaughton/payex

Remove instantiation of transaction from payment express ipn class

4 years agoAdd in domain tokens onto the Message Template admin interface
Seamus Lee [Mon, 25 May 2020 10:43:50 +0000 (20:43 +1000)]
Add in domain tokens onto the Message Template admin interface

4 years agoMerge pull request #17381 from eileenmcnaughton/dao
Seamus Lee [Mon, 25 May 2020 05:32:51 +0000 (15:32 +1000)]
Merge pull request #17381 from eileenmcnaughton/dao

Remove null code

4 years agoMerge pull request #17384 from eileenmcnaughton/abort
Seamus Lee [Mon, 25 May 2020 05:30:53 +0000 (15:30 +1000)]
Merge pull request #17384 from eileenmcnaughton/abort

Remove validation bypass

4 years agoMerge pull request #17383 from eileenmcnaughton/ids
Eileen McNaughton [Mon, 25 May 2020 01:50:07 +0000 (13:50 +1200)]
Merge pull request #17383 from eileenmcnaughton/ids

[NFC] Remove some more of the old  cvs blocks

4 years agodev/core#1775 Fix fee amount reversals when doing a change of financial type
Seamus Lee [Mon, 25 May 2020 01:47:13 +0000 (11:47 +1000)]
dev/core#1775 Fix fee amount reversals when doing a change of financial type

4 years agoRemove validation bypass
eileen [Mon, 25 May 2020 00:15:55 +0000 (12:15 +1200)]
Remove validation bypass

I was trying to understand why executeQuery allows validation to be bypassed. That seems
intuitively like something that should be handled by the calling function. This is one of the few
places that calls it - but I can't see a reason for it to by pass validation....

My best guess is that a parameter could legitimately be NULL - and the group properly is the
only one that seems to be a candidate

I also note the case for passing i18nRewrite seems dubious as the table has no localisation

4 years ago[NFC] Remove some more of the old cvs blocks
eileen [Sun, 24 May 2020 22:52:53 +0000 (10:52 +1200)]
[NFC] Remove some more of the old  cvs blocks

4 years agoRemove null code
eileen [Sun, 24 May 2020 22:32:00 +0000 (10:32 +1200)]
Remove null code

4 years agoMerge pull request #17358 from seamuslee001/d8_prevnext_cache_test_fix
Eileen McNaughton [Sun, 24 May 2020 22:25:35 +0000 (10:25 +1200)]
Merge pull request #17358 from seamuslee001/d8_prevnext_cache_test_fix

[TEST] Fix test failure on Drupal 8 E2E PrevNextTest by only includin…

4 years agoMerge pull request #16541 from bhahumanists/subtype-issue-991
Eileen McNaughton [Sun, 24 May 2020 22:15:26 +0000 (10:15 +1200)]
Merge pull request #16541 from bhahumanists/subtype-issue-991

#991 subtypes not filled in when editing a smart group

4 years agoMerge pull request #17379 from colemanw/del
Eileen McNaughton [Sun, 24 May 2020 22:12:07 +0000 (10:12 +1200)]
Merge pull request #17379 from colemanw/del

Don't exclude deleted contacts from ACL cache when user has permission

4 years agoMerge pull request #17318 from agh1/aria-hidden-icon
Seamus Lee [Fri, 22 May 2020 20:54:50 +0000 (06:54 +1000)]
Merge pull request #17318 from agh1/aria-hidden-icon

Make all icons aria-hidden

4 years agoMerge pull request #17378 from agh1/cleanup-feed-urls
Seamus Lee [Fri, 22 May 2020 20:52:13 +0000 (06:52 +1000)]
Merge pull request #17378 from agh1/cleanup-feed-urls

CiviEvent Dashboard and Manage Events: clean up disused url template vars

4 years agoACL - Don't exclude deleted contacts from ACL cache when user has permission to see...
Coleman Watts [Fri, 22 May 2020 18:45:33 +0000 (14:45 -0400)]
ACL - Don't exclude deleted contacts from ACL cache when user has permission to see them

Test failures seem to be due to assumptions of the test.
Removed via Hume's guillotine

When the user has 'access deleted contacts' permission, deleted contacts
should not be excluded from the ACL cache.

4 years agoCiviEvent Dashboard and Manage Events: clean up disused url template vars
Andrew Hunt [Fri, 22 May 2020 15:15:33 +0000 (11:15 -0400)]
CiviEvent Dashboard and Manage Events: clean up disused url template vars

4 years agoAdd aria-hidden to extant icons
Andrew Hunt [Wed, 13 May 2020 18:10:44 +0000 (14:10 -0400)]
Add aria-hidden to extant icons

4 years agoAdd aria-hidden to icon helpers
Andrew Hunt [Wed, 13 May 2020 16:15:52 +0000 (12:15 -0400)]
Add aria-hidden to icon helpers

4 years agoMerge pull request #17282 from agh1/calendar-icons
Seamus Lee [Fri, 22 May 2020 06:59:10 +0000 (16:59 +1000)]
Merge pull request #17282 from agh1/calendar-icons

Replace ical and office calendar image icons

4 years agoMerge pull request #17345 from eileenmcnaughton/ev_batch
Seamus Lee [Fri, 22 May 2020 06:40:24 +0000 (16:40 +1000)]
Merge pull request #17345 from eileenmcnaughton/ev_batch

Preliminary cleanup on form

4 years agoFix pricefield pseudoconstant.
eileen [Wed, 20 May 2020 02:58:52 +0000 (14:58 +1200)]
Fix pricefield pseudoconstant.

The price field turns out not to be returning pseudoconstant fields for 2 reasons
1) the label field is defined but the name field is not
2) any price fields with no domain are filtered out. In my single domain db this is
all of them.

I think we can safely understand NULL domain_id as 'not restricted by domain'. For some tables
(membershipType) it is a required field but for PriceField it is not.

I would be inclined to say it should be required less often. However, where it is required thenn
the OR IS NULL should never be true

4 years agoMerge pull request #17376 from artfulrobot/artfulrobot-public-status-messages
Eileen McNaughton [Thu, 21 May 2020 21:13:25 +0000 (09:13 +1200)]
Merge pull request #17376 from artfulrobot/artfulrobot-public-status-messages

Public status messages should show correct class/icon like error

4 years agoMerge pull request #17373 from eileenmcnaughton/post_simp
Matthew Wire [Thu, 21 May 2020 14:20:24 +0000 (15:20 +0100)]
Merge pull request #17373 from eileenmcnaughton/post_simp

[REF] Minor code simplification

4 years agoMerge pull request #17346 from eileenmcnaughton/trans2
Matthew Wire [Thu, 21 May 2020 14:18:29 +0000 (15:18 +0100)]
Merge pull request #17346 from eileenmcnaughton/trans2

[REF] Call completeOrder directly from event status update form

4 years agoPublic status messages should show correct class/icon like error
Rich Lott / Artful Robot [Thu, 21 May 2020 13:19:55 +0000 (14:19 +0100)]
Public status messages should show correct class/icon like error

4 years agoMerge pull request #17371 from eileenmcnaughton/too
colemanw [Thu, 21 May 2020 12:10:18 +0000 (08:10 -0400)]
Merge pull request #17371 from eileenmcnaughton/too

Undo variable variable.

4 years agoMerge pull request #17370 from eileenmcnaughton/to
Seamus Lee [Thu, 21 May 2020 04:38:49 +0000 (14:38 +1000)]
Merge pull request #17370 from eileenmcnaughton/to

Use non-deprecated method

4 years agoMerge pull request #17368 from colemanw/api4suffix
Eileen McNaughton [Thu, 21 May 2020 04:26:23 +0000 (16:26 +1200)]
Merge pull request #17368 from colemanw/api4suffix

APIv4 - Improve pseudoconstant suffix support

4 years ago[REF] Minor code simiplification
eileen [Thu, 21 May 2020 03:52:48 +0000 (15:52 +1200)]
[REF] Minor code simiplification

On digging the only reason for the  array is to prevent duplicates.
The function  is passed do doesn't care how it's indexed so
just use php array to prevent duplicates. Reduce brain hurt

4 years agoUndo variable variable.
eileen [Thu, 21 May 2020 02:52:40 +0000 (14:52 +1200)]
Undo variable variable.

This removes the remainder of a weird variable-varible loop.

 No actual change

4 years agoUse non-deprecated methd
eileen [Thu, 21 May 2020 02:25:02 +0000 (14:25 +1200)]
Use non-deprecated methd

4 years agoMerge pull request #17312 from totten/url3
Eileen McNaughton [Thu, 21 May 2020 00:55:23 +0000 (12:55 +1200)]
Merge pull request #17312 from totten/url3

Migrate CiviMail "extern" scripts to conventional routes

4 years agoMerge pull request #17362 from colemanw/dev-core-1757-hide-toggle-menu-button
colemanw [Thu, 21 May 2020 00:44:19 +0000 (20:44 -0400)]
Merge pull request #17362 from colemanw/dev-core-1757-hide-toggle-menu-button

dev/core#1757 hide menu toggle when D7 toolbar is absent

4 years agoMerge pull request #17369 from civicrm/5.26
Eileen McNaughton [Wed, 20 May 2020 19:29:37 +0000 (07:29 +1200)]
Merge pull request #17369 from civicrm/5.26

5.26 to master

4 years agoMerge pull request #17352 from christianwach/lab-wp-49-civi5-26
colemanw [Wed, 20 May 2020 19:22:25 +0000 (15:22 -0400)]
Merge pull request #17352 from christianwach/lab-wp-49-civi5-26

Remove "page=CiviCRM" query string from WordPress front-end (5.26)

4 years agoAPIv4 - Improve pseudoconstant suffix support
Coleman Watts [Wed, 20 May 2020 18:55:20 +0000 (14:55 -0400)]
APIv4 - Improve pseudoconstant suffix support

Suffixes like :color now work for get actions (but not create because they are not unique idenfitiers).
Test added for rich option lists in getfields

4 years agoMerge pull request #17365 from eileenmcnaughton/pdf
Matthew Wire [Wed, 20 May 2020 17:54:03 +0000 (18:54 +0100)]
Merge pull request #17365 from eileenmcnaughton/pdf

Revert "[REF] Code readability changes on activity tokens."

4 years agoMerge pull request #17356 from eileenmcnaughton/lang
Mathieu Lu [Wed, 20 May 2020 12:38:13 +0000 (08:38 -0400)]
Merge pull request #17356 from eileenmcnaughton/lang

Fix setLanguage docblock, other nfc changes

4 years agoMerge pull request #17317 from colemanw/escJs
Mathieu Lu [Wed, 20 May 2020 12:33:01 +0000 (08:33 -0400)]
Merge pull request #17317 from colemanw/escJs

Improve js escaping in smarty {ts}

4 years agoRevert "[REF] Code readability changes on activity tokens."
eileen [Wed, 20 May 2020 03:14:03 +0000 (15:14 +1200)]
Revert "[REF] Code readability changes on activity tokens."

Per https://docs.civicrm.org/dev/en/latest/framework/token/#token-processor
The contactId is actually documented. While I've been removing those in various places in
favour of contactID or contact_id it seems Tim has been putting them in so
I think it's safer to revert this change at this stage

This reverts commit 2ebb452b239c28e7ed2c50da69d324a8d40a7e88.

4 years agodev/core#1757 - CRM Menubar - add method to remove toggle button
Coleman Watts [Tue, 19 May 2020 17:47:35 +0000 (13:47 -0400)]
dev/core#1757 - CRM Menubar - add method to remove toggle button

4 years agoMerge pull request #17355 from twomice/1608_recurring_membership_fails_paypal
Seamus Lee [Tue, 19 May 2020 21:25:43 +0000 (07:25 +1000)]
Merge pull request #17355 from twomice/1608_recurring_membership_fails_paypal

Fix for dev/core#1608: correct date format for trxn_date.

4 years agoMerge pull request #17332 from colemanw/api4Joins
Eileen McNaughton [Tue, 19 May 2020 21:21:14 +0000 (09:21 +1200)]
Merge pull request #17332 from colemanw/api4Joins

APIv4 - Remove implicit multi joins & add explicit joins

4 years agodev/core#1757 - CRM Menubar - hide toggle menu button for non admin users
René Olivo [Tue, 19 May 2020 02:32:34 +0000 (03:32 +0100)]
dev/core#1757 - CRM Menubar - hide toggle menu button for non admin users

4 years agoImprove js escaping in smarty {ts}
Coleman Watts [Wed, 13 May 2020 16:49:01 +0000 (12:49 -0400)]
Improve js escaping in smarty {ts}

4 years agoRemove "page=CiviCRM" query string from WordPress front-end
Christian Wach [Tue, 19 May 2020 10:39:22 +0000 (11:39 +0100)]
Remove "page=CiviCRM" query string from WordPress front-end

4 years agoMerge pull request #17357 from seamuslee001/contrib_page_report_column
Eileen McNaughton [Tue, 19 May 2020 08:54:05 +0000 (20:54 +1200)]
Merge pull request #17357 from seamuslee001/contrib_page_report_column

[REF] [Reports] Ensure that all contribution pages including disabled ones are return…

4 years agoMerge pull request #17354 from seamuslee001/mysql8_master
Eileen McNaughton [Tue, 19 May 2020 08:51:27 +0000 (20:51 +1200)]
Merge pull request #17354 from seamuslee001/mysql8_master

[TEST] Update test to support for 8.0.19 change

4 years agoUpdate test to support for 8.0.19 change
Seamus Lee [Mon, 11 May 2020 03:11:49 +0000 (13:11 +1000)]
Update test to support for 8.0.19 change

Update test following Eileen comments

4 years ago[TEST] Fix test failure on Drupal 8 E2E PrevNextTest by only including contacts where...
Seamus Lee [Tue, 19 May 2020 01:56:33 +0000 (11:56 +1000)]
[TEST] Fix test failure on Drupal 8 E2E PrevNextTest by only including contacts where there is a sort name

4 years agoEnsure that all contribution pages including disabled ones are returned when viewing...
Seamus Lee [Tue, 19 May 2020 01:56:27 +0000 (11:56 +1000)]
Ensure that all contribution pages including disabled ones are returned when viewing the contribution detailed report

4 years agoFix setLanguage docblock, other nfc changes
eileen [Tue, 19 May 2020 00:58:50 +0000 (12:58 +1200)]
Fix setLanguage docblock, other nfc changes

The IDE can pick up the chaining if we tell it the object is being returned

4 years agoToward fix for dev/core#1608: correct date format for trxn_date.
Allen Shaw [Mon, 18 May 2020 22:53:32 +0000 (17:53 -0500)]
Toward fix for dev/core#1608: correct date format for trxn_date.

4 years agoMerge pull request #17330 from colemanw/dao_field
Eileen McNaughton [Mon, 18 May 2020 22:09:05 +0000 (10:09 +1200)]
Merge pull request #17330 from colemanw/dao_field

[REF] Cleanup and extract string functions specific to entity names.

4 years agoPreliminary cleanup on form
eileen [Mon, 18 May 2020 05:07:41 +0000 (17:07 +1200)]
Preliminary cleanup on form

4 years agoMerge pull request #17304 from colemanw/endCode
Eileen McNaughton [Mon, 18 May 2020 19:51:08 +0000 (07:51 +1200)]
Merge pull request #17304 from colemanw/endCode

Switch docblock code to use markdown syntax.

4 years agoMerge pull request #17349 from eileenmcnaughton/validate
colemanw [Mon, 18 May 2020 14:01:37 +0000 (10:01 -0400)]
Merge pull request #17349 from eileenmcnaughton/validate

[REF] Stop passing  by reference.

4 years agoMerge pull request #17347 from eileenmcnaughton/status
Seamus Lee [Mon, 18 May 2020 08:31:42 +0000 (18:31 +1000)]
Merge pull request #17347 from eileenmcnaughton/status

Call completeOrder directly from contribute status update form

4 years agoMerge pull request #17343 from eileenmcnaughton/js_curr
Seamus Lee [Mon, 18 May 2020 07:37:43 +0000 (17:37 +1000)]
Merge pull request #17343 from eileenmcnaughton/js_curr

Use status bounces, not fatal, in front end contribution form base class

4 years ago[REF] Stop passing by reference.
eileen [Mon, 18 May 2020 06:56:39 +0000 (18:56 +1200)]
[REF] Stop passing  by reference.

By checking in BAOContribution::loadRelatedObjects we can see it is not modified. The other 2 functions
only pass input to that function, so can also be non-variables

4 years agoRemove instantiation of transaction from payment express ipn class
eileen [Mon, 18 May 2020 06:12:03 +0000 (18:12 +1200)]
Remove instantiation of transaction from payment express ipn class

This class is hopefully used, however, this change should be safe regardless as it just calls the same function
without needlessly instantiating the parent.

Note this processor is not enabled on install or recommended

4 years agoCall completeOrder directly from event status update form
eileen [Mon, 18 May 2020 06:07:42 +0000 (18:07 +1200)]
Call completeOrder directly from event status update form

We should really call completetransaction but that has been left for later unravelling with the focus here being
to clarify the purpose of the transaction. We don't need to pass a transaction around unless it has DB changes not
yet committed - which is not eally the case here. There is no reason to invoke BaseIPN but more unravelling required...

4 years agoCall completeOrder directly from contribute status update form
eileen [Mon, 18 May 2020 06:04:31 +0000 (18:04 +1200)]
Call completeOrder directly from contribute status update form

We should really call completetransaction but that has been left for later unravelling with the focus here being
to clarify the purpose of the transaction. We don't need to pass a transaction around unless it has DB changes not
yet committed - which is not eally the case here. There is no reason to invoke BaseIPN but more unravelling required...

4 years agoMerge pull request #17341 from seamuslee001/fatal_exception_status_bounce
Eileen McNaughton [Mon, 18 May 2020 05:01:22 +0000 (17:01 +1200)]
Merge pull request #17341 from seamuslee001/fatal_exception_status_bounce

dev/core#560 Replace deprecated CRM_Core_Error::fatal with either sta…

4 years agoUse status bounces, not fatal, in front end contribution form base class
eileen [Mon, 18 May 2020 04:44:50 +0000 (16:44 +1200)]
Use status bounces, not fatal, in front end contribution form base class

4 years agoMerge pull request #17342 from eileenmcnaughton/event
Eileen McNaughton [Mon, 18 May 2020 02:45:40 +0000 (14:45 +1200)]
Merge pull request #17342 from eileenmcnaughton/event

Remove code that still seems unnecessary.

4 years agoMerge pull request #17338 from demeritcowboy/test-from-to
colemanw [Mon, 18 May 2020 00:46:18 +0000 (20:46 -0400)]
Merge pull request #17338 from demeritcowboy/test-from-to

[TEST] dev/core#1766 - Remove flakiness from testGetFromTo tests

4 years agoRemove code that still seems unnecessary.
eileen [Mon, 18 May 2020 00:24:48 +0000 (12:24 +1200)]
Remove code that still seems unnecessary.

Per the code comment we should not need to unset these fields as they should not be present if not required.

I guess the test for this is whether the fields are unset if we start off with a payment processor & then deselect
it in favour of pay later

4 years agoMerge pull request #17340 from demeritcowboy/not-yet-deprecated
Eileen McNaughton [Sun, 17 May 2020 23:58:00 +0000 (11:58 +1200)]
Merge pull request #17340 from demeritcowboy/not-yet-deprecated

[NFC] Add comment that deprecated code is actually still reachable

4 years agodev/core#560 Replace depreacted CRM_Core_Error::fatal with either statusBounce or...
Seamus Lee [Sun, 17 May 2020 23:48:55 +0000 (09:48 +1000)]
dev/core#560 Replace depreacted CRM_Core_Error::fatal with either statusBounce or Exceptions as appropriate in CRM/Core folder update langauge as per demeritcowboy