civicrm-core.git
3 years agoMerge pull request #19915 from eileenmcnaughton/mem_end
Monish Deb [Fri, 26 Mar 2021 12:32:06 +0000 (18:02 +0530)]
Merge pull request #19915 from eileenmcnaughton/mem_end

[REF] [Towards membership api] Simplify message functions

3 years agoMerge pull request #19906 from MikeyMJCO/patch-8
Eileen McNaughton [Fri, 26 Mar 2021 09:21:09 +0000 (22:21 +1300)]
Merge pull request #19906 from MikeyMJCO/patch-8

Rebuild the Drupal route cache.

3 years ago[REF] [Towards membership api] Simplify message functions
eileen [Fri, 26 Mar 2021 06:38:23 +0000 (19:38 +1300)]
[REF] [Towards membership api] Simplify message functions

The amount of code confusion to avoid loading the end_date isn't really warranted for the
performance boost....

3 years agoMerge pull request #19910 from eileenmcnaughton/mem_pay
Monish Deb [Fri, 26 Mar 2021 05:38:58 +0000 (11:08 +0530)]
Merge pull request #19910 from eileenmcnaughton/mem_pay

[REF] [Towards membership api] Cleanup access to payment_processor_id

3 years agoMerge pull request #19905 from eileenmcnaughton/tear
Eileen McNaughton [Fri, 26 Mar 2021 04:15:53 +0000 (17:15 +1300)]
Merge pull request #19905 from eileenmcnaughton/tear

[PHPunit8] cleanup on tearDown functions

3 years ago[PHPunit8] cleanup on tearDown functions
eileen [Thu, 25 Mar 2021 09:58:22 +0000 (22:58 +1300)]
[PHPunit8] cleanup on tearDown functions

3 years ago[REF] Cleanup access to payment_processor_id
eileen [Thu, 25 Mar 2021 23:38:08 +0000 (12:38 +1300)]
[REF] Cleanup access to payment_processor_id

3 years agoMerge pull request #19909 from eileenmcnaughton/setup
Seamus Lee [Thu, 25 Mar 2021 22:37:51 +0000 (09:37 +1100)]
Merge pull request #19909 from eileenmcnaughton/setup

[phpunit8] Add void to some setup() functions

3 years agoMerge pull request #19908 from colemanw/relationshipCacheReadonly
Eileen McNaughton [Thu, 25 Mar 2021 21:19:55 +0000 (10:19 +1300)]
Merge pull request #19908 from colemanw/relationshipCacheReadonly

Schema - Add readonly to all fields in RelationshipCache entity

3 years agoAdd void to some setup() functions
eileen [Thu, 25 Mar 2021 20:27:46 +0000 (09:27 +1300)]
Add void to some setup() functions

3 years agoRebuild the Drupal route cache.
Mikey O'Toole [Thu, 25 Mar 2021 19:32:51 +0000 (19:32 +0000)]
Rebuild the Drupal route cache.

This is linked to [issue 158](https://lab.civicrm.org/dev/drupal/-/issues/158) and [issue 37](https://lab.civicrm.org/dev/drupal/-/issues/37).

It takes an alternative approach, adding a Util hook function to rebuild the route cache which we can then invoke from multiple places.
Trigger `rebuildDrupalRouteCache()` when running `triggerRebuild()`
Fix checkstyle issues
Change function from `protected` to `public`
Update Drupal8.php
Add base for `invalidateRouteCache()`
Add invalidateRouteCache function
Add call to userFramework->invalidateRouteCache
Update Base.php
Correct `userFramework` to `userSystem`
Remove stray whitespace.
Move invalidateRouteCache call to the same place as resetNavigation.
Update Invoke.php
Switch to the `router.builder' option as invalidating the cache doesn't cut it.

3 years agoMerge pull request #19870 from totten/master-psr0
colemanw [Thu, 25 Mar 2021 16:16:10 +0000 (12:16 -0400)]
Merge pull request #19870 from totten/master-psr0

info.xml - Allow PSR-0 style class-loader declarations

3 years agoSchema - Add readonly to all fields in RelationshipCache entity
Coleman Watts [Thu, 25 Mar 2021 15:52:33 +0000 (11:52 -0400)]
Schema - Add readonly to all fields in RelationshipCache entity

This entire entity is readonly. Fields should never be presented to the user as editable.

3 years agoMerge pull request #19901 from eileenmcnaughton/tte
Seamus Lee [Thu, 25 Mar 2021 09:22:45 +0000 (20:22 +1100)]
Merge pull request #19901 from eileenmcnaughton/tte

[phpunit 8] Remove some empty tearDown functions

3 years agoMerge pull request #19898 from eileenmcnaughton/teardown2
Seamus Lee [Thu, 25 Mar 2021 09:21:09 +0000 (20:21 +1100)]
Merge pull request #19898 from eileenmcnaughton/teardown2

More phpunit8 prep

3 years agoMerge pull request #19899 from eileenmcnaughton/tear
Seamus Lee [Thu, 25 Mar 2021 09:20:48 +0000 (20:20 +1100)]
Merge pull request #19899 from eileenmcnaughton/tear

[PHPUNIT8] add void to more teardown()

3 years agoMerge pull request #19900 from eileenmcnaughton/tear2
Seamus Lee [Thu, 25 Mar 2021 09:20:30 +0000 (20:20 +1100)]
Merge pull request #19900 from eileenmcnaughton/tear2

[PHPUNIT 8 ] Add void to more teardowns

3 years agoMerge pull request #19891 from eileenmcnaughton/task1
Monish Deb [Thu, 25 Mar 2021 05:54:16 +0000 (11:24 +0530)]
Merge pull request #19891 from eileenmcnaughton/task1

[REF] Simplify setting of softcredit form options (minor)

3 years agoMerge pull request #19897 from eileenmcnaughton/teardown
Eileen McNaughton [Thu, 25 Mar 2021 04:31:08 +0000 (17:31 +1300)]
Merge pull request #19897 from eileenmcnaughton/teardown

Add :void return type to tearDown on a bunch of unit tests

3 years agoMerge pull request #19639 from eileenmcnaughton/test_test
Monish Deb [Thu, 25 Mar 2021 04:02:09 +0000 (09:32 +0530)]
Merge pull request #19639 from eileenmcnaughton/test_test

[REF] Fix ContributionPage::recurringNotify to use apiv4, simplify params

3 years agoMerge pull request #19896 from colemanw/api4GetActionsFix
Eileen McNaughton [Thu, 25 Mar 2021 02:59:12 +0000 (15:59 +1300)]
Merge pull request #19896 from colemanw/api4GetActionsFix

APIv4 - Fix GetActions function to work with entityNames that don't match className

3 years agoMerge pull request #19895 from eileenmcnaughton/falsefail
Eileen McNaughton [Thu, 25 Mar 2021 02:58:39 +0000 (15:58 +1300)]
Merge pull request #19895 from eileenmcnaughton/falsefail

Skip UFField.field_name on singleValueAlter as flakey

3 years agoRemove some empty tearDown functions
eileen [Thu, 25 Mar 2021 02:25:11 +0000 (15:25 +1300)]
Remove some empty tearDown functions

3 years ago[PHPUNIT 8 ] Add void to more teardowns
eileen [Thu, 25 Mar 2021 02:17:49 +0000 (15:17 +1300)]
[PHPUNIT 8 ] Add void to more teardowns

3 years ago[PHPUNIT8] add void to more teardown()
eileen [Thu, 25 Mar 2021 02:12:59 +0000 (15:12 +1300)]
[PHPUNIT8] add void to more teardown()

3 years agoMore phpunit8 prep
eileen [Thu, 25 Mar 2021 02:03:58 +0000 (15:03 +1300)]
More phpunit8 prep

3 years agoAdd :void return type to tearDown on a bunch of unit tests
eileen [Thu, 25 Mar 2021 01:51:27 +0000 (14:51 +1300)]
Add :void return type to tearDown on a bunch of unit tests

3 years agoAPIv4 - Fix GetActions function to work with entityNames that don't match className
Coleman Watts [Thu, 25 Mar 2021 00:13:57 +0000 (20:13 -0400)]
APIv4 - Fix GetActions function to work with entityNames that don't match className

3 years agoMerge pull request #19892 from colemanw/searchKitCreatedModified
Eileen McNaughton [Wed, 24 Mar 2021 23:54:37 +0000 (12:54 +1300)]
Merge pull request #19892 from colemanw/searchKitCreatedModified

SearchKit - Add created & modified info to SavedSearch listing

3 years agoMerge pull request #19312 from seamuslee001/dev_core_1845
Eileen McNaughton [Wed, 24 Mar 2021 23:24:11 +0000 (12:24 +1300)]
Merge pull request #19312 from seamuslee001/dev_core_1845

dev/core#1845 Change FK on civicrm_group to delete the associated gro…

3 years agoMerge pull request #19885 from eileenmcnaughton/acl_role
Eileen McNaughton [Wed, 24 Mar 2021 23:07:04 +0000 (12:07 +1300)]
Merge pull request #19885 from eileenmcnaughton/acl_role

[REF] Remove redundant toArray() function

3 years agoSearchKit - Add created & modified info to SavedSearch listing
Coleman Watts [Wed, 24 Mar 2021 22:15:08 +0000 (18:15 -0400)]
SearchKit - Add created & modified info to SavedSearch listing

3 years agoSimplify setting of softcredit form options
eileen [Fri, 19 Mar 2021 21:34:42 +0000 (10:34 +1300)]
Simplify setting of softcredit form options

I checked & the empty is just an enotice fix

3 years agoRemove toArray function as it does the same as the parent
eileen [Wed, 24 Mar 2021 03:25:08 +0000 (16:25 +1300)]
Remove toArray function as it does the same as the parent

3 years agoMerge pull request #19881 from eileenmcnaughton/task1
colemanw [Wed, 24 Mar 2021 20:19:25 +0000 (16:19 -0400)]
Merge pull request #19881 from eileenmcnaughton/task1

[REF] Store the getSearchQueryResults so it can be re-accessed

3 years agoMerge pull request #19889 from colemanw/api4EntityNameCleanup
Eileen McNaughton [Wed, 24 Mar 2021 20:12:15 +0000 (09:12 +1300)]
Merge pull request #19889 from colemanw/api4EntityNameCleanup

APIv4 - Standardize generic entity name resolution

3 years agoMerge pull request #19875 from colemanw/contactSummaryCleanup
Eileen McNaughton [Wed, 24 Mar 2021 19:35:34 +0000 (08:35 +1300)]
Merge pull request #19875 from colemanw/contactSummaryCleanup

Reorganize contact summary template to support non-ajax tabs

3 years agoAPIv4 - Standardize generic entity name resolution so that classNames do not have...
Coleman Watts [Wed, 24 Mar 2021 18:22:36 +0000 (14:22 -0400)]
APIv4 - Standardize generic entity name resolution so that classNames do not have to equal entityNames

This will allow the addition of a CiviCase API which cannot have the className "Case" because that is a reserved php keyword

Also cleans up other entities that use `static::class` in place of entityName because it's not a good pattern to replicate.

3 years agoMerge pull request #19801 from eileenmcnaughton/mem_terms
colemanw [Wed, 24 Mar 2021 15:17:12 +0000 (11:17 -0400)]
Merge pull request #19801 from eileenmcnaughton/mem_terms

[REF] Simplify code calculating the number of membership terms

3 years agoMerge pull request #19884 from eileenmcnaughton/unit8less
Seamus Lee [Wed, 24 Mar 2021 05:17:54 +0000 (16:17 +1100)]
Merge pull request #19884 from eileenmcnaughton/unit8less

Updates to ExportTest

3 years agoMerge pull request #19818 from eileenmcnaughton/merge_fix
Eileen McNaughton [Wed, 24 Mar 2021 03:17:03 +0000 (16:17 +1300)]
Merge pull request #19818 from eileenmcnaughton/merge_fix

Fix for dedupe error under some mysql configs

3 years agoUpdates to ExportTest
eileen [Wed, 24 Mar 2021 02:21:10 +0000 (15:21 +1300)]
Updates to ExportTest

3 years agoTest fix to avoid caching issue
eileen [Wed, 24 Mar 2021 02:42:52 +0000 (15:42 +1300)]
Test fix to avoid caching issue

3 years agoMerge pull request #19882 from eileenmcnaughton/acl_role
Seamus Lee [Wed, 24 Mar 2021 01:41:15 +0000 (12:41 +1100)]
Merge pull request #19882 from eileenmcnaughton/acl_role

Fold back in getGroupACLs

3 years agoMerge pull request #19817 from eileenmcnaughton/merge
Seamus Lee [Wed, 24 Mar 2021 01:35:53 +0000 (12:35 +1100)]
Merge pull request #19817 from eileenmcnaughton/merge

Tighten mysql mode in test environment

3 years agoMerge pull request #19880 from demeritcowboy/crmmoney2
Eileen McNaughton [Wed, 24 Mar 2021 01:32:10 +0000 (14:32 +1300)]
Merge pull request #19880 from demeritcowboy/crmmoney2

dev/financial#171 - Don't pass already formatted data to crmMoney on contact summary for custom fields

3 years agoFold back in getGroupACLs
eileen [Tue, 23 Mar 2021 23:30:37 +0000 (12:30 +1300)]
Fold back in getGroupACLs

3 years agoMerge pull request #19879 from eileenmcnaughton/acl_role
Eileen McNaughton [Wed, 24 Mar 2021 00:23:17 +0000 (13:23 +1300)]
Merge pull request #19879 from eileenmcnaughton/acl_role

Remove getACLRoles

3 years ago[REF] Fix the getSearchQueryResults so it can be called multiple times
eileen [Fri, 19 Mar 2021 21:23:31 +0000 (10:23 +1300)]
[REF] Fix the getSearchQueryResults so it can be called multiple times

3 years agodon't pass already formatted data to crmMoney
demeritcowboy [Tue, 23 Mar 2021 23:52:39 +0000 (19:52 -0400)]
don't pass already formatted data to crmMoney

3 years agoMerge pull request #19860 from eileenmcnaughton/task1
colemanw [Tue, 23 Mar 2021 23:49:37 +0000 (19:49 -0400)]
Merge pull request #19860 from eileenmcnaughton/task1

Move setting of _includesSoftCredits out of getQuery

3 years agoMerge pull request #19868 from colemanw/searchKitFixExtraFields
Eileen McNaughton [Tue, 23 Mar 2021 23:40:25 +0000 (12:40 +1300)]
Merge pull request #19868 from colemanw/searchKitFixExtraFields

SearchKit - remove extra irrelevant fields from bridge joins

3 years agoMerge pull request #19878 from civicrm/5.36
Seamus Lee [Tue, 23 Mar 2021 22:56:32 +0000 (09:56 +1100)]
Merge pull request #19878 from civicrm/5.36

5.36

3 years agoRemove getACLRoles
eileen [Tue, 23 Mar 2021 22:35:04 +0000 (11:35 +1300)]
Remove getACLRoles

We have cleaned up the code to clarify that
1) it returns an empty array if contact id is set and
2) it is only called with contact_id is set

Ergo it does nada

Not called from anywhere else (I made it protected last
cleanup round)

3 years agoMerge pull request #19872 from eileenmcnaughton/acl_role
Seamus Lee [Tue, 23 Mar 2021 22:14:49 +0000 (09:14 +1100)]
Merge pull request #19872 from eileenmcnaughton/acl_role

[REF] Fold getACLs back into the calling function

3 years agoMerge pull request #19867 from colemanw/civiCaseApi
Eileen McNaughton [Tue, 23 Mar 2021 22:14:26 +0000 (11:14 +1300)]
Merge pull request #19867 from colemanw/civiCaseApi

APIv4 - Add function to get api class name

3 years agoMerge pull request #19743 from totten/master-upg
Eileen McNaughton [Tue, 23 Mar 2021 22:07:10 +0000 (11:07 +1300)]
Merge pull request #19743 from totten/master-upg

dev/release#16 - Allow omission of empty upgrade steps

3 years agoMerge pull request #19874 from demeritcowboy/blank-assignee
Seamus Lee [Tue, 23 Mar 2021 21:25:37 +0000 (08:25 +1100)]
Merge pull request #19874 from demeritcowboy/blank-assignee

[WIP] dev/core#2473 - Don't crash when assignee left blank when creating followup on email activity

3 years agoMerge pull request #19877 from eileenmcnaughton/camp
Eileen McNaughton [Tue, 23 Mar 2021 21:03:48 +0000 (10:03 +1300)]
Merge pull request #19877 from eileenmcnaughton/camp

[REF] Stdise campaign_id handling

3 years agoMerge pull request #19876 from demeritcowboy/dont
Eileen McNaughton [Tue, 23 Mar 2021 21:03:31 +0000 (10:03 +1300)]
Merge pull request #19876 from demeritcowboy/dont

dev/financial#171 - Don't

3 years ago[REF] Stdise campaign_id handling
eileen [Tue, 23 Mar 2021 19:44:34 +0000 (08:44 +1300)]
[REF] Stdise campaign_id handling

3 years agodon't
demeritcowboy [Tue, 23 Mar 2021 19:26:05 +0000 (15:26 -0400)]
don't

3 years agoReorganize contact summary template to support non-ajax tabs
Coleman Watts [Tue, 23 Mar 2021 14:44:14 +0000 (10:44 -0400)]
Reorganize contact summary template to support non-ajax tabs

There was some non-functional (due to a typo) code in TabHeader.tpl to allow tabs to load from a .tpl instead of ajax.
This fixes that typo and copies the funcionality into the contact summary tabs as well.
The functionality is demonstrated here by moving the main tab into a sub-tempate.

3 years agoMerge pull request #19757 from eileenmcnaughton/tax_amount
colemanw [Tue, 23 Mar 2021 19:04:16 +0000 (15:04 -0400)]
Merge pull request #19757 from eileenmcnaughton/tax_amount

[REF] Minor simplification around assigning taxAmount to the template

3 years agoMerge pull request #19800 from eileenmcnaughton/gettypes
colemanw [Tue, 23 Mar 2021 18:40:52 +0000 (14:40 -0400)]
Merge pull request #19800 from eileenmcnaughton/gettypes

[REF] Remove setting of unused variables

3 years agocrash when assignee left blank
demeritcowboy [Tue, 23 Mar 2021 17:37:50 +0000 (13:37 -0400)]
crash when assignee left blank

3 years agoMerge pull request #19797 from eileenmcnaughton/super_duper
colemanw [Tue, 23 Mar 2021 12:24:25 +0000 (08:24 -0400)]
Merge pull request #19797 from eileenmcnaughton/super_duper

Add new Super-duper-no-permissions-apply permission

3 years agodev/core#1845 Change FK on civicrm_group to delete the associated group if a saved...
Michael McAndrew [Thu, 11 Mar 2021 15:38:43 +0000 (15:38 +0000)]
dev/core#1845 Change FK on civicrm_group to delete the associated group if a saved search is deleted

Add in delete function on Group BAO to handle deleting associated saved search if appropriate when group is deleted and move upgrade step appropriately

Add unit test and move code to the discard function

3 years agoMerge pull request #19764 from JMAConsulting/core-59
Seamus Lee [Tue, 23 Mar 2021 02:08:09 +0000 (13:08 +1100)]
Merge pull request #19764 from JMAConsulting/core-59

core#59: Address location type search errors when using a search profile

3 years agoMerge pull request #19871 from eileenmcnaughton/acl
Seamus Lee [Tue, 23 Mar 2021 02:04:02 +0000 (13:04 +1100)]
Merge pull request #19871 from eileenmcnaughton/acl

Return from getACLRoles when contactID is not null

3 years ago[REF] Fold getACLs back into the calling function
eileen [Tue, 23 Mar 2021 01:07:16 +0000 (14:07 +1300)]
[REF] Fold getACLs back into the calling function

Not called in the civi universe

3 years agoReturn from getACLRoles when contactID is null
eileen [Tue, 23 Mar 2021 00:29:45 +0000 (13:29 +1300)]
Return from getACLRoles when contactID is null

I've made this patch the least possible code wise to allow brain space to think about the query....

Basically the where is WHERE acl.entity_table='civicrm_acl_role'....

if contact_id is set it becomes AND acl.entity_table = 'civicrm_contact'

Which means that it would only ever return empty results

(once this is merged more cleanup can happen but I wanted to
make this change easy to think through)

3 years agoMerge pull request #19869 from eileenmcnaughton/acl
Eileen McNaughton [Tue, 23 Mar 2021 00:26:10 +0000 (13:26 +1300)]
Merge pull request #19869 from eileenmcnaughton/acl

[REF] Simplify BAO_ACL table references

3 years agoinfo.xml - Allow PSR-0 style class-loader declarations
Tim Otten [Mon, 22 Mar 2021 23:40:39 +0000 (16:40 -0700)]
info.xml - Allow PSR-0 style class-loader declarations

Before
------

If an extension defines a class in the style of `CRM_Foo_Bar`, then it
*must* use `hook_civicrm_config` and modify the `include_path`.

```php
function mymod_civicrm_config(&$config = NULL) {
  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
  $include_path = $extRoot . PATH_SEPARATOR . get_include_path();
  set_include_path($include_path);
}
```

Consequently:

* The `include_path` gets rather long.
* Setting up the extension class-loader is not sufficient for loading these classes. You must
  wait until the DB has initialized and the `hook_civicrm_config` has fired.

After
-----

An extension *may* setup classloading in `info.xml`, e.g.

```xml
<classloader>
  <psr0 prefix="CRM_" path="" />
</classloader>
```

If the `<psr0>` style is used, then it is possible to scan the extension
classes without fully booting the extension.  This is a pre-requisite for
using interfaces, annotations, or similar for event-registration.

Comments
--------

* This style closely parallels the `<psr4>` support in `info.xml`, and it parallels the semantics of `composer.json`.
* It is still valid for an extension to set `include_path` -- that works the same as ever.

3 years agoRemove exposure of implied_permissions beyond class
eileen [Sun, 21 Mar 2021 22:16:33 +0000 (11:16 +1300)]
Remove exposure of implied_permissions beyond class

3 years ago Add new Super-duper-no-permissions-apply permission
eileen [Sat, 13 Mar 2021 02:31:48 +0000 (15:31 +1300)]
 Add new Super-duper-no-permissions-apply permission

We discussed in the context of search kit that there are 2 competing concepts of
'administer CiviCRM'
1) like drupal user 1, can do anything
2) role that has various administrative access but acls etc still apply

In search kit we have an interest in allowing users who won't do dumb things
  the ability to expose data to people who otherwise would not have access to that data
   - e.g to create a listing of event participants to expose to anonymous users.

This effectively means we are giving people the power to create displays
that set check_permissions to FALSE. This would potentially enable people
to not just bypass ACLs applied to others but also acls applied to them.
In order words it could be a privellege escallation.

To prevent any unexpected escallation we decided that this ability
should only be given to contacts who explicitly have access to everything
anyway. There is no existing permission that does this (although
there is a perception that there is)

3 years ago[REF] Simplify BAO_ACL table references
eileen [Mon, 22 Mar 2021 21:10:11 +0000 (10:10 +1300)]
[REF] Simplify BAO_ACL table references

It does not appear to me, from my testing that the value in entity_table could
be something other than the actual table name (in fact I suspect
it would only ever be civicrm_acl_role - I'm working to confirm that).

This simplifies and switches to executeQuery which is multilingual aware

3 years agoMerge pull request #19829 from vingle/patch-11
Seamus Lee [Mon, 22 Mar 2021 22:33:16 +0000 (09:33 +1100)]
Merge pull request #19829 from vingle/patch-11

Add .clear class to break inline flow on social share footer

3 years agoMerge pull request #19716 from jitendrapurohit/lifetime
Eileen McNaughton [Mon, 22 Mar 2021 21:24:11 +0000 (10:24 +1300)]
Merge pull request #19716 from jitendrapurohit/lifetime

update to lifetime membership does not clear the end date

3 years agoMerge pull request #19866 from eileenmcnaughton/nfc
Seamus Lee [Mon, 22 Mar 2021 21:21:53 +0000 (08:21 +1100)]
Merge pull request #19866 from eileenmcnaughton/nfc

[NFC] Cleanup in test class

3 years agoMerge pull request #19660 from totten/master-afform-token
colemanw [Mon, 22 Mar 2021 20:44:11 +0000 (16:44 -0400)]
Merge pull request #19660 from totten/master-afform-token

Afform - Add support for email tokens `{afform.myFormUrl}`

3 years agoMerge pull request #19858 from eileenmcnaughton/loop
colemanw [Mon, 22 Mar 2021 20:35:23 +0000 (16:35 -0400)]
Merge pull request #19858 from eileenmcnaughton/loop

Fix loop

3 years agoAPIv4 - Add function to get api class name
Coleman Watts [Mon, 22 Mar 2021 16:01:43 +0000 (12:01 -0400)]
APIv4 - Add function to get api class name

Adding the "Case" entity is a problem because it's a reserved php keyword.
So we need to be able to have entity names that don't match their classname.
This function gives us a way to get api class names without guessing from the entity name.

3 years agoSearchKit - remove extra irrelevant fields from bridge joins
Coleman Watts [Mon, 22 Mar 2021 19:16:32 +0000 (15:16 -0400)]
SearchKit - remove extra irrelevant fields from bridge joins

3 years agoMerge pull request #19856 from colemanw/customFieldLabels
colemanw [Mon, 22 Mar 2021 14:04:38 +0000 (10:04 -0400)]
Merge pull request #19856 from colemanw/customFieldLabels

SearchKit - Include custom group title with custom field label

3 years agoRemove never-gonna-happen todos
eileen [Mon, 22 Mar 2021 10:45:44 +0000 (23:45 +1300)]
Remove never-gonna-happen todos

3 years agoShare function for identical code
eileen [Mon, 22 Mar 2021 10:41:28 +0000 (23:41 +1300)]
Share function for identical code

3 years agoUse custom data trait for custom data
eileen [Mon, 22 Mar 2021 10:36:54 +0000 (23:36 +1300)]
Use custom data trait for custom data

3 years agoRemove call to deprecated function
eileen [Mon, 22 Mar 2021 10:30:46 +0000 (23:30 +1300)]
Remove call to deprecated function

3 years ago[NFC] Cleanup in test class
eileen [Mon, 22 Mar 2021 10:20:23 +0000 (23:20 +1300)]
[NFC] Cleanup in test class

3 years agoMerge pull request #19864 from eileenmcnaughton/nfc
Eileen McNaughton [Mon, 22 Mar 2021 08:52:26 +0000 (21:52 +1300)]
Merge pull request #19864 from eileenmcnaughton/nfc

[NFC] Minor cleanup on test class

3 years agoMerge pull request #19861 from eileenmcnaughton/mem_tax
Seamus Lee [Mon, 22 Mar 2021 08:18:57 +0000 (19:18 +1100)]
Merge pull request #19861 from eileenmcnaughton/mem_tax

[REF] Simplify a couple of variables

3 years ago[NFC] Minor cleanup on test class
eileen [Mon, 22 Mar 2021 07:20:28 +0000 (20:20 +1300)]
[NFC] Minor cleanup on test class

3 years agoFix issue with no group by sql_mode
Seamus Lee [Mon, 22 Mar 2021 06:55:22 +0000 (17:55 +1100)]
Fix issue with no group by sql_mode

3 years agoTighten mysql mode in test environment
eileen [Tue, 16 Mar 2021 02:08:06 +0000 (15:08 +1300)]
Tighten mysql mode in test environment

At least one test fails (and the corresponding bug appears on our live site)
with the mysql modes IGNORE_SPACE, ERROR_FOR_DIVISION_BY_ZERO and STRICT_TRANS

(I think any 2 of the above is OK)

Let's throw it at jenkins & see how many friends it has

3 years agoMerge pull request #19603 from JMAConsulting/issue-2226
Eileen McNaughton [Mon, 22 Mar 2021 04:34:32 +0000 (17:34 +1300)]
Merge pull request #19603 from JMAConsulting/issue-2226

core#2226: Scheduled Reminder fails to send if From Name includes comma

3 years agoMove setting of _includesSoftCredits out of getQuery
eileen [Fri, 19 Mar 2021 21:20:09 +0000 (10:20 +1300)]
Move setting of _includesSoftCredits out of getQuery

We shouldn't be doing extra setting within the function

3 years agoMerge pull request #18466 from mattwire/scheduledJobFatalErrorHandler
Eileen McNaughton [Mon, 22 Mar 2021 03:32:06 +0000 (16:32 +1300)]
Merge pull request #18466 from mattwire/scheduledJobFatalErrorHandler

Remove fatalErrorHandler from scheduled jobs manager

3 years ago[REF] Simplify a couple of variables
eileen [Mon, 22 Mar 2021 02:41:55 +0000 (15:41 +1300)]
[REF] Simplify a couple of variables

Rather than rely on these being passed around retrieve them with
a consistent function.

Note tax_amount is retrieved one other place but that is fixed in
https://github.com/civicrm/civicrm-core/pull/19757

Line item will be used less once
https://github.com/civicrm/civicrm-core/pull/19801 is merged

3 years agoMerge pull request #19857 from eileenmcnaughton/task1
Seamus Lee [Mon, 22 Mar 2021 01:12:47 +0000 (12:12 +1100)]
Merge pull request #19857 from eileenmcnaughton/task1

[REF] Extract getQueryParams