Eileen McNaughton [Fri, 2 Sep 2022 04:03:25 +0000 (16:03 +1200)]
Merge pull request #24437 from colemanw/deprecatedMgdFn
[REF] ManagedEntities - Move deprecated function
demeritcowboy [Fri, 2 Sep 2022 02:58:07 +0000 (22:58 -0400)]
Merge pull request #24316 from eileenmcnaughton/email_greeting
Use preferred `{contact.email_greeting_display}` token over deprecated `{contact.email_greeting}` in ALL templates
Eileen McNaughton [Fri, 2 Sep 2022 02:39:19 +0000 (14:39 +1200)]
Merge pull request #24235 from masetto/welcome_tokens
Add support for Contact tokens in welcome email using TokenProcessor
Eileen McNaughton [Fri, 2 Sep 2022 02:14:54 +0000 (14:14 +1200)]
Merge pull request #24443 from eileenmcnaughton/depped
Remove function after two years of noisy deprecation
Coleman Watts [Thu, 1 Sep 2022 15:24:21 +0000 (11:24 -0400)]
ManagedEntities - Move deprecated function
Eileen McNaughton [Fri, 2 Sep 2022 01:09:48 +0000 (13:09 +1200)]
Merge pull request #24174 from totten/master-lang
Message Templates - Allow rendering & previewing of translated messages
Eileen McNaughton [Fri, 2 Sep 2022 01:09:04 +0000 (13:09 +1200)]
Merge pull request #24433 from eileenmcnaughton/required_checker
REF] Standardise validation of mapped fields in imports, fix over-zealous requirements when matching on trxn_id, invoice_id for update
Eileen McNaughton [Thu, 1 Sep 2022 23:45:32 +0000 (11:45 +1200)]
Remove function after two years of noisy deprecation
Tim Otten [Thu, 1 Sep 2022 23:16:33 +0000 (16:16 -0700)]
Merge pull request #24438 from braders/3833-downloader
dev/core#3833 Update CRM_Extension_Downloader to not use dynamic properties
Tim Otten [Thu, 1 Sep 2022 23:13:43 +0000 (16:13 -0700)]
Merge pull request #24435 from colemanw/managedDelete
ManagedEntity - Ensure managed record is consistently deleted
Eileen McNaughton [Thu, 1 Sep 2022 22:50:17 +0000 (10:50 +1200)]
Merge pull request #24434 from demeritcowboy/invoice-crash
dev/financial#208 - Fix crash for invoice button
Eileen McNaughton [Thu, 1 Sep 2022 02:50:09 +0000 (14:50 +1200)]
[REF] Standardise validation of mapped fields in imports
Tim Otten [Thu, 1 Sep 2022 21:54:16 +0000 (14:54 -0700)]
Merge pull request #24425 from braders/remove-method-getActionAttribute
Remove method getActionAttribute
Eileen McNaughton [Thu, 1 Sep 2022 21:52:35 +0000 (09:52 +1200)]
Merge pull request #24436 from braders/core-3831
dev/core#3831 Deprecated string interpolation
Seamus Lee [Thu, 1 Sep 2022 21:49:33 +0000 (07:49 +1000)]
Merge pull request #24440 from braders/3833-runner
dev/core#3833 Update CRM_Extension_Downloader to not use dynamic properties
Tim Otten [Thu, 1 Sep 2022 21:49:17 +0000 (14:49 -0700)]
Merge pull request #24394 from eileenmcnaughton/user_job_delete
When updating userJob status to match queue status skip permission check
Eileen McNaughton [Thu, 1 Sep 2022 21:46:12 +0000 (09:46 +1200)]
Merge pull request #24439 from braders/financialitem-add-docblock-fix
Fix PHPDoc comment for CRM_Financial_BAO_FinancialItem::add
Eileen McNaughton [Thu, 1 Sep 2022 21:32:00 +0000 (09:32 +1200)]
Fix UI bug
demeritcowboy [Thu, 1 Sep 2022 12:53:15 +0000 (08:53 -0400)]
fix crash for invoice button
Bradley Taylor [Thu, 1 Sep 2022 18:57:30 +0000 (19:57 +0100)]
Define CRM_Queue_Runner::lastTaskTitle before it is used, so it is not treated as a dynamic property
Bradley Taylor [Thu, 1 Sep 2022 18:45:55 +0000 (19:45 +0100)]
Fix PHPDoc comment for CRM_Financial_BAO_FinancialItem::add
Bradley Taylor [Thu, 1 Sep 2022 17:59:08 +0000 (18:59 +0100)]
Update CRM_Extension_Downloader to not use dynamic properties
Bradley Taylor [Thu, 1 Sep 2022 15:05:48 +0000 (16:05 +0100)]
core/3831 Deprecated string interpolation
Coleman Watts [Thu, 1 Sep 2022 14:01:57 +0000 (10:01 -0400)]
ManagedEntity - Ensure managed record is consistently deleted
Tim Otten [Thu, 18 Aug 2022 10:29:01 +0000 (03:29 -0700)]
MessageTemplateTest - Rearrange with data-provider. Add more tests.
Tim Otten [Mon, 8 Aug 2022 09:05:12 +0000 (02:05 -0700)]
(Update) Translations - if a message_template has been translated then get/render the translated version
* Updates for APIv4 calls
* Set `$language` and `#ranslationMode()` instead of `$preferredLanguage`
* Read 'actual_language' instead of `getTranslationLanguage()`
* Updates for tracking global locale properties
* Use `$loacleObj->moneyFormat` instead of `$GLOBALS['moneyFormatLocale']` and `IGNORE_SEPARATOR_CONFIG`
* Use `$tokenContext['locale']` instead of `$GLOBALS['moneyFormatLocale']` and `IGNORE_SEPARATOR_CONFIG`
* Split `testRenderTranslatedTemplate()` in two (for different configurations)
Eileen McNaughton [Wed, 22 Jun 2022 03:29:27 +0000 (15:29 +1200)]
Pass language into msg_admin api calls
Eileen McNaughton [Sun, 28 Aug 2022 23:26:50 +0000 (16:26 -0700)]
Translation BAO - Minor strictness cleanups
Eileen McNaughton [Tue, 28 Jun 2022 04:39:07 +0000 (21:39 -0700)]
Translations - if a message_template has been translated then get/render the translated version
Eileen McNaughton [Tue, 28 Jun 2022 04:35:53 +0000 (21:35 -0700)]
APIv4 - Add generic 'language', 'translationLanguage' to all APIs
Move hook_civicrm_translateFields from message_admin to core
Move hook_civicrm_translateFields from message_admin to core
m
Tim Otten [Mon, 8 Aug 2022 06:14:39 +0000 (23:14 -0700)]
(REF) Move test for `$translationMode` to its own class
The functionality is bigger than `MessageTemplate`, and the test is fairly long.
Tim Otten [Fri, 5 Aug 2022 10:31:12 +0000 (03:31 -0700)]
APIv4 - Implement option` $translationMode` via TranslationGetWrapper
Tim Otten [Fri, 5 Aug 2022 10:30:39 +0000 (03:30 -0700)]
APIv4 - Declare option `$translationMode` (for DAOGetAction)
Eileen McNaughton [Thu, 1 Sep 2022 05:31:55 +0000 (17:31 +1200)]
Merge pull request #24430 from eileenmcnaughton/lang
APIv4 - Promote option `$language` from DAOActionTrait to AbstractAction
Tim Otten [Mon, 8 Aug 2022 09:08:28 +0000 (02:08 -0700)]
(REF) AbstractActionFunctionTest - Use a different placeholder/example
The `$language` field was promoted to the top-level. Use `$translationMode`
which (like the old language option) is only valid on some actions.
Tim Otten [Fri, 5 Aug 2022 10:22:58 +0000 (03:22 -0700)]
APIv4 - Promote option `$language` from DAOActionTrait to AbstractAction
colemanw [Thu, 1 Sep 2022 02:25:23 +0000 (22:25 -0400)]
Merge pull request #24426 from colemanw/pmf
Deprecate preferred_mail_format column
colemanw [Thu, 1 Sep 2022 00:39:11 +0000 (20:39 -0400)]
Merge pull request #24419 from eileenmcnaughton/import_note
Contribution import - test notes, cleanup notes, fix regression found in test writing
Coleman Watts [Wed, 31 Aug 2022 16:16:19 +0000 (12:16 -0400)]
Deprecate preferred_mail_format column
colemanw [Wed, 31 Aug 2022 16:13:14 +0000 (12:13 -0400)]
Merge pull request #24417 from eileenmcnaughton/read_only
Mark `contact.created date` read-only in schema
Bradley Taylor [Wed, 31 Aug 2022 15:38:38 +0000 (16:38 +0100)]
Remove method getActionAttribute
Samuele Masetto [Wed, 31 Aug 2022 15:24:11 +0000 (17:24 +0200)]
now Automated Messages call alterMailContent hook
demeritcowboy [Wed, 31 Aug 2022 13:53:57 +0000 (09:53 -0400)]
Merge pull request #24424 from braders/missing-phpdoc-types
Add missing PHPDoc types
demeritcowboy [Wed, 31 Aug 2022 13:53:49 +0000 (09:53 -0400)]
Merge pull request #24422 from braders/remove-updateDisplayNames
Remove method updateDisplayNames
demeritcowboy [Wed, 31 Aug 2022 13:53:39 +0000 (09:53 -0400)]
Merge pull request #24423 from braders/check-component-source-docblock-fix
Docblock fix - findOrphanedFiles method
Samuele Masetto [Wed, 31 Aug 2022 13:31:19 +0000 (15:31 +0200)]
Merge branch 'master' into welcome_tokens
Bradley Taylor [Wed, 31 Aug 2022 11:01:12 +0000 (12:01 +0100)]
Add missing PHPDoc types
Bradley Taylor [Wed, 31 Aug 2022 10:57:06 +0000 (11:57 +0100)]
Docblock fix - findOrphanedFiles method
Bradley Taylor [Wed, 31 Aug 2022 10:28:30 +0000 (11:28 +0100)]
Remove method updateDisplayNames
Eileen McNaughton [Tue, 30 Aug 2022 19:51:47 +0000 (07:51 +1200)]
Contribution import - test notes, cleanup notes, fix regression found in test writing
demeritcowboy [Tue, 30 Aug 2022 21:27:32 +0000 (17:27 -0400)]
Merge pull request #24321 from eileenmcnaughton/inv_preview
Fix contribution online receipt to be, somewhat, previewable
Tim Otten [Tue, 30 Aug 2022 19:43:20 +0000 (12:43 -0700)]
Merge pull request #24133 from demeritcowboy/symfony-cmf-3
dev/drupal#176 - Make loadBootstrap work in drupal 10, e.g. to make `cv` work
Eileen McNaughton [Tue, 30 Aug 2022 18:58:36 +0000 (06:58 +1200)]
Merge pull request #24337 from colemanw/fixGroupAclCheck
API - Standardize group ACL checks
demeritcowboy [Tue, 30 Aug 2022 18:18:44 +0000 (14:18 -0400)]
Merge pull request #24418 from mattwire/advancedevents
REF Code cleanup for event configuration extracted from advancedevents extension
Matthew Wire [Tue, 30 Aug 2022 12:50:42 +0000 (13:50 +0100)]
Code cleanup for event configuration extracted from advancedevents extension
Eileen McNaughton [Tue, 30 Aug 2022 11:05:25 +0000 (23:05 +1200)]
Mark created date read-only in schema
Eileen McNaughton [Tue, 30 Aug 2022 06:33:08 +0000 (18:33 +1200)]
Merge pull request #24410 from eileenmcnaughton/import_cont
Remove always-true if
Eileen McNaughton [Tue, 30 Aug 2022 02:31:21 +0000 (14:31 +1200)]
Merge pull request #24412 from eileenmcnaughton/cont_form
Remove obsolete param from duplicated function
Eileen McNaughton [Mon, 29 Aug 2022 22:33:36 +0000 (10:33 +1200)]
Remove always-true if
Eileen McNaughton [Tue, 30 Aug 2022 01:01:17 +0000 (13:01 +1200)]
Merge pull request #24411 from eileenmcnaughton/import_pledge
Remove unreachable code
Eileen McNaughton [Tue, 30 Aug 2022 00:05:40 +0000 (12:05 +1200)]
Merge pull request #24389 from eileenmcnaughton/import_form_rule_a
Use shared parent formRule in custom import api
Eileen McNaughton [Tue, 30 Aug 2022 00:05:21 +0000 (12:05 +1200)]
Merge pull request #24388 from eileenmcnaughton/import_form_rule
Minor code cleaup - the form rule is in the parent function
Eileen McNaughton [Mon, 29 Aug 2022 23:22:56 +0000 (11:22 +1200)]
Remove check for pledge block id from back-office form
Eileen McNaughton [Mon, 29 Aug 2022 23:19:08 +0000 (11:19 +1200)]
Remove obsolete param from duplicated function
Eileen McNaughton [Mon, 29 Aug 2022 22:41:05 +0000 (10:41 +1200)]
Remove unreachable code
Eileen McNaughton [Mon, 29 Aug 2022 22:27:13 +0000 (10:27 +1200)]
Merge pull request #24402 from eileenmcnaughton/import_cont
Update Contribution import to use new v4 dedupe lookup
Eileen McNaughton [Mon, 29 Aug 2022 05:10:44 +0000 (17:10 +1200)]
Update Contribution import to use new v4 dedupe lookup
Eileen McNaughton [Mon, 29 Aug 2022 22:24:37 +0000 (10:24 +1200)]
Merge pull request #24401 from eileenmcnaughton/member_import
Switch Contact import to use new v4 dedupe lookup
Eileen McNaughton [Mon, 29 Aug 2022 19:34:00 +0000 (07:34 +1200)]
Merge pull request #24407 from braders/remove-misleading-comment
Remove misleading comment.
Eileen McNaughton [Mon, 29 Aug 2022 03:42:42 +0000 (15:42 +1200)]
Switch Contact import to use new v4 dedupe lookup
Eileen McNaughton [Sat, 27 Aug 2022 06:06:15 +0000 (18:06 +1200)]
Add tests for contact lookup
Eileen McNaughton [Mon, 29 Aug 2022 19:32:05 +0000 (07:32 +1200)]
Merge pull request #24384 from colemanw/api4Dedupe2
APIv4 - Add contact.getDuplicates action
Bradley Taylor [Mon, 29 Aug 2022 16:45:02 +0000 (17:45 +0100)]
Remove misleading comment.
Passing false to authenticateKey means execution doesn't actually abort,
and so the 'Failed to authenticate key' error is actually reached.
demeritcowboy [Mon, 29 Aug 2022 16:03:11 +0000 (12:03 -0400)]
Merge pull request #24406 from braders/invalid-eventid-notice
Stop PHP notice when accessing invalid event ID
demeritcowboy [Mon, 29 Aug 2022 13:12:49 +0000 (09:12 -0400)]
Merge pull request #24404 from braders/mailing_browse_tidyup
Tidy up whereClause method of mailing browse
demeritcowboy [Mon, 29 Aug 2022 13:12:23 +0000 (09:12 -0400)]
Merge pull request #24405 from braders/phpdoc-fixes2
PHPDoc comment fixes
Bradley Taylor [Mon, 29 Aug 2022 10:49:02 +0000 (11:49 +0100)]
Stop PHP notice when accessing invalid event ID
Bradley Taylor [Mon, 29 Aug 2022 10:30:22 +0000 (11:30 +0100)]
PHPDoc comment fixes
Bradley Taylor [Mon, 29 Aug 2022 10:09:32 +0000 (11:09 +0100)]
Tidy up whereClause method of mailing browse
Eileen McNaughton [Mon, 29 Aug 2022 09:23:51 +0000 (21:23 +1200)]
Merge pull request #24403 from totten/master-setlocale
(dev/translation#78) Allow partial/mixed locales. Define global `Locale` object.
Tim Otten [Mon, 29 Aug 2022 05:21:37 +0000 (22:21 -0700)]
(dev/translation#78) Locale::negotiate() - Implement true support for partial locales - More tests
Tim Otten [Mon, 29 Aug 2022 05:31:08 +0000 (22:31 -0700)]
(dev/translation#78) Civi\Core\Format - Abide by 'partial_locales' and `$locale->moneyFormat` - Fixup
Tim Otten [Thu, 25 Aug 2022 04:55:20 +0000 (21:55 -0700)]
(dev/translation#78) Locale::negotiate() - Implement true support for partial locales
Eileen McNaughton [Sat, 20 Aug 2022 01:44:29 +0000 (13:44 +1200)]
(dev/translation#78) Default nominal to expected type (string
Tim Otten [Mon, 8 Aug 2022 09:41:26 +0000 (02:41 -0700)]
(dev/translation#78) TokenProcessorTest - Test with and without 'partial_locales' support
Tim Otten [Mon, 8 Aug 2022 08:25:37 +0000 (01:25 -0700)]
(dev/translation#78) Civi\Core\Format - Abide by 'partial_locales' and `$locale->moneyFormat`
Tim Otten [Fri, 5 Aug 2022 10:02:04 +0000 (03:02 -0700)]
(dev/translation#78) I18nSubscriber - Allow partial/negotiated locales
Definitions:
* A fully-supported locale is valid in all localization services (eg
`ts()`, `Civi::format()`, `$dbLocale`).
* A "negotiated" or "mixed" locale can be used for communication, but
it is not fully supported by all other layers. Consequently, it
requires some kind of fallback or substitution.
Before:
* When an API call requests an alternate language (v3's `option.language` or
v4's `setLanguage()`), it only activates fully-supported locales.
* Specifically, it validates against the multilingual configuration -- those
are fully supported locales.) It otherwise ignores the alternate language.
After:
* When an API call requests an alternate language, it cacn activate
fully-supported locales as well as mixed locales.
* Specifically, it asks `Locale::negotiate(...)` to examine the local
configuration/resources and determine the effective locale.
Eileen McNaughton [Mon, 29 Aug 2022 02:56:00 +0000 (14:56 +1200)]
Merge pull request #24400 from totten/master-locale-pre
(REF) Tests - Misc updates in prepartion for l10n updates
Eileen McNaughton [Mon, 29 Aug 2022 00:37:34 +0000 (12:37 +1200)]
Merge pull request #24399 from totten/master-queue-ts
QueueItem - Convert DATETIME to TIMESTAMP
Tim Otten [Fri, 5 Aug 2022 10:00:29 +0000 (03:00 -0700)]
(dev/translation#78) When setting locale, track it as a `Civi\Core\Locale` instance
Tim Otten [Sun, 7 Aug 2022 23:56:51 +0000 (16:56 -0700)]
(dev/translation#78) Settings - Define partial_locales. Display on admin UI.
Tim Otten [Sun, 7 Aug 2022 23:56:14 +0000 (16:56 -0700)]
AutoClean - Add helper to temporarily modify settings
Tim Otten [Thu, 18 Aug 2022 08:10:17 +0000 (01:10 -0700)]
LocaleTestTrait - When activating 2+ locales, set languageLimit properly
Tim Otten [Fri, 26 Aug 2022 00:02:50 +0000 (17:02 -0700)]
(NFC) ContributionTest - Fix a couple more `@group`s. Fix misplaced `@group`
Tim Otten [Fri, 26 Aug 2022 20:40:11 +0000 (13:40 -0700)]
CiviUnitTestCase - Clear locale vars between all tests
Tim Otten [Sun, 28 Aug 2022 23:10:23 +0000 (16:10 -0700)]
Merge pull request #24387 from eileenmcnaughton/import_test
Minor import test cleanup
Tim Otten [Sun, 28 Aug 2022 22:27:47 +0000 (15:27 -0700)]
Merge pull request #24397 from eileenmcnaughton/run_poof
Minor readability cleanup - remove code comments about removed item, comments
Tim Otten [Sat, 27 Aug 2022 05:32:46 +0000 (22:32 -0700)]
Upgrade - Convert civicrm_queue_item (DATETIME=>TIMESTAMP; 5.54.alpha1)
Tim Otten [Sat, 27 Aug 2022 00:40:01 +0000 (17:40 -0700)]
QueueItem - Mark submit_time and release_time as TIMESTAMP
Eileen McNaughton [Sat, 27 Aug 2022 05:49:15 +0000 (17:49 +1200)]
Merge pull request #24374 from eileenmcnaughton/import_unique_cont_better
[Ref] Import cleanup code that looks up contribution in import