civicrm-core.git
3 years agoFix trigger rebuild to avoid deprecated function
Eileen McNaughton [Tue, 1 Jun 2021 05:43:44 +0000 (17:43 +1200)]
Fix trigger rebuild to avoid deprecated function

[Ref] Remove function parameter only used from test

The test passes a function parameter to rebuild triggers but the only other
call to this function in the civi-verse doesn't. We shouldn't make this function
more complex for just the test.

Note the function also uses the force param which I didn't move to the
test call - it's possible when the tests all run together I'll need
to force cache clearing but this seems like a dumb way

3 years agoMerge pull request #20456 from eileenmcnaughton/group2
Eileen McNaughton [Tue, 1 Jun 2021 03:30:56 +0000 (15:30 +1200)]
Merge pull request #20456 from eileenmcnaughton/group2

[Ref] remove never-passed param

3 years agoMerge pull request #20455 from eileenmcnaughton/group
Eileen McNaughton [Tue, 1 Jun 2021 01:25:17 +0000 (13:25 +1200)]
Merge pull request #20455 from eileenmcnaughton/group

Make functions protected

3 years ago[Ref] remove never-passed param
Eileen McNaughton [Mon, 31 May 2021 23:50:42 +0000 (11:50 +1200)]
[Ref] remove never-passed param

Removes a parameter that is never passed in

3 years agoMerge pull request #20448 from eileenmcnaughton/report
colemanw [Tue, 1 Jun 2021 00:30:51 +0000 (20:30 -0400)]
Merge pull request #20448 from eileenmcnaughton/report

Mark test class as having invalid financials

3 years agoMake functions protected
Eileen McNaughton [Mon, 31 May 2021 23:38:22 +0000 (11:38 +1200)]
Make functions protected

I did a universe search & determined these functions could be protected
as they are not called from outside this class

3 years agoMerge pull request #20454 from colemanw/organizeOnClause
Eileen McNaughton [Mon, 31 May 2021 23:20:49 +0000 (11:20 +1200)]
Merge pull request #20454 from colemanw/organizeOnClause

SearchKit - Organize ON clause field selectors with joined entity first

3 years agoMerge pull request #20427 from totten/master-scanner
Eileen McNaughton [Mon, 31 May 2021 21:13:53 +0000 (09:13 +1200)]
Merge pull request #20427 from totten/master-scanner

BAOs, Tests, etal - Support `HookInterface` and `EventSubscriberInterface` for auto-registration

3 years agoMerge pull request #20431 from colemanw/garlandTabFix
Eileen McNaughton [Mon, 31 May 2021 21:08:20 +0000 (09:08 +1200)]
Merge pull request #20431 from colemanw/garlandTabFix

AfformGui - Fix tabs when cms theme adds extra margin

3 years agoMerge pull request #20440 from colemanw/apiCalculatedField
Eileen McNaughton [Mon, 31 May 2021 21:06:29 +0000 (09:06 +1200)]
Merge pull request #20440 from colemanw/apiCalculatedField

[REF] APIv4 refactoring to support calculated fields

3 years agoSearchKit - Organize ON clause field selectors with joined entity first
Coleman Watts [Mon, 31 May 2021 19:20:24 +0000 (15:20 -0400)]
SearchKit - Organize ON clause field selectors with joined entity first

3 years agoMerge pull request #20434 from colemanw/groupContact
colemanw [Mon, 31 May 2021 18:24:26 +0000 (14:24 -0400)]
Merge pull request #20434 from colemanw/groupContact

SearchKit - Add static groups and organize main entity selector

3 years agoAPIv4 - Ensure getFields always returns table_name and column_name
Coleman Watts [Mon, 31 May 2021 15:53:56 +0000 (11:53 -0400)]
APIv4 - Ensure getFields always returns table_name and column_name

3 years agoMerge pull request #20447 from magnolia61/missing_image_fatal_error
demeritcowboy [Mon, 31 May 2021 15:39:18 +0000 (11:39 -0400)]
Merge pull request #20447 from magnolia61/missing_image_fatal_error

dev/core#2369 - Change missing image fatal error to 404

3 years agochange missing image fatal error to 404
magnolia61 [Mon, 31 May 2021 13:16:54 +0000 (15:16 +0200)]
change missing image fatal error to 404

3 years agoEventPrinter - More aggressive type-hinting
Tim Otten [Mon, 31 May 2021 07:56:03 +0000 (00:56 -0700)]
EventPrinter - More aggressive type-hinting

3 years agoFor Symfony-style event listeners, encourage use of `void` return
Tim Otten [Mon, 31 May 2021 07:32:53 +0000 (00:32 -0700)]
For Symfony-style event listeners, encourage use of `void` return

When using Symfony-style listeners, all inputs and outputs for the event go
through the event object.

Note that `hook_*()` notation does allow return values, For these functions,
it is *normal* to return void, but some existing hooks rely on returning
array-data.  It could be misleading if we made it appear that all `hook_*()`
examples have to return void.

3 years agoHookStyleListener - Convey hook results. Refine type-hints.
Tim Otten [Mon, 31 May 2021 07:27:04 +0000 (00:27 -0700)]
HookStyleListener - Convey hook results. Refine type-hints.

Note: This is uncommon and discouraged for new hooks, but some hooks require returning values, e.g

```php
function hook_foo() {
  return ['my-data'];
}
```

This should fix compatibility with those.

3 years agoEventScanner - More aggressive type-hinting
Tim Otten [Mon, 31 May 2021 07:22:06 +0000 (00:22 -0700)]
EventScanner - More aggressive type-hinting

3 years agoMerge pull request #20395 from eileenmcnaughton/entry2
Monish Deb [Mon, 31 May 2021 06:19:24 +0000 (11:49 +0530)]
Merge pull request #20395 from eileenmcnaughton/entry2

[REF] Set receipt_date after sending, (from batch) not in anticipation

3 years agoMerge pull request #20424 from eileenmcnaughton/ppp3
Seamus Lee [Sun, 30 May 2021 21:57:09 +0000 (07:57 +1000)]
Merge pull request #20424 from eileenmcnaughton/ppp3

dev/core#2593 Fix failure to complete contributions when membership deleted

3 years agoMerge pull request #20449 from seamuslee001/phpword_upgrade
Eileen McNaughton [Sun, 30 May 2021 21:49:03 +0000 (09:49 +1200)]
Merge pull request #20449 from seamuslee001/phpword_upgrade

[php8-compat] Upgrade PHPWord Package to support php8

3 years ago[WIP][php8-compat] Upgrade PHPWord Package to support php8
Seamus Lee [Sun, 30 May 2021 05:51:50 +0000 (15:51 +1000)]
[WIP][php8-compat] Upgrade PHPWord Package to support php8

3 years agoMark test class as having invalid financials
Eileen McNaughton [Sun, 30 May 2021 03:02:17 +0000 (15:02 +1200)]
Mark test class as having invalid financials

Marks the class as unsuitable for financial validation due to use
of mysql to set up contributions without related entities

3 years agoAPIv4 - Refactor field options getter into a swappable callback function
Coleman Watts [Sat, 29 May 2021 00:31:12 +0000 (20:31 -0400)]
APIv4 - Refactor field options getter into a swappable callback function

This allows any fieldSpec provider to change the callback used to build field options,
or to add an ad-hoc field not in the schema with its own option getter.

3 years agoMerge pull request #20446 from eileenmcnaughton/order
demeritcowboy [Sat, 29 May 2021 22:16:31 +0000 (18:16 -0400)]
Merge pull request #20446 from eileenmcnaughton/order

[NFC] Superficial code cleanup

3 years agoMerge pull request #20376 from MegaphoneJon/financial-173
Eileen McNaughton [Sat, 29 May 2021 20:33:40 +0000 (08:33 +1200)]
Merge pull request #20376 from MegaphoneJon/financial-173

financial#173: Show 'Pay Now' on user dashboard for partially paid contributions

3 years agoMerge pull request #20442 from seamuslee001/fix_required_param_after_optional
Eileen McNaughton [Sat, 29 May 2021 20:33:02 +0000 (08:33 +1200)]
Merge pull request #20442 from seamuslee001/fix_required_param_after_optional

[php8-compat] [REF] Fix a couple of functions triggering deprecation notices in php…

3 years agoMerge pull request #20445 from seamuslee001/fix_warning_notice_code_gen
Eileen McNaughton [Sat, 29 May 2021 20:32:27 +0000 (08:32 +1200)]
Merge pull request #20445 from seamuslee001/fix_warning_notice_code_gen

[php8-compat] Fix Warning Notices when running schema generation

3 years agoMerge pull request #20444 from seamuslee001/upgrade_symfony
Eileen McNaughton [Sat, 29 May 2021 20:24:13 +0000 (08:24 +1200)]
Merge pull request #20444 from seamuslee001/upgrade_symfony

[php8-compat] Update Various Symfony components to latest version in …

3 years agoMerge pull request #20189 from lemniscus/oauth-client
demeritcowboy [Sat, 29 May 2021 11:40:25 +0000 (07:40 -0400)]
Merge pull request #20189 from lemniscus/oauth-client

OAuth: initial support for per-contact OAuth tokens

3 years ago[NFC] Superficial code cleanup
Eileen McNaughton [Sat, 29 May 2021 07:12:23 +0000 (19:12 +1200)]
[NFC] Superficial code cleanup

3 years agoMerge pull request #20439 from eileenmcnaughton/proftest
Seamus Lee [Sat, 29 May 2021 07:03:38 +0000 (17:03 +1000)]
Merge pull request #20439 from eileenmcnaughton/proftest

Fix profile test teardown

3 years agoMerge pull request #20443 from seamuslee001/fix_error_php8
Seamus Lee [Sat, 29 May 2021 04:46:16 +0000 (14:46 +1000)]
Merge pull request #20443 from seamuslee001/fix_error_php8

[php8-compat] Fix calling method_exist with paremeter that is bool not an object in…

3 years ago[php8-compat] Fix Warning Notices when running schema generation
Seamus Lee [Sat, 29 May 2021 04:43:32 +0000 (04:43 +0000)]
[php8-compat] Fix Warning Notices when running schema generation

3 years agoMerge pull request #20441 from seamuslee001/fix_createrandom
Seamus Lee [Sat, 29 May 2021 04:16:51 +0000 (14:16 +1000)]
Merge pull request #20441 from seamuslee001/fix_createrandom

[php8-compat] [REF] Fix call to function CRM_Utils_String::createRandom by ensuring that …

3 years ago[REF] Fix a couple of functions triggering deprecation notices in php8.0 where by...
Seamus Lee [Sat, 29 May 2021 02:26:59 +0000 (02:26 +0000)]
[REF] Fix a couple of functions triggering deprecation notices in php8.0 where by an optional parameter is before required parameters in the function signature

3 years ago[php8-compat] Update Various Symfony components to latest version in the 3.4.x series...
Seamus Lee [Sat, 29 May 2021 02:50:47 +0000 (02:50 +0000)]
[php8-compat] Update Various Symfony components to latest version in the 3.4.x series to fix deprecation notice around libxml entity disable

3 years agoFix calling method_exist with paremeter that is bool not an object in php8
Seamus Lee [Sat, 29 May 2021 02:28:46 +0000 (02:28 +0000)]
Fix calling method_exist with paremeter that is bool not an object in php8

3 years agoFix call to function CRM_Utils_String::createRandom by ensuring that the length is...
Seamus Lee [Sat, 29 May 2021 02:26:53 +0000 (02:26 +0000)]
Fix call to function CRM_Utils_String::createRandom by ensuring that the length is the first parameter not 2nd

3 years agoFix profile test teardown
Eileen McNaughton [Sat, 29 May 2021 00:04:06 +0000 (12:04 +1200)]
Fix profile test teardown

This should make https://github.com/civicrm/civicrm-core/pull/20420 pass
for this class

3 years agoadd support for OAuthContactTokens, with tests, upgrade step, new permissions
Noah Miller [Tue, 27 Apr 2021 07:08:04 +0000 (00:08 -0700)]
add support for OAuthContactTokens, with tests, upgrade step, new permissions

Per discussion with @totten, re the logic that interprets "tag" and links/creates contacts accordingly: in earlier versions of this code, I had put that logic in OAuthTokenFacade. Moving it to the api4 "create" action means it will happen even when a ContactToken is created outside the OAuth flow. I decided not to put it in BAO writeRecords() because then it would run too late for the permissions checking we do in the api4 Create action.

Note: the permissions change here means that some current users of the OAuth Extension will need to enable an additional permission to allow for the acquisition of new tokens through the auth-code flow.

3 years agoSearchKit - Organize main entity selector with primary entities first
Coleman Watts [Fri, 28 May 2021 00:26:30 +0000 (20:26 -0400)]
SearchKit - Organize main entity selector with primary entities first

Adds a collapsed optgroup for secondary entities so they are available
but not as prominent as the commonly-searched primary entities.

3 years agoSelect2 - Move collapsible feature from Api4Explorer to Common.js for reusability...
Coleman Watts [Thu, 27 May 2021 21:51:18 +0000 (17:51 -0400)]
Select2 - Move collapsible feature from Api4Explorer to Common.js for reusability in SearchKit

3 years agoSearchKit - Change @searchable annotation from boolean to option list
Coleman Watts [Thu, 27 May 2021 20:01:25 +0000 (16:01 -0400)]
SearchKit - Change @searchable annotation from boolean to option list

In preparation for showing different tiers of entities, make this a string
instead of a boolean property, to mark searchability as 'primary', 'secondary', or 'none'.

3 years agoSearchKit - Improve descriptions for Relationship & GroupContact joins
Coleman Watts [Thu, 27 May 2021 18:17:52 +0000 (14:17 -0400)]
SearchKit - Improve descriptions for Relationship & GroupContact joins

This changes the 'bridge' metadata property to a multi-dimensional array
to hold extra info like description.

3 years agoMerge pull request #20435 from eileenmcnaughton/gg
colemanw [Fri, 28 May 2021 11:16:20 +0000 (07:16 -0400)]
Merge pull request #20435 from eileenmcnaughton/gg

[REF] Extract code to transfer groups from temp table to cache

3 years agoMerge pull request #20436 from eileenmcnaughton/mem_test_fix
Seamus Lee [Fri, 28 May 2021 04:04:20 +0000 (14:04 +1000)]
Merge pull request #20436 from eileenmcnaughton/mem_test_fix

Fix separate payment membership test to create valid financial transa…

3 years agoFix separate payment membership test to create valid financial transations
Eileen McNaughton [Wed, 26 May 2021 21:50:37 +0000 (09:50 +1200)]
Fix separate payment membership test to create valid financial transations

The issue is inconsistency on the test side, not the core code

3 years ago[REF] Extract code to transfer groups from temp table to cache
Eileen McNaughton [Fri, 28 May 2021 01:58:27 +0000 (13:58 +1200)]
[REF] Extract code to transfer groups from temp table to cache

This continues efforts to have the 'worker functions' accept an
array of groups, not just a single

3 years agoMerge pull request #20403 from colemanw/contactEmailUpdate
Eileen McNaughton [Thu, 27 May 2021 22:09:37 +0000 (10:09 +1200)]
Merge pull request #20403 from colemanw/contactEmailUpdate

Ensure contacts without a name are updated when primary email changes

3 years agoShow 'Pay Now' on user dashboard for partially paid contributions
Jon Goldberg [Fri, 21 May 2021 15:10:47 +0000 (11:10 -0400)]
Show 'Pay Now' on user dashboard for partially paid contributions

3 years agoSearchKit - Fix GroupContact so static groups are searchable
Coleman Watts [Thu, 27 May 2021 17:19:33 +0000 (13:19 -0400)]
SearchKit - Fix GroupContact so static groups are searchable

3 years agoAfformGui - Fix tabs when cms theme adds extra margin
Coleman Watts [Thu, 27 May 2021 12:06:54 +0000 (08:06 -0400)]
AfformGui - Fix tabs when cms theme adds extra margin

Themes like Drupal's 'Garland' add extra margin to `li` elements which
interferes with the tab spacing in the Afform GUI.

3 years agoMerge pull request #20416 from colemanw/afformTabFix
Seamus Lee [Thu, 27 May 2021 08:45:33 +0000 (18:45 +1000)]
Merge pull request #20416 from colemanw/afformTabFix

Afform GUI - Fix tab breakage in Shoreditch theme

3 years agoMerge pull request #20385 from eileenmcnaughton/gc3
Tim Otten [Thu, 27 May 2021 07:44:33 +0000 (00:44 -0700)]
Merge pull request #20385 from eileenmcnaughton/gc3

Fix internal group contact cache functions to be protected

3 years agoMerge pull request #20421 from eileenmcnaughton/ev_confirm
Tim Otten [Thu, 27 May 2021 07:13:55 +0000 (00:13 -0700)]
Merge pull request #20421 from eileenmcnaughton/ev_confirm

[REF] minor extraction - getInfoUrl

3 years agoMerge pull request #20419 from colemanw/angularMain
Seamus Lee [Thu, 27 May 2021 04:46:11 +0000 (14:46 +1000)]
Merge pull request #20419 from colemanw/angularMain

Use new `crm-angular-js` instead of `ng-app` to bootstrap AngularJS

3 years agoMerge pull request #20430 from seamuslee001/master
Seamus Lee [Thu, 27 May 2021 01:15:43 +0000 (11:15 +1000)]
Merge pull request #20430 from seamuslee001/master

5.38

3 years agoMerge in 5.38
Seamus Lee [Thu, 27 May 2021 01:13:22 +0000 (11:13 +1000)]
Merge in 5.38

3 years agoMerge pull request #20428 from seamuslee001/ckeditor_upgrade
colemanw [Thu, 27 May 2021 01:06:54 +0000 (21:06 -0400)]
Merge pull request #20428 from seamuslee001/ckeditor_upgrade

[REF] Upgrade CKEditor to be 4.16.1

3 years agoAngularLoader - cleanup resource loading to use new service
Coleman Watts [Tue, 25 May 2021 19:04:15 +0000 (15:04 -0400)]
AngularLoader - cleanup resource loading to use new service

Use new `crm-angular-js` instead of `ng-app` to bootstrap AngularJS
Emit a deprecated warning from the old load() function to alert extension maintainers of the change.

3 years ago(REF) CRM_Api4_Services - Switch to EventScanner
Tim Otten [Wed, 26 May 2021 23:05:15 +0000 (16:05 -0700)]
(REF) CRM_Api4_Services - Switch to EventScanner

3 years ago(REF) RecurringEntity BAO - Switch EventSubscriberInterface
Tim Otten [Wed, 26 May 2021 20:53:54 +0000 (13:53 -0700)]
(REF) RecurringEntity BAO - Switch EventSubscriberInterface

This is just an example of doing declarative event-registration from a BAO.

3 years ago(REF) RelationshipCache BAO - Switch to HookInterface
Tim Otten [Wed, 26 May 2021 07:40:22 +0000 (00:40 -0700)]
(REF) RelationshipCache BAO - Switch to HookInterface

This is just an example of doing declarative event-registration from a BAO.

3 years agoBAOs - Allow BAOs to subscribe to hooks/events via `EventSubscriberInterface` or...
Tim Otten [Fri, 21 May 2021 18:51:32 +0000 (11:51 -0700)]
BAOs - Allow BAOs to subscribe to hooks/events via `EventSubscriberInterface` or `HookInterface`

Before: There is no pleasant way for a BAO to register a listener for an
event.  True, one can use `Civi::dispatch()`, but (lacking a good
initialization point) it's hard to register reliably.  True, you can also
add new items to `\Civi\Core\Container::createEventDispatcher()`, but
this is rather out-of-the-way.

After: A BAO class may optionally implement `EventDispatcherInterface` or
`HookInterface`. Methods will be automatically registered. The list
of listeners will be cached in the container.

3 years agoCiviTestListener - Move scanning responsibility from 'CiviTestListener' to 'EventScanner'
Tim Otten [Fri, 21 May 2021 02:47:29 +0000 (19:47 -0700)]
CiviTestListener - Move scanning responsibility from 'CiviTestListener' to 'EventScanner'

The removes duplicate code and expands the functionality to support methods
of the form `_on_{$symfony_event}()`.

3 years agoCiviTestListener - Provide a variable to identify the active test
Tim Otten [Thu, 20 May 2021 23:41:59 +0000 (16:41 -0700)]
CiviTestListener - Provide a variable to identify the active test

3 years agoEventScanner - Add utility class which can auto-identify listeners in an object
Tim Otten [Wed, 26 May 2021 04:40:15 +0000 (21:40 -0700)]
EventScanner - Add utility class which can auto-identify listeners in an object

```
$map = EventScanner::findListeners($someObject);
$dispatcher->addListenerMap($someObject, $map);
```

3 years agoTesting - Add more examples of tests which register listeners
Tim Otten [Wed, 26 May 2021 04:27:54 +0000 (21:27 -0700)]
Testing - Add more examples of tests which register listeners

3 years agoMerge pull request #20102 from seamuslee001/d8_mailing_urls
Eileen McNaughton [Wed, 26 May 2021 21:33:27 +0000 (09:33 +1200)]
Merge pull request #20102 from seamuslee001/d8_mailing_urls

[REF] Fix issue where by mailing urls were always stuck in the origin…

3 years agodev/core#2593 Fix failure to complete contributions when membership deleted
Eileen McNaughton [Tue, 25 May 2021 22:06:18 +0000 (10:06 +1200)]
dev/core#2593 Fix failure to complete contributions when membership deleted

Final cleanup on paypal pro fixes https://lab.civicrm.org/dev/core/-/issues/2593

3 years ago[REF] Upgrade CKEditor to be 4.16.1
Seamus Lee [Wed, 26 May 2021 20:45:04 +0000 (06:45 +1000)]
[REF] Upgrade CKEditor to be 4.16.1

3 years agoMerge pull request #20129 from larssandergreen/apply-mailing-tracking-only-to-a-urls
Eileen McNaughton [Wed, 26 May 2021 08:20:15 +0000 (20:20 +1200)]
Merge pull request #20129 from larssandergreen/apply-mailing-tracking-only-to-a-urls

dev/mailing#95 Only track <a> urls in Flexmailer for HTML emails

3 years agoMerge pull request #20415 from eileenmcnaughton/tax_test
Seamus Lee [Wed, 26 May 2021 04:14:59 +0000 (14:14 +1000)]
Merge pull request #20415 from eileenmcnaughton/tax_test

Test - fix contributionTest to validate contributions

3 years agoMerge pull request #20422 from eileenmcnaughton/ppp
Seamus Lee [Wed, 26 May 2021 04:13:27 +0000 (14:13 +1000)]
Merge pull request #20422 from eileenmcnaughton/ppp

dev/core#2593 Fully remove loadRelatedObjects from PaypalExpress

3 years agoMerge pull request #20426 from eileenmcnaughton/tolerate_tax
Seamus Lee [Wed, 26 May 2021 02:53:23 +0000 (12:53 +1000)]
Merge pull request #20426 from eileenmcnaughton/tolerate_tax

Test fixes

3 years agoTest fixes
Eileen McNaughton [Wed, 26 May 2021 00:35:30 +0000 (12:35 +1200)]
Test fixes

This improves cleanup in one class & in another makes it accept tax_amount = 0
rather than requiring it to be NULL. In general it's better for us to return
and save 0 so this makes the test tolerate those changes

3 years agoMerge pull request #20423 from eileenmcnaughton/ppp1
Seamus Lee [Tue, 25 May 2021 23:49:39 +0000 (09:49 +1000)]
Merge pull request #20423 from eileenmcnaughton/ppp1

[REF] Paypal pro - remove call to load contact record

3 years ago[REF] Paypal pro - remove call to load contact record
Eileen McNaughton [Tue, 25 May 2021 21:57:34 +0000 (09:57 +1200)]
[REF] Paypal pro - remove call to load contact record

This removes a look up since we are going to use the contribution contact id & all we are doing
is logging warning if it has changed

3 years agodev/core#2593 Fully remove loadRelatedObjects from PaypalExpress
Eileen McNaughton [Tue, 25 May 2021 21:43:58 +0000 (09:43 +1200)]
dev/core#2593 Fully remove loadRelatedObjects from PaypalExpress

3 years agoMerge pull request #20412 from eileenmcnaughton/ppp
Seamus Lee [Tue, 25 May 2021 21:37:18 +0000 (07:37 +1000)]
Merge pull request #20412 from eileenmcnaughton/ppp

[REF] Stop passing unneed params to the recur function

3 years ago[REF] minor extraction - getInfoUrl
Eileen McNaughton [Tue, 25 May 2021 20:43:04 +0000 (08:43 +1200)]
[REF] minor extraction - getInfoUrl

3 years agoMerge pull request #20417 from mattwire/payjunctionsetparam
Eileen McNaughton [Tue, 25 May 2021 19:38:43 +0000 (07:38 +1200)]
Merge pull request #20417 from mattwire/payjunctionsetparam

Remove unused functions from payJunction

3 years agoMerge pull request #20418 from mattwire/dummynoparams
Eileen McNaughton [Tue, 25 May 2021 19:37:55 +0000 (07:37 +1200)]
Merge pull request #20418 from mattwire/dummynoparams

Remove unused variable on dummy processor

3 years agoMerge pull request #20306 from aydun/api_case_defaults
Eileen McNaughton [Tue, 25 May 2021 19:31:42 +0000 (07:31 +1200)]
Merge pull request #20306 from aydun/api_case_defaults

Add defaults for APIv4 Case create

3 years agoRemove unused variable on dummy processor
Matthew Wire [Tue, 25 May 2021 15:21:55 +0000 (16:21 +0100)]
Remove unused variable on dummy processor

3 years agoRemove unused functions from payJunction
Matthew Wire [Tue, 25 May 2021 15:17:38 +0000 (16:17 +0100)]
Remove unused functions from payJunction

3 years agoAfform GUI - Fix tab breakage in Shoreditch theme
Coleman Watts [Tue, 25 May 2021 14:05:16 +0000 (10:05 -0400)]
Afform GUI - Fix tab breakage in Shoreditch theme

3 years agoAPIv4 - Fix Case conformance test
Coleman Watts [Tue, 25 May 2021 12:09:49 +0000 (08:09 -0400)]
APIv4 - Fix Case conformance test

Now that creator_id has a default value it can also be marked as required.
Updating TestCreationParameterProvider to supply a FK before the default value
fixes the problem with user_contact_id in a test with no logged-in user.

3 years agoEnsure contacts without a name are updated when primary email changes
Coleman Watts [Mon, 24 May 2021 20:47:18 +0000 (16:47 -0400)]
Ensure contacts without a name are updated when primary email changes

Contacts with no name use their primary email as display_name and sort_name.
This ensures that when their primary email is updated, display_name and sort_name
will be updated as well.
Adds tests for APIv3, APIv4 & Afform.
Fixes dev/core#2622

3 years agoMerge pull request #20401 from vingle/master
colemanw [Tue, 25 May 2021 10:57:04 +0000 (06:57 -0400)]
Merge pull request #20401 from vingle/master

Revised fix for menu/UI issues for Joomla 4.0

3 years agoTest - fix contributionTest to validate contributions
Eileen McNaughton [Tue, 25 May 2021 09:52:53 +0000 (21:52 +1200)]
Test - fix contributionTest to validate contributions

Still skipping tests that need more work to avoid malformed
financial entities

3 years agoMerge pull request #20414 from MikeyMJCO/patch-7
Eileen McNaughton [Tue, 25 May 2021 10:14:41 +0000 (22:14 +1200)]
Merge pull request #20414 from MikeyMJCO/patch-7

Describe logic behind placement of `invalidateRouteCache`

3 years agoDescribe logic behind placement of `invalidateRouteCache`
Mikey O'Toole [Tue, 25 May 2021 08:32:33 +0000 (09:32 +0100)]
Describe logic behind placement of `invalidateRouteCache`

3 years ago[REF] Stop passing unneed params to the recur function
Eileen McNaughton [Tue, 25 May 2021 06:37:19 +0000 (18:37 +1200)]
[REF] Stop passing unneed params to the recur function

3 years agoMerge pull request #20411 from eileenmcnaughton/ppp2
Eileen McNaughton [Tue, 25 May 2021 06:33:18 +0000 (18:33 +1200)]
Merge pull request #20411 from eileenmcnaughton/ppp2

[REF] replace isFirst parameter

3 years agoMerge pull request #20410 from eileenmcnaughton/ppp
Eileen McNaughton [Tue, 25 May 2021 06:33:02 +0000 (18:33 +1200)]
Merge pull request #20410 from eileenmcnaughton/ppp

[REF] Remove now-unused params

3 years ago[REF] replace isFirst parameter
Eileen McNaughton [Tue, 25 May 2021 04:42:45 +0000 (16:42 +1200)]
[REF] replace isFirst parameter

Here we see that the 2 paths to 'recur' were calculating isFirst slightly differently.

In one case (the dominant one) we were looking to see if it was completed whereas
in the lesser path (paypal express) we were looking to see if it was not pending.

That leaves
'cancelled' & 'failed' in a limbo. I think logically we can't complete either of those
so the dominant definition is better

3 years ago[REF] Remove now-unused params
Eileen McNaughton [Tue, 25 May 2021 04:32:22 +0000 (16:32 +1200)]
[REF] Remove now-unused params