civicrm-core.git
4 years agoMerge pull request #14672 from seamuslee001/load_smart_cache_after_deleting_group_con...
Eileen McNaughton [Thu, 25 Jul 2019 04:40:29 +0000 (16:40 +1200)]
Merge pull request #14672 from seamuslee001/load_smart_cache_after_deleting_group_contact_records

Invalidate smart group cache for group following deletion of group_c…

4 years agoMerge pull request #14882 from totten/master-query-event
Seamus Lee [Thu, 25 Jul 2019 03:02:07 +0000 (13:02 +1000)]
Merge pull request #14882 from totten/master-query-event

CRM-20455 - Add specialized event for queries

4 years agoCRM-20455 - Add specialized event for queries
Tim Otten [Thu, 25 Jul 2019 01:02:15 +0000 (18:02 -0700)]
CRM-20455 - Add specialized event for queries

Overview
--------

The recently merged PR for CRM-20455, https://github.com/civicrm/civicrm-packages/pull/180, uses the
GenericHookEvent for modifying all SQL queries.  GHE is flexible, but it
comes with a slight performance penalty (juggling a few internal arrays).
The penalty is usually too small to care if you're firing one hook. However, with CRM-20455,
we can foresee the event firing hundreds or even thousands of times within a given page-view.

This PR adds a smaller/simpler class for use with `modifyQuery`. There will be a different PR to use it.

Before
------

* Don't have `QueryEvent`

After
-----

* Do have `QueryEvent`

4 years agoMerge pull request #14861 from eileenmcnaughton/anet
Seamus Lee [Wed, 24 Jul 2019 23:38:14 +0000 (09:38 +1000)]
Merge pull request #14861 from eileenmcnaughton/anet

[test] Catch A.net exception & ignore

4 years agoMerge pull request #14833 from seamuslee001/ids_ip_logging_improvements
Tim Otten [Wed, 24 Jul 2019 22:49:43 +0000 (15:49 -0700)]
Merge pull request #14833 from seamuslee001/ids_ip_logging_improvements

Ensure that if present the HTTP_X_FORWARDED_FOR IP address is used in…

4 years agoMerge pull request #14878 from civicrm/5.16
Eileen McNaughton [Wed, 24 Jul 2019 22:48:43 +0000 (10:48 +1200)]
Merge pull request #14878 from civicrm/5.16

5.16 to master

4 years agoMerge pull request #14876 from eileenmcnaughton/is_front
Tim Otten [Wed, 24 Jul 2019 22:44:15 +0000 (15:44 -0700)]
Merge pull request #14876 from eileenmcnaughton/is_front

dev/core#378 Determine front end pages in drupal

4 years agoMerge pull request #14718 from totten/herb-private-hier
Eileen McNaughton [Wed, 24 Jul 2019 22:34:48 +0000 (10:34 +1200)]
Merge pull request #14718 from totten/herb-private-hier

Move log and compilation dirs from "Runtime" to "Paths"

4 years agoInvalidate smart group cache for group following deletion of group_contact row
Seamus Lee [Fri, 28 Jun 2019 22:45:42 +0000 (08:45 +1000)]
Invalidate smart group cache for group following deletion of group_contact row

Add in function to invalidate smart group cache rather than building it up again when contact removal is deleted

Remove if check

4 years agoMerge pull request #14873 from eileenmcnaughton/extract
colemanw [Wed, 24 Jul 2019 13:27:08 +0000 (09:27 -0400)]
Merge pull request #14873 from eileenmcnaughton/extract

[REF] extract loadSavedMapping

4 years agoDetermine front end pages in drupal
eileen [Wed, 24 Jul 2019 13:11:27 +0000 (01:11 +1200)]
Determine front end pages in drupal

Alternative to https://github.com/civicrm/civicrm-drupal/pull/546/files that I think narrows the scope
since it means we are not changing an existing property

4 years agoMerge pull request #14862 from mlutfy/event9
Matthew Wire [Wed, 24 Jul 2019 12:15:02 +0000 (13:15 +0100)]
Merge pull request #14862 from mlutfy/event9

dev/event#9 Event Templates: do not set the Start/End dates

4 years ago[REF] extract loadSavedMapping
eileen [Wed, 24 Jul 2019 05:24:58 +0000 (17:24 +1200)]
[REF] extract loadSavedMapping

This is a very 'untouched' extraction for simple replication. Ideally more follow up will be in subsequent PRs (now or down the track

4 years agoMerge pull request #14871 from eileenmcnaughton/import_post
Eileen McNaughton [Wed, 24 Jul 2019 09:01:24 +0000 (21:01 +1200)]
Merge pull request #14871 from eileenmcnaughton/import_post

[IMPORT] [code quality] [REF] Improve readability of variable assignment

4 years agoMerge pull request #14869 from eileenmcnaughton/import
Eileen McNaughton [Wed, 24 Jul 2019 09:01:06 +0000 (21:01 +1200)]
Merge pull request #14869 from eileenmcnaughton/import

[IMPORT] [code-quality] Remove usage of nullArray

4 years agoMerge pull request #14872 from eileenmcnaughton/import_mapper
Eileen McNaughton [Wed, 24 Jul 2019 09:00:50 +0000 (21:00 +1200)]
Merge pull request #14872 from eileenmcnaughton/import_mapper

[IMPORT] reduce php4 support, don't pass by ref when not required

4 years agoMerge pull request #14846 from eileenmcnaughton/ex_pos
colemanw [Wed, 24 Jul 2019 05:35:02 +0000 (01:35 -0400)]
Merge pull request #14846 from eileenmcnaughton/ex_pos

[EXPORT] Fix unreleased regression where postal addresses are not suppressed when empty

4 years ago[IMPORT] reduce php4 support, don't pass by ref when not required
eileen [Wed, 24 Jul 2019 05:11:21 +0000 (17:11 +1200)]
[IMPORT] reduce php4 support, don't pass by ref when not required

4 years ago[REF] Improve readability of variable assignment
eileen [Wed, 24 Jul 2019 05:08:41 +0000 (17:08 +1200)]
[REF] Improve readability of variable assignment

4 years agoMerge pull request #14867 from eileenmcnaughton/mapping
Eileen McNaughton [Wed, 24 Jul 2019 04:53:13 +0000 (16:53 +1200)]
Merge pull request #14867 from eileenmcnaughton/mapping

[METADATA] Add titles to Mapping xml & DAOs

4 years agoMerge pull request #14868 from civicrm/5.16
Eileen McNaughton [Wed, 24 Jul 2019 04:52:32 +0000 (16:52 +1200)]
Merge pull request #14868 from civicrm/5.16

5.16 to master

4 years agoRemove usage of nullArray
eileen [Wed, 24 Jul 2019 04:26:56 +0000 (16:26 +1200)]
Remove usage of nullArray

4 years agoMerge pull request #14860 from eileenmcnaughton/export_1
colemanw [Wed, 24 Jul 2019 00:43:47 +0000 (20:43 -0400)]
Merge pull request #14860 from eileenmcnaughton/export_1

[REF] [EXPORT] Use columns from processor instead of passing them

4 years agoMerge pull request #14866 from alifrumin/5.16.0
Eileen McNaughton [Wed, 24 Jul 2019 00:02:59 +0000 (12:02 +1200)]
Merge pull request #14866 from alifrumin/5.16.0

Annotating and Sorting 5.16.0 release notes

4 years agoAdd titles to Mapping xml & DAOs
eileen [Tue, 23 Jul 2019 23:54:57 +0000 (11:54 +1200)]
Add titles to Mapping xml & DAOs

4 years agoAnnotating and Sorting 5.16.0 release notes
Alice Frumin [Thu, 11 Jul 2019 14:57:48 +0000 (10:57 -0400)]
Annotating and Sorting 5.16.0 release notes

4 years agodev/event#9 Event Templates: do not set the Start/End dates
Mathieu Lutfy [Tue, 23 Jul 2019 12:46:15 +0000 (08:46 -0400)]
dev/event#9 Event Templates: do not set the Start/End dates

4 years agoCatch A.net exception & ignore
eileen [Tue, 23 Jul 2019 06:26:20 +0000 (18:26 +1200)]
Catch A.net exception & ignore

Hopefully we can avoid false negatives like
https://test.civicrm.org/job/CiviCRM-Core-PR/27923/testReport/junit/(root)/CRM_Core_Payment_AuthorizeNetIPNTest/testIPNPaymentRecurNoReceipt/
without losing too much

4 years agoUse columns from processor instead of passing them
eileen [Tue, 16 Jul 2019 23:03:21 +0000 (11:03 +1200)]
Use columns from processor instead of passing them

4 years agoMerge pull request #14859 from seamuslee001/nfc_audit_update
colemanw [Tue, 23 Jul 2019 02:24:01 +0000 (22:24 -0400)]
Merge pull request #14859 from seamuslee001/nfc_audit_update

NFC Update node module versions based on npm audit fix

4 years agoMerge pull request #14856 from seamuslee001/atomfeeds_cache_convert
Seamus Lee [Tue, 23 Jul 2019 02:07:10 +0000 (12:07 +1000)]
Merge pull request #14856 from seamuslee001/atomfeeds_cache_convert

Add in Atomfeeds deprecation now that the extension has a new release…

4 years agoNFC Update node module versions based on npm audit fix
Seamus Lee [Tue, 23 Jul 2019 00:46:39 +0000 (10:46 +1000)]
NFC Update node module versions based on npm audit fix

4 years agoAdd in Atomfeeds deprecation now that the extension has a new release with converted...
Seamus Lee [Mon, 22 Jul 2019 21:30:07 +0000 (07:30 +1000)]
Add in Atomfeeds deprecation now that the extension has a new release with converted cache mechanism

Fix version to match info.xml of new version

4 years agoMerge pull request #14857 from colemanw/testFormat
Eileen McNaughton [Tue, 23 Jul 2019 00:27:24 +0000 (12:27 +1200)]
Merge pull request #14857 from colemanw/testFormat

Autoformat /tests directory with php short array syntax

4 years agoAutoformat /tests directory with php short array syntax
Coleman Watts [Mon, 22 Jul 2019 21:33:36 +0000 (17:33 -0400)]
Autoformat /tests directory with php short array syntax

4 years agoMerge pull request #14855 from MikeyMJCO/patch-2
Tim Otten [Mon, 22 Jul 2019 19:47:55 +0000 (12:47 -0700)]
Merge pull request #14855 from MikeyMJCO/patch-2

(NFC) Fixing documentation links in readme.

4 years agoFixing documentation links in readme.
Mikey O'Toole [Mon, 22 Jul 2019 14:30:02 +0000 (15:30 +0100)]
Fixing documentation links in readme.

4 years agoMerge pull request #14639 from colemanw/i18nCleanup
Matthew Wire [Mon, 22 Jul 2019 14:25:46 +0000 (15:25 +0100)]
Merge pull request #14639 from colemanw/i18nCleanup

Multilingual test fix and cleanup

4 years agoMerge pull request #14716 from eileenmcnaughton/db
colemanw [Mon, 22 Jul 2019 14:00:32 +0000 (10:00 -0400)]
Merge pull request #14716 from eileenmcnaughton/db

Add unit test demonstrating attaching a listener to queries

4 years agoMerge pull request #14851 from eileenmcnaughton/tt
colemanw [Mon, 22 Jul 2019 13:56:11 +0000 (09:56 -0400)]
Merge pull request #14851 from eileenmcnaughton/tt

[REF] [Export] Move temp table creation function to the processor

4 years agoMerge pull request #14853 from eileenmcnaughton/format
colemanw [Mon, 22 Jul 2019 13:55:40 +0000 (09:55 -0400)]
Merge pull request #14853 from eileenmcnaughton/format

[NFC] code reformatting

4 years agoMerge pull request #14703 from eileenmcnaughton/act_search_wild
Yashodha Chaku [Mon, 22 Jul 2019 12:08:08 +0000 (17:38 +0530)]
Merge pull request #14703 from eileenmcnaughton/act_search_wild

dev/core#538 fix advanced search on activity subject, detail to use wildcards like activity search does

4 years agoMerge pull request #14658 from MegaphoneJon/mail-46
Eileen McNaughton [Mon, 22 Jul 2019 01:08:35 +0000 (13:08 +1200)]
Merge pull request #14658 from MegaphoneJon/mail-46

mail#46 - show label, not value, on contribution custom field tokens

4 years agodev/core#538 fix advanced search on activity subject, detail to use wildcards like...
eileen [Tue, 2 Jul 2019 07:24:12 +0000 (19:24 +1200)]
dev/core#538 fix advanced search on activity subject, detail to use wildcards like activity search does

4 years agoMerge pull request #14735 from mattwire/deprecated_getallpermissions
Eileen McNaughton [Mon, 22 Jul 2019 00:08:12 +0000 (12:08 +1200)]
Merge pull request #14735 from mattwire/deprecated_getallpermissions

Remove use of deprecated path in function `CRM_Event_BAO_Event::checkPermission()`

4 years agoMerge pull request #14843 from mattwire/priceset_to_metadatafield
Eileen McNaughton [Sun, 21 Jul 2019 23:58:59 +0000 (11:58 +1200)]
Merge pull request #14843 from mattwire/priceset_to_metadatafield

Switch priceset selector to addField method

4 years agoMerge pull request #14852 from pradpnayak/SttingsTitle
Eileen McNaughton [Sun, 21 Jul 2019 23:40:01 +0000 (11:40 +1200)]
Merge pull request #14852 from pradpnayak/SttingsTitle

Changed the title and description of profile_add_to_group_double_optin

4 years agoMerge pull request #14827 from deepak-srivastava/case-summary-report-case-type-filter
Eileen McNaughton [Sun, 21 Jul 2019 23:04:31 +0000 (11:04 +1200)]
Merge pull request #14827 from deepak-srivastava/case-summary-report-case-type-filter

dev/core#1118 correct filteration by case type, re-use parent where()

4 years ago[NFC] code reformatting
eileen [Sun, 21 Jul 2019 22:48:25 +0000 (10:48 +1200)]
[NFC] code reformatting

4 years agoMerge pull request #14845 from colemanw/Set
Eileen McNaughton [Sun, 21 Jul 2019 22:44:14 +0000 (10:44 +1200)]
Merge pull request #14845 from colemanw/Set

Set profile greeting fields based on actual contact type

4 years agoMove temp table creation to the processor
eileen [Tue, 16 Jul 2019 23:01:45 +0000 (11:01 +1200)]
Move temp table creation to the processor

4 years agoCHanged the title and description of profile_add_to_group_double_optin
Pradeep Nayak [Sun, 21 Jul 2019 17:29:44 +0000 (18:29 +0100)]
CHanged the title and description of profile_add_to_group_double_optin

4 years agoEnsure that if present the HTTP_X_FORWARDED_FOR IP address is used instead of the...
Seamus Lee [Tue, 16 Jul 2019 14:39:08 +0000 (00:39 +1000)]
Ensure that if present the HTTP_X_FORWARDED_FOR IP address is used instead of the SERVER_ADDR when logging items from the IDS

Update Core IP address to match IDS Pattern

4 years agodev/core#1118 define filter type for case_type_id
Deepak Srivastava [Sat, 20 Jul 2019 15:33:34 +0000 (16:33 +0100)]
dev/core#1118 define filter type for case_type_id

4 years agoMerge pull request #14848 from eileenmcnaughton/test_fix
colemanw [Sat, 20 Jul 2019 07:13:26 +0000 (03:13 -0400)]
Merge pull request #14848 from eileenmcnaughton/test_fix

[REF][TEST][EXPORT] minor test cleanup & minor cleanup of code it tests

4 years agoMerge pull request #14849 from eileenmcnaughton/test_up
colemanw [Sat, 20 Jul 2019 07:12:42 +0000 (03:12 -0400)]
Merge pull request #14849 from eileenmcnaughton/test_up

[NFC] [TEST] code formatting in test class

4 years agoMerge pull request #14850 from eileenmcnaughton/test_act
colemanw [Sat, 20 Jul 2019 07:12:12 +0000 (03:12 -0400)]
Merge pull request #14850 from eileenmcnaughton/test_act

[REF] [TEST] cleanup on export activity test

4 years agoMerge pull request #14838 from eileenmcnaughton/export
colemanw [Sat, 20 Jul 2019 07:11:36 +0000 (03:11 -0400)]
Merge pull request #14838 from eileenmcnaughton/export

[REF] [Export] Stop passing exportParams & sqlColumns around

4 years agoMerge pull request #14847 from eileenmcnaughton/silly_refs
colemanw [Sat, 20 Jul 2019 04:36:18 +0000 (00:36 -0400)]
Merge pull request #14847 from eileenmcnaughton/silly_refs

[REF] Down with php4 compatibility

4 years ago[REF] [TEST] cleanup on export activity test
eileen [Sat, 20 Jul 2019 03:20:28 +0000 (15:20 +1200)]
[REF] [TEST] cleanup on export activity test

4 years ago[NFC] [TEST] code formatting in test class
eileen [Sat, 20 Jul 2019 03:13:55 +0000 (15:13 +1200)]
[NFC] [TEST] code formatting in test class

4 years ago[REF][TEST][EXPORT] minor test cleanup & minor cleanup of code it tests
eileen [Sat, 20 Jul 2019 03:05:44 +0000 (15:05 +1200)]
[REF][TEST][EXPORT] minor test cleanup & minor cleanup of code it tests

4 years agoFix unreleased regression where postal addresses are not suppressed when empty
eileen [Sat, 20 Jul 2019 01:52:55 +0000 (13:52 +1200)]
Fix unreleased regression where postal addresses are not suppressed when empty

I had a suspicion about this as the variable showed as unused in my IDE so I upgraded the test that was failing to notice
and it started failing on this.

Bug is that the lines were not being added to the query to suppress empty addresses.

4 years agoDown with php4 compatibility
eileen [Sat, 20 Jul 2019 02:31:18 +0000 (14:31 +1200)]
Down with php4 compatibility

Removes a few more cases where parameters are needlessly passed as references

4 years agoSet profile greeting fields based on actual contact type
Coleman Watts [Fri, 19 Jul 2019 19:36:17 +0000 (15:36 -0400)]
Set profile greeting fields based on actual contact type

4 years agoSwitch priceset selector to addField method
Matthew Wire (MJW Consulting) [Fri, 19 Jul 2019 15:59:03 +0000 (16:59 +0100)]
Switch priceset selector to addField method

4 years agoMerge pull request #14841 from chamilwijesooriya/issue-1133
Matthew Wire [Fri, 19 Jul 2019 16:03:07 +0000 (17:03 +0100)]
Merge pull request #14841 from chamilwijesooriya/issue-1133

dev/core#1133 Payment method name is displayed instead of label in payment block for Manual payment

4 years agodev/core#1133 Payment method name is displayed instead of label in payment block...
Chamil Wijesooriya [Fri, 19 Jul 2019 13:54:46 +0000 (14:54 +0100)]
dev/core#1133 Payment method name is displayed instead of label in payment block for Manual payment

4 years agoMerge pull request #14839 from colemanw/Menubar
Matthew Wire [Fri, 19 Jul 2019 13:33:35 +0000 (14:33 +0100)]
Merge pull request #14839 from colemanw/Menubar

Menubar - Improve flexibility & remove hardcoded values

4 years agoMenubar - get rid of hardcoded pixel values in crm.menubar.js
Coleman Watts [Thu, 18 Jul 2019 17:29:14 +0000 (13:29 -0400)]
Menubar - get rid of hardcoded pixel values in crm.menubar.js

4 years agoMenubar - Use class instead of id for flexibility
Coleman Watts [Thu, 18 Jul 2019 12:41:48 +0000 (08:41 -0400)]
Menubar - Use class instead of id for flexibility

4 years agoStop passing exportParams & sqlColumns around
eileen [Tue, 16 Jul 2019 22:27:54 +0000 (10:27 +1200)]
Stop passing exportParams & sqlColumns around

4 years agoMerge pull request #14835 from eileenmcnaughton/export
colemanw [Wed, 17 Jul 2019 19:16:24 +0000 (15:16 -0400)]
Merge pull request #14835 from eileenmcnaughton/export

[REF] [Export] Simplify setting of address strings

4 years agoSimplify setting of address strings
eileen [Tue, 16 Jul 2019 20:37:11 +0000 (08:37 +1200)]
Simplify setting of address strings

4 years agoMerge pull request #14834 from seamuslee001/dev_core_1056
Eileen McNaughton [Tue, 16 Jul 2019 20:02:58 +0000 (08:02 +1200)]
Merge pull request #14834 from seamuslee001/dev_core_1056

dev/core#1056 Remove unneded schema file

4 years agoMerge pull request #14830 from eileenmcnaughton/export
colemanw [Tue, 16 Jul 2019 14:59:00 +0000 (10:59 -0400)]
Merge pull request #14830 from eileenmcnaughton/export

dev/core#1120 remove multiple export handling

4 years agodev/core#1056 Remove unneded schema file
Seamus Lee [Tue, 16 Jul 2019 14:44:49 +0000 (00:44 +1000)]
dev/core#1056 Remove unneded schema file

4 years agoMerge pull request #14831 from eileenmcnaughton/format
Seamus Lee [Tue, 16 Jul 2019 13:53:30 +0000 (09:53 -0400)]
Merge pull request #14831 from eileenmcnaughton/format

[NFC] [TEST] Reformat arrays in test classes

4 years agoMerge pull request #14832 from mattwire/profileformsession
colemanw [Tue, 16 Jul 2019 11:03:31 +0000 (07:03 -0400)]
Merge pull request #14832 from mattwire/profileformsession

Use singleton to get session instead of relying on ->_session being set elsewhere

4 years agoUse singleton to get session instead of relying on ->_session being set elsewhere
Matthew Wire (MJW Consulting) [Tue, 16 Jul 2019 09:12:35 +0000 (10:12 +0100)]
Use singleton to get session instead of relying on ->_session being set elsewhere

4 years agoReformat arrays in tests
eileen [Tue, 16 Jul 2019 07:16:27 +0000 (19:16 +1200)]
Reformat arrays in tests

4 years ago(dev/cloud-native#3) Container, Extension Classloader - Change CIVICRM_TEMPLATE_COMPI...
Tim Otten [Wed, 10 Jul 2019 05:10:05 +0000 (22:10 -0700)]
(dev/cloud-native#3) Container, Extension Classloader - Change CIVICRM_TEMPLATE_COMPILEDIR to 'civicrm.compile'

The broader PR seeks to make path computation more intuitive, which requires computing the
path to `templates_c` using a function. This PR replaces the reference to `CIVICRM_TEMPLATE_COMPILEDIR`
with a function-call to `Civi::paths()->getPath()`.

Why change these two files in the same commit? Because they're basically doing the same
thing (writing an executable PHP file to the template cache), and the demonstration
of their safety is basically the same.

Is it safe to change this reference to `CIVICRM_TEMPLATE_COMPILEDIR` in
`Civi\Core\Container::loadContainer()` and `CRM_Extension_ClassLoader::register()/::getCacheFile()`?  Yes, I believe so:

* Look at `Civi\Core\Container::boot()`.
* Observe that it initializes services in two general stages:
    * First, the `$bootServices` (`runtime`, `paths`, `userSystem`, etc)
    * Second, the DB/extension-dependent services (`CRM_Utils_Hook`, `CRM_Extension_System`, `loadContainer()`).
* The first stage services (e.g. `paths`) provide enough information
  to process `Civi::paths()->getPath('[civicrm.compile]/foo')`.
* All the modified lines run as part of the *second* stage (i.e. after
  the `$bootServices` have been initialized).

4 years ago(dev/cloud-native#3) CRM_Core_IDS - Change CIVICRM_TEMPLATE_COMPILEDIR to 'civicrm...
Tim Otten [Wed, 10 Jul 2019 04:53:04 +0000 (21:53 -0700)]
(dev/cloud-native#3) CRM_Core_IDS - Change CIVICRM_TEMPLATE_COMPILEDIR to 'civicrm.compile'

The broader PR seeks to make path computation more intuitive, which requires computing the
path to `templates_c` using a function. This PR replaces the reference to `CIVICRM_TEMPLATE_COMPILEDIR`
with a function-call to `Civi::paths()->getVariable()`.

Is it safe change to make this change in `CRM_Core_IDS`?  Will the
`Civi::paths()` be callable?  Yes, here's why I believe so:

* (Big picture) Civi completes the bootstrap process
  (`CRM_Core_Config::singleton()`) and brings critical services online
  *before* the invoker does any routing or page-processing.  The invoker
  (`CRM_Core_Invoke::runItem()`) is the only thing which uses
  `CRM_Core_IDS`.

* (Little picture) In the changed function
  `CRM_Core_IDS::createBaseConfig()`, observe that it calls
  `CRM_Core_Config::singleton()` before running this modified code.  That's
  a tell-tale sign of code that already relies on having a booted system.

4 years ago(dev/cloud-native#3) Runtime.php - Remove redundant check
Tim Otten [Tue, 9 Jul 2019 22:12:15 +0000 (15:12 -0700)]
(dev/cloud-native#3) Runtime.php - Remove redundant check

1. Previous commits generally removed any responsibility for
`CIVICRM_TEMPLATE_COMPILEDIR` from `Runtime.php`, so the validation
is longer local/relevant.

2. The `CIVICRM_TEMPLATE_COMPILEDIR` is still used in
`CRM_Utils_File::baseFilePath()` which has a similar validation step.

4 years ago(dev/cloud-native#3) configAndLogDir,templateCompileDir - Move from "Runtime" to...
Tim Otten [Wed, 3 Jul 2019 01:08:20 +0000 (18:08 -0700)]
(dev/cloud-native#3) configAndLogDir,templateCompileDir - Move from "Runtime" to "Paths". Use hierarchy.

This slightly changes the computation of the private log and compilation
directories so that:

* The definition appears more declarative.
* The default is computed on-demand (i.e. later in the process).
* The values can be overriden more intuitively.

Before
------

The properties `$config->configAndLogDir` and `$config->templateCompileDir`
are computed as part of a procedural initialization step in
`CRM_Core_Config_Runtime`.

After
-----

The properties `$config->configAndLogDir` and `$config->templateCompileDir`
are computed on-demand by `Civi\Core\Paths`.

The values of these properties may:

* Be computed automatically in a way that matches the previous output
  (i.e.  `configAndLogDir`=~`CIVICRM_TEMPLATE_COMPILEDIR/../configAndLog`;
  `templateCompileDir`=~`CIVICRM_TEMPLATE_COMPILEDIR`).
* Be customized as a pair (by setting `civicrm.private`)
* Be customized individually (by setting `civicrm.logs` or `civicrm.compile`).

4 years ago(dev/cloud-native#3) MagicMerge - Allow pulling properties directly from Civi::paths
Tim Otten [Wed, 3 Jul 2019 01:02:49 +0000 (18:02 -0700)]
(dev/cloud-native#3) MagicMerge - Allow pulling properties directly from Civi::paths

4 years agoSpecify path
Herb [Mon, 1 Jul 2019 03:46:50 +0000 (23:46 -0400)]
Specify path

4 years agoUse global since Civi\Core\Paths isn't loaded yet
Herb [Mon, 1 Jul 2019 02:25:52 +0000 (22:25 -0400)]
Use global since Civi\Core\Paths isn't loaded yet

4 years agoBoot paths after runtime
Herb [Mon, 1 Jul 2019 02:19:18 +0000 (22:19 -0400)]
Boot paths after runtime

4 years agoLookup path-variable for the private filepath
Herb vd Dool [Thu, 20 Sep 2018 01:17:28 +0000 (21:17 -0400)]
Lookup path-variable for the private filepath

4 years agoMerge pull request #14828 from seamuslee001/deprecation_notices
Seamus Lee [Mon, 15 Jul 2019 22:51:16 +0000 (18:51 -0400)]
Merge pull request #14828 from seamuslee001/deprecation_notices

Add in Deprecation warnings on Cache functons

4 years agodev/core#1120 remove multiple export handling
eileen [Mon, 15 Jul 2019 21:43:42 +0000 (09:43 +1200)]
dev/core#1120 remove multiple export handling

4 years agoUpdate Unit tests to use Civi facade
Seamus Lee [Mon, 15 Jul 2019 20:48:57 +0000 (06:48 +1000)]
Update Unit tests to use Civi facade

4 years agoMerge pull request #14829 from colemanw/1093
Eileen McNaughton [Mon, 15 Jul 2019 20:33:00 +0000 (08:33 +1200)]
Merge pull request #14829 from colemanw/1093

dev/core#1093 Make bulkSave defaults optional and ensure correct post hook is called

4 years agoMerge pull request #14737 from seamuslee001/convert_contribution_recur_date_fields
Eileen McNaughton [Mon, 15 Jul 2019 20:27:22 +0000 (08:27 +1200)]
Merge pull request #14737 from seamuslee001/convert_contribution_recur_date_fields

[REF] Convert contribution_recur dates to datepicker from jcalendar

4 years agoMerge pull request #14824 from demeritcowboy/case-singleton-url
colemanw [Mon, 15 Jul 2019 18:50:11 +0000 (14:50 -0400)]
Merge pull request #14824 from demeritcowboy/case-singleton-url

dev/core#1115 - fix invalid url in singleton/max_instances warning in civicase

4 years agoMerge pull request #14822 from eileenmcnaughton/export
colemanw [Mon, 15 Jul 2019 18:37:24 +0000 (14:37 -0400)]
Merge pull request #14822 from eileenmcnaughton/export

[REF] [Export] remove another confusing parameter

4 years agodev/core#1093 Make bulkSave defaults optional and ensure correct post hook is called
Coleman Watts [Mon, 15 Jul 2019 18:18:17 +0000 (14:18 -0400)]
dev/core#1093 Make bulkSave defaults optional and ensure correct post hook is called

4 years agofix singleton warning url
DemeritCowboy [Mon, 15 Jul 2019 13:00:13 +0000 (09:00 -0400)]
fix singleton warning url

4 years agoAdd in Deprecation warnings on Cache functons
Seamus Lee [Mon, 15 Jul 2019 14:19:22 +0000 (00:19 +1000)]
Add in Deprecation warnings on Cache functons