civicrm-core.git
3 years ago[REF] Minor cleanup on emailReceipt
eileen [Sun, 17 Jan 2021 21:43:35 +0000 (10:43 +1300)]
[REF] Minor cleanup on emailReceipt

Fixes 2 things
1) empty check on line items when it is never set
2) starts to move code out of the shared-function to the form function
when it is only possible when called via the form function. The sharing here
is one of those cases where only a small part of the shared code is actually shared

3 years agoMerge pull request #19399 from seamuslee001/mysql8_rlike
Eileen McNaughton [Sun, 17 Jan 2021 20:28:03 +0000 (09:28 +1300)]
Merge pull request #19399 from seamuslee001/mysql8_rlike

REF Ensure that when doing RLIKE BINARY the field is cast as BINARY t…

3 years agoREF Ensure that when doing RLIKE BINARY the field is cast as BINARY to prevent issue...
Seamus Lee [Sun, 17 Jan 2021 03:09:29 +0000 (14:09 +1100)]
REF Ensure that when doing RLIKE BINARY the field is cast as BINARY to prevent issue on MySQL 8

3 years agoMerge pull request #19393 from civicrm/5.34
Seamus Lee [Sat, 16 Jan 2021 07:19:20 +0000 (18:19 +1100)]
Merge pull request #19393 from civicrm/5.34

5.34

3 years agoMerge pull request #19398 from seamuslee001/5.34
Seamus Lee [Sat, 16 Jan 2021 05:38:15 +0000 (16:38 +1100)]
Merge pull request #19398 from seamuslee001/5.34

Add release-notes/5.33.2

3 years agoAdd release-notes/5.33.2
Tim Otten [Sat, 16 Jan 2021 04:57:40 +0000 (20:57 -0800)]
Add release-notes/5.33.2

3 years agoMerge pull request #19384 from totten/5.34-distmaker-wpver
Tim Otten [Fri, 15 Jan 2021 07:21:52 +0000 (23:21 -0800)]
Merge pull request #19384 from totten/5.34-distmaker-wpver

(dev/wordpress#85) Fix version number reported within WordPress admin UI

3 years ago(dev/wordpress#85) Fix version number reported within WordPress admin UI
Tim Otten [Thu, 14 Jan 2021 04:09:38 +0000 (20:09 -0800)]
(dev/wordpress#85) Fix version number reported within WordPress admin UI

3 years agoMerge pull request #19388 from demeritcowboy/nulls-all-around
Eileen McNaughton [Fri, 15 Jan 2021 05:21:18 +0000 (18:21 +1300)]
Merge pull request #19388 from demeritcowboy/nulls-all-around

dev/core#2297 - E_NOTICE on contribution thankyou_date_time since time component no longer a separate field

3 years agoMerge pull request #19383 from eileenmcnaughton/civi_sett
Tim Otten [Fri, 15 Jan 2021 05:16:47 +0000 (21:16 -0800)]
Merge pull request #19383 from eileenmcnaughton/civi_sett

Add setting default to speed up cache flush

3 years agoAdd setting default to speed up cache flush
eileen [Thu, 14 Jan 2021 03:58:13 +0000 (16:58 +1300)]
Add setting default to speed up cache flush

Detailed discussion in https://lab.civicrm.org/dev/core/-/issues/2031 but note
this does not add vendor in to make it easier to get it merged (as
there is more complexity there

3 years agoMerge pull request #19339 from kainuk/dev_core_2288_sensible
Eileen McNaughton [Fri, 15 Jan 2021 02:13:56 +0000 (15:13 +1300)]
Merge pull request #19339 from kainuk/dev_core_2288_sensible

dev/core#2288 - Alternative fix search range for select/radio custom fields - now disabling the combination

3 years agoMerge pull request #19382 from totten/master-maxfile
Eileen McNaughton [Fri, 15 Jan 2021 02:12:05 +0000 (15:12 +1300)]
Merge pull request #19382 from totten/master-maxfile

"Admin => Misc" - Fix validation of "Maximum File Size"

3 years agoUpdate Miscellaneous.php
Tim Otten [Thu, 14 Jan 2021 23:09:00 +0000 (15:09 -0800)]
Update Miscellaneous.php

3 years agoMerge pull request #19352 from colemanw/afformRef
Eileen McNaughton [Thu, 14 Jan 2021 22:37:03 +0000 (11:37 +1300)]
Merge pull request #19352 from colemanw/afformRef

Afform - code refactoring for angular best practices

3 years agoMerge pull request #19385 from civicrm/5.34
Eileen McNaughton [Thu, 14 Jan 2021 20:16:12 +0000 (09:16 +1300)]
Merge pull request #19385 from civicrm/5.34

5.34

3 years agotime component no longer a field
demeritcowboy [Thu, 14 Jan 2021 17:41:52 +0000 (12:41 -0500)]
time component no longer a field

3 years agoMerge pull request #19381 from eileenmcnaughton/regress
Seamus Lee [Thu, 14 Jan 2021 08:38:08 +0000 (19:38 +1100)]
Merge pull request #19381 from eileenmcnaughton/regress

Fix naming regression dev/core#2298

3 years agoFix naming regression dev/core#2298
eileen [Thu, 14 Jan 2021 03:43:29 +0000 (16:43 +1300)]
Fix naming regression dev/core#2298

3 years ago"Admin => Misc" - Fix validation of "Maximum File Size"
Tim Otten [Thu, 14 Jan 2021 03:15:11 +0000 (19:15 -0800)]
"Admin => Misc" - Fix validation of "Maximum File Size"

The form "Administer => System Settings => Miscellaneous" has a field for "Maximum File Size".

I was on a workstation where the PHP-default and the Civi-default were disagreeable, so
(by default) I couldn't submit the form. So I noticed some quirks -- fixed below.

Before
------

* The error message tells you that the "Maximum File Size" disagrees with a setting in `php.ini`.
  Hopefully, you know what+where of "php.ini", otherwise you'll be at a loss for what value is acceptable.
* The validation assumes that `upload_max_filesize` is expressed in unit-megabytes. But `php.ini` actually
  allows different units (`2m`, `2048k`, `1g`, `2097152`). The comparison is incorrect
  if any other unit is used. (ex: If `php.ini has `upload_max_filesize=1g`, and if the requested
  limit is `2` megabytes, then it should accept - but it rejects due to mismatched units.)

After
-----

* Error message tells you what you need to know.
* Validator correctly interprets the units used in `php.ini`'s `upload_max_filesize`.

3 years agoMerge pull request #19278 from colemanw/relationshipTypePseudoconstants
Eileen McNaughton [Wed, 13 Jan 2021 23:36:31 +0000 (12:36 +1300)]
Merge pull request #19278 from colemanw/relationshipTypePseudoconstants

Add pseudoconstant for Relationship.relationship_type_id

3 years agoMerge pull request #19365 from eileenmcnaughton/dep
Seamus Lee [Wed, 13 Jan 2021 23:05:01 +0000 (10:05 +1100)]
Merge pull request #19365 from eileenmcnaughton/dep

Move another deprecated utils function

3 years agoMerge pull request #19325 from colemanw/cssFix
Seamus Lee [Wed, 13 Jan 2021 23:03:49 +0000 (10:03 +1100)]
Merge pull request #19325 from colemanw/cssFix

Add explicit box-sizing to crm-flex-box style

3 years agoMerge pull request #19366 from eileenmcnaughton/import
Seamus Lee [Wed, 13 Jan 2021 23:00:04 +0000 (10:00 +1100)]
Merge pull request #19366 from eileenmcnaughton/import

[NFC] minor code cleanups

3 years agoMerge pull request #19380 from civicrm/5.34
Eileen McNaughton [Wed, 13 Jan 2021 22:58:13 +0000 (11:58 +1300)]
Merge pull request #19380 from civicrm/5.34

5.34

3 years agoMerge pull request #19377 from civicrm/bump_composer_compile_version
Tim Otten [Wed, 13 Jan 2021 21:19:23 +0000 (13:19 -0800)]
Merge pull request #19377 from civicrm/bump_composer_compile_version

REF Bump the composer-compile-plugin version

3 years agoMerge pull request #19378 from ahed-compucorp/Add-Ahed-to-contributors-file
Eileen McNaughton [Wed, 13 Jan 2021 19:32:19 +0000 (08:32 +1300)]
Merge pull request #19378 from ahed-compucorp/Add-Ahed-to-contributors-file

[NFC] Update contributor-key.yml with Ahed

3 years agoAdd Ahed to contributor-key.yml file
Ahed [Wed, 13 Jan 2021 10:19:58 +0000 (12:19 +0200)]
Add Ahed to contributor-key.yml file

3 years agoREF Bump the composer-compile-plugin version
Seamus Lee [Wed, 13 Jan 2021 05:38:18 +0000 (16:38 +1100)]
REF Bump the composer-compile-plugin version

3 years agoMerge pull request #19375 from civicrm/5.34
Eileen McNaughton [Tue, 12 Jan 2021 20:14:06 +0000 (09:14 +1300)]
Merge pull request #19375 from civicrm/5.34

5.34 to master

3 years agoMerge pull request #19374 from agh1/5.34.0-releasenotes-initial
Eileen McNaughton [Tue, 12 Jan 2021 20:13:30 +0000 (09:13 +1300)]
Merge pull request #19374 from agh1/5.34.0-releasenotes-initial

5.34.0 release notes initial run

3 years agoMerge pull request #19370 from eileenmcnaughton/cleanup2
colemanw [Tue, 12 Jan 2021 18:55:33 +0000 (13:55 -0500)]
Merge pull request #19370 from eileenmcnaughton/cleanup2

Use php to require an array

3 years agoMerge pull request #19367 from eileenmcnaughton/import2
colemanw [Tue, 12 Jan 2021 18:20:09 +0000 (13:20 -0500)]
Merge pull request #19367 from eileenmcnaughton/import2

[NFC] Minor code cleanup

3 years ago5.34.0 release notes: added boilerplate
Andrew Hunt [Tue, 12 Jan 2021 15:39:35 +0000 (10:39 -0500)]
5.34.0 release notes: added boilerplate

3 years ago5.34.0 release notes: raw from script
Andrew Hunt [Tue, 12 Jan 2021 15:32:18 +0000 (10:32 -0500)]
5.34.0 release notes: raw from script

3 years agoMerge pull request #19369 from eileenmcnaughton/cleanup
colemanw [Tue, 12 Jan 2021 13:52:22 +0000 (08:52 -0500)]
Merge pull request #19369 from eileenmcnaughton/cleanup

[REF] Remove function that is the same as parent

3 years agoUse php to require an array
eileen [Tue, 12 Jan 2021 05:45:23 +0000 (18:45 +1300)]
Use php to require an array

Removes is_array check in favour of php strict typing

3 years ago[REF] Remove function that is the same as parent
eileen [Tue, 12 Jan 2021 05:20:47 +0000 (18:20 +1300)]
[REF] Remove function that is the same as parent

3 years agoMerge pull request #19364 from civicrm/move_upgrade
Eileen McNaughton [Tue, 12 Jan 2021 02:52:51 +0000 (15:52 +1300)]
Merge pull request #19364 from civicrm/move_upgrade

[NFC] Move Upgrade for navgation from 5.34.alpha1 to 5.35.alpha1 as t…

3 years ago[NFC] Minor code cleanup
eileen [Tue, 12 Jan 2021 02:51:22 +0000 (15:51 +1300)]
[NFC] Minor code cleanup

3 years ago[NFC] minor code cleanups
eileen [Tue, 12 Jan 2021 02:42:13 +0000 (15:42 +1300)]
[NFC] minor code cleanups

3 years agoMove another deprecated utils function
eileen [Tue, 12 Jan 2021 02:20:39 +0000 (15:20 +1300)]
Move another deprecated utils function

Function is only called from one class, relocate there

3 years ago[NFC] Move Upgrade for navgation from 5.34.alpha1 to 5.35.alpha1 as the 5.34 RC has...
Seamus Lee [Tue, 12 Jan 2021 01:25:51 +0000 (12:25 +1100)]
[NFC] Move Upgrade for navgation from 5.34.alpha1 to 5.35.alpha1 as the 5.34 RC has been branched

3 years agoMerge pull request #19363 from seamuslee001/regen_generated
Eileen McNaughton [Tue, 12 Jan 2021 00:01:27 +0000 (13:01 +1300)]
Merge pull request #19363 from seamuslee001/regen_generated

(NFC) Regenerate civicrm_generated.mysql

3 years ago(NFC) Regenerate civicrm_generated.mysql
Seamus Lee [Mon, 11 Jan 2021 22:08:12 +0000 (09:08 +1100)]
(NFC) Regenerate civicrm_generated.mysql

3 years agoMerge pull request #19342 from alifrumin/mailmenu2
Eileen McNaughton [Mon, 11 Jan 2021 21:56:40 +0000 (10:56 +1300)]
Merge pull request #19342 from alifrumin/mailmenu2

Update permissions for "CiviCRM Admin Menu -> Mailings -> Message Templates" nav item

3 years agoMerge pull request #19362 from eileenmcnaughton/anet2
Eileen McNaughton [Mon, 11 Jan 2021 21:47:46 +0000 (10:47 +1300)]
Merge pull request #19362 from eileenmcnaughton/anet2

Set contribution_page_id from template contribution

3 years agoMerge pull request #19323 from seamuslee001/default_handler_exception
Eileen McNaughton [Mon, 11 Jan 2021 21:40:37 +0000 (10:40 +1300)]
Merge pull request #19323 from seamuslee001/default_handler_exception

REF Update CiviCRM default PEAR Error handling to be exception rather…

3 years agoMerge pull request #19361 from demeritcowboy/arrested-development
Seamus Lee [Mon, 11 Jan 2021 21:24:13 +0000 (08:24 +1100)]
Merge pull request #19361 from demeritcowboy/arrested-development

dev/core#2241 - Deprecate direct calls to isDevelopment()

3 years agoMerge pull request #19360 from agileware/CIVICRM-1638
Seamus Lee [Mon, 11 Jan 2021 20:41:45 +0000 (07:41 +1100)]
Merge pull request #19360 from agileware/CIVICRM-1638

When two contacts, Contact A and Contact B have the same email address, if Contact A is deleted then Contact B is incorrectly excluded from mailings, does not receive emails

3 years agoSet contribution_page_id from template contribution
eileen [Mon, 11 Jan 2021 20:19:56 +0000 (09:19 +1300)]
Set contribution_page_id from template contribution

This is tested in AuthorizeNetIPNTest::testIPNPaymentRecurNoReceipt

3 years agodeprecate direct calls to isDevelopment
demeritcowboy [Mon, 11 Jan 2021 16:35:03 +0000 (11:35 -0500)]
deprecate direct calls to isDevelopment

3 years agoAfform - use core flex styles
Coleman Watts [Mon, 11 Jan 2021 15:15:11 +0000 (10:15 -0500)]
Afform - use core flex styles

3 years agoAfform - refactor afForm directive to component
Coleman Watts [Mon, 11 Jan 2021 14:24:46 +0000 (09:24 -0500)]
Afform - refactor afForm directive to component

3 years agoAfform - Ref directives to components in their own files
Coleman Watts [Fri, 8 Jan 2021 23:31:51 +0000 (18:31 -0500)]
Afform - Ref directives to components in their own files

3 years agoAfform - Fix scanning for input types
Coleman Watts [Fri, 8 Jan 2021 20:20:59 +0000 (15:20 -0500)]
Afform - Fix scanning for input types

3 years agoAfform - Refactor elements as components & move to their own files
Coleman Watts [Fri, 8 Jan 2021 19:24:54 +0000 (14:24 -0500)]
Afform - Refactor elements as components & move to their own files

3 years agoAfform - Move components to their own files
Coleman Watts [Fri, 8 Jan 2021 00:20:20 +0000 (19:20 -0500)]
Afform - Move components to their own files

3 years agoAfform - Refactor icon picker to service
Coleman Watts [Thu, 7 Jan 2021 22:14:40 +0000 (17:14 -0500)]
Afform - Refactor icon picker to service

3 years agoAfform - Refactor functions to services, move a couple directives to files
Coleman Watts [Thu, 7 Jan 2021 21:00:46 +0000 (16:00 -0500)]
Afform - Refactor functions to services, move a couple directives to files

3 years agoAfform - Refactor afGuiEntity to a component
Coleman Watts [Thu, 7 Jan 2021 14:52:57 +0000 (09:52 -0500)]
Afform - Refactor afGuiEntity to a component

3 years agoAfform - Refactor afGuiEditor to a component and rename af files
Coleman Watts [Thu, 7 Jan 2021 02:36:04 +0000 (21:36 -0500)]
Afform - Refactor afGuiEditor to a component and rename af files

3 years agoAfform - fix link in breadcrumb
Coleman Watts [Wed, 6 Jan 2021 18:35:24 +0000 (13:35 -0500)]
Afform - fix link in breadcrumb

3 years agoAfform_admin - cleanup ts() calls for best-practices
Coleman Watts [Wed, 6 Jan 2021 18:17:38 +0000 (13:17 -0500)]
Afform_admin - cleanup ts() calls for best-practices

3 years agoRename afform_gui -> afform_admin
Coleman Watts [Wed, 6 Jan 2021 17:02:37 +0000 (12:02 -0500)]
Rename afform_gui -> afform_admin

3 years agoMerge pull request #19358 from colemanw/dashboardStatus
colemanw [Mon, 11 Jan 2021 13:46:27 +0000 (08:46 -0500)]
Merge pull request #19358 from colemanw/dashboardStatus

Dashboard: Improve status messages when moving/deleting dashlets

3 years agoSet version to 5.35.alpha1
CiviCRM [Mon, 11 Jan 2021 07:32:38 +0000 (07:32 +0000)]
Set version to 5.35.alpha1

3 years agoSet version to 5.34.beta1
CiviCRM [Mon, 11 Jan 2021 07:01:43 +0000 (07:01 +0000)]
Set version to 5.34.beta1

3 years agoMerge pull request #19359 from totten/master-dao-update
Tim Otten [Mon, 11 Jan 2021 06:38:47 +0000 (22:38 -0800)]
Merge pull request #19359 from totten/master-dao-update

Regenerate DAOs

3 years agoCIVICRM-1638 When two contacts, Contact A and Contact B have the same email address...
Justin Freeman [Mon, 11 Jan 2021 05:42:09 +0000 (16:42 +1100)]
CIVICRM-1638 When two contacts, Contact A and Contact B have the same email address, if Contact A is deleted then Contact B is incorrectly excluded from mailings, does not receive emails

3 years agoMailing Recipients - Update to match
Tim Otten [Mon, 11 Jan 2021 04:53:10 +0000 (20:53 -0800)]
Mailing Recipients - Update to match

This is a follow-up to https://github.com/civicrm/civicrm-core/pull/19351 which captures the
spelling fix ("Recipientses").

3 years agoRegenerate DAOs
Tim Otten [Mon, 11 Jan 2021 04:51:59 +0000 (20:51 -0800)]
Regenerate DAOs

This is a follow-up to https://github.com/civicrm/civicrm-core/pull/19351 to
reflect recent changes in some schema files.

3 years agoMerge pull request #19357 from totten/master-joomla
Tim Otten [Mon, 11 Jan 2021 03:37:54 +0000 (19:37 -0800)]
Merge pull request #19357 from totten/master-joomla

distmaker - Don't require dummy config file for building Joomla

3 years agoDashboard: Improve status messages when moving/deleting dashlets
Coleman Watts [Mon, 11 Jan 2021 03:06:12 +0000 (22:06 -0500)]
Dashboard: Improve status messages when moving/deleting dashlets

3 years ago(REF) distmaker - Simplify joomlaxml.php input-parsing with "??" notation
Tim Otten [Mon, 11 Jan 2021 00:37:16 +0000 (16:37 -0800)]
(REF) distmaker - Simplify joomlaxml.php input-parsing with "??" notation

Makes this much easier to read.

Honestly, I'm not sure it should even be checking $_SERVER like this --
$argv is probably enough, and I suspect that $_SERVER won't give the
expected values in most PHP environments.

3 years agodistmaker - Don't require dummy config file for building Joomla
Tim Otten [Mon, 11 Jan 2021 00:29:26 +0000 (16:29 -0800)]
distmaker - Don't require dummy config file for building Joomla

BEFORE: To run distmaker and produce Joomla ZIPs, you need to create a dummy settings file.
For example, this is how `cividist` does it:

https://github.com/civicrm/civicrm-buildkit/blob/v19.07.0/bin/cividist#L119-L121

It seems that is just a long-winded way of setting up the Civi classloader. (It wouldn't
make sense to use any other Civi services this is a pre-bootstrap environment.)

AFTER: The dummy file is neither needed nor used. We just get the classloader directly.

3 years agoMerge pull request #19356 from demeritcowboy/add-timeline-buttons-fix
Seamus Lee [Sun, 10 Jan 2021 21:41:02 +0000 (08:41 +1100)]
Merge pull request #19356 from demeritcowboy/add-timeline-buttons-fix

dev/core#2292 - Add Timeline dropdown on Manage Case not working after buttons UI changes

3 years agotimeline fix after buttons changes
demeritcowboy [Sun, 10 Jan 2021 15:05:39 +0000 (10:05 -0500)]
timeline fix after buttons changes

3 years agoMerge pull request #19355 from demeritcowboy/php74-more3
Seamus Lee [Sun, 10 Jan 2021 20:19:25 +0000 (07:19 +1100)]
Merge pull request #19355 from demeritcowboy/php74-more3

php74 compatibility - Backwards arguments to implode are deprecated

3 years agoMerge pull request #19069 from eileenmcnaughton/test
Monish Deb [Sun, 10 Jan 2021 16:26:58 +0000 (21:56 +0530)]
Merge pull request #19069 from eileenmcnaughton/test

Remove unreachable customGroup section in online event receipt

3 years agobackwards arguments are deprecated
demeritcowboy [Sun, 10 Jan 2021 12:26:41 +0000 (07:26 -0500)]
backwards arguments are deprecated

3 years agoMerge pull request #17889 from mattwire/freezerecur
Eileen McNaughton [Sun, 10 Jan 2021 05:31:17 +0000 (18:31 +1300)]
Merge pull request #17889 from mattwire/freezerecur

Disable frequency/interval fields if not required on backend contribution forms

3 years agoMerge pull request #19351 from mlutfy/fixSoftLoc
Eileen McNaughton [Sun, 10 Jan 2021 03:30:41 +0000 (16:30 +1300)]
Merge pull request #19351 from mlutfy/fixSoftLoc

[NFC] Fix Contribution Soft Credit entity translation

3 years agoMerge pull request #19354 from demeritcowboy/php74-more-more
Seamus Lee [Sat, 9 Jan 2021 20:11:20 +0000 (07:11 +1100)]
Merge pull request #19354 from demeritcowboy/php74-more-more

php 7.4 compatiblity - Clarify order for nested ternary operator

3 years agoMerge pull request #19353 from demeritcowboy/php74-more
colemanw [Sat, 9 Jan 2021 19:11:48 +0000 (14:11 -0500)]
Merge pull request #19353 from demeritcowboy/php74-more

php 7.4 compatibility - more curly braces

3 years agophp 7.4 compatiblity - clarify order
demeritcowboy [Sat, 9 Jan 2021 17:23:47 +0000 (12:23 -0500)]
php 7.4 compatiblity - clarify order

3 years agophp 7.4 compatibility
demeritcowboy [Sat, 9 Jan 2021 17:04:11 +0000 (12:04 -0500)]
php 7.4 compatibility

3 years agoMerge pull request #19349 from totten/master-crypt-setup
Seamus Lee [Sat, 9 Jan 2021 00:56:00 +0000 (11:56 +1100)]
Merge pull request #19349 from totten/master-crypt-setup

dev/core#2258 - Define CIVICRM_CRED_KEYS during installation

3 years agoMerge pull request #19350 from demeritcowboy/php74-more
Seamus Lee [Fri, 8 Jan 2021 20:06:55 +0000 (07:06 +1100)]
Merge pull request #19350 from demeritcowboy/php74-more

php 7.4 compatibility - squiggly brackets

3 years agoupgrader script
Alice Frumin [Thu, 7 Jan 2021 18:24:13 +0000 (13:24 -0500)]
upgrader script

3 years agoFix Contribution Soft Credit entity translation
Mathieu Lutfy [Fri, 8 Jan 2021 14:12:32 +0000 (09:12 -0500)]
Fix Contribution Soft Credit entity translation

3 years agodeprecated in php 7.4
demeritcowboy [Fri, 8 Jan 2021 13:15:25 +0000 (08:15 -0500)]
deprecated in php 7.4

3 years agodev/core#2258 - Setup API should define %%credKeys%%
Tim Otten [Fri, 8 Jan 2021 11:13:05 +0000 (03:13 -0800)]
dev/core#2258 - Setup API should define %%credKeys%%

This updates the the civicrm-setup API to generate CIVICRM_CRED_KEYS (%%credKeys%%) on
t new installations (based on web-installer or cv installer).

3 years agodev/core#2258 - Add %%credKeys%% to civicrm.settings.php.template
Tim Otten [Fri, 8 Jan 2021 11:08:01 +0000 (03:08 -0800)]
dev/core#2258 - Add %%credKeys%% to civicrm.settings.php.template

There are multiple installers distributed across different git repos, and it
make take a bit before they're all updated.  The convoluted ternary
expression ensures that CIVICRM_CRED_KEYS is well-formed regardless
of whether the particular installer knows how to set %%credKeys%%.

3 years agoMerge pull request #19239 from totten/master-crypt-smtp
Tim Otten [Fri, 8 Jan 2021 11:07:23 +0000 (03:07 -0800)]
Merge pull request #19239 from totten/master-crypt-smtp

dev/core#2258 - Read+write SMTP password using 'crypto.token'

3 years ago(dev/core#2258) SMTP Password - If CRED_KEYS is defined during upgrade, use it
Tim Otten [Fri, 8 Jan 2021 08:22:52 +0000 (00:22 -0800)]
(dev/core#2258) SMTP Password - If CRED_KEYS is defined during upgrade, use it

3 years ago(REF) CryptoToken - Allow optional injection of $registry
Tim Otten [Fri, 8 Jan 2021 08:10:17 +0000 (00:10 -0800)]
(REF) CryptoToken - Allow optional injection of $registry

3 years ago(dev/core#2258) SMTP Password - Support key rotation
Tim Otten [Mon, 21 Dec 2020 10:12:59 +0000 (02:12 -0800)]
(dev/core#2258) SMTP Password - Support key rotation

3 years ago(dev/core#2258) SMTP Password - Read+write via 'crypto.token'
Tim Otten [Fri, 18 Dec 2020 23:55:02 +0000 (15:55 -0800)]
(dev/core#2258) SMTP Password - Read+write via 'crypto.token'

Before
------

The format of the 'smtpPassword' subfield depends on the available PECL extensions:

* The field is ciphertext... if PHP has `mcrypt` enabled
* The field is plaintext... if PHP has `mcrypt` disabled

After
-----

The format of the `smtpPassword` subfield is specified by `crypto.token` which means:

* The field is ciphertext... if it begins with `chr(2)`
* The field is plaintext... if it begins with any printable character

3 years ago(dev/core#2258) SMTP Password - Remove old encryption during upgrade
Tim Otten [Fri, 18 Dec 2020 23:51:50 +0000 (15:51 -0800)]
(dev/core#2258) SMTP Password - Remove old encryption during upgrade