Eileen McNaughton [Wed, 7 Sep 2022 03:03:42 +0000 (15:03 +1200)]
Merge pull request #24474 from eileenmcnaughton/import_dupe_fn
[REF] Extract rule-loading function
Eileen McNaughton [Wed, 7 Sep 2022 03:03:30 +0000 (15:03 +1200)]
Merge pull request #24473 from eileenmcnaughton/import_const
Follow up code simplification - no need to map 'Individual' to 'Individual'
Eileen McNaughton [Tue, 6 Sep 2022 23:25:13 +0000 (11:25 +1200)]
[REF] Extract rule-loading function
This makes it possible to load multiple dedupe rules at once
Eileen McNaughton [Tue, 6 Sep 2022 23:20:14 +0000 (11:20 +1200)]
Follow up code simplification - no need to map 'Individual' to 'Individual'
Eileen McNaughton [Tue, 6 Sep 2022 10:45:34 +0000 (22:45 +1200)]
Merge pull request #24464 from eileenmcnaughton/saved_mapping_contact
[Ref] [Import] Simplify form event MapField (Contact)
Eileen McNaughton [Tue, 6 Sep 2022 07:22:44 +0000 (19:22 +1200)]
Merge pull request #24465 from eileenmcnaughton/import_const
Remove silly constants for Contact Types (import)
Eileen McNaughton [Tue, 6 Sep 2022 00:01:52 +0000 (12:01 +1200)]
[Ref] [Import] Simplify form event MapField (Contact)
Seamus Lee [Tue, 6 Sep 2022 06:19:11 +0000 (16:19 +1000)]
Merge pull request #24463 from eileenmcnaughton/saved_mapping
[Ref] [Import] Simplify form event MapField to use shared rule (Participant)
Eileen McNaughton [Tue, 6 Sep 2022 06:17:25 +0000 (18:17 +1200)]
Merge pull request #24462 from seamuslee001/remove_setting_api_civimail
[REF] Remove calls to settings from angularjs to php layer to assist …
Tim Otten [Tue, 6 Sep 2022 05:36:08 +0000 (22:36 -0700)]
Merge pull request #24396 from eileenmcnaughton/run_back
Fix import classes to call `runAllInteractive()` rather than `runAllViaWeb` (which in practice currently just calls `runAllViaWeb` )
Eileen McNaughton [Tue, 6 Sep 2022 02:35:39 +0000 (14:35 +1200)]
Merge pull request #24461 from eileenmcnaughton/import_meta
Re-run regen
Eileen McNaughton [Tue, 6 Sep 2022 01:16:24 +0000 (13:16 +1200)]
Remove reference to constants in dedupe rule ajax (which is yuck)
Seamus Lee [Mon, 5 Sep 2022 22:59:07 +0000 (08:59 +1000)]
[REF] Remove calls to settings from angularjs to php layer to assist with less permissioned users using civimail
Eileen McNaughton [Tue, 6 Sep 2022 00:29:19 +0000 (12:29 +1200)]
Remove silly constants for Contact Types (import)
colemanw [Tue, 6 Sep 2022 00:08:18 +0000 (20:08 -0400)]
Merge pull request #24429 from eileenmcnaughton/field_dep
Mark some more fields deprecated or readonly
Eileen McNaughton [Mon, 5 Sep 2022 23:54:58 +0000 (11:54 +1200)]
[Ref] [Import] Simplify form event MapField to use shared rule
Seamus Lee [Mon, 5 Sep 2022 23:47:03 +0000 (09:47 +1000)]
Merge pull request #24304 from mattwire/participantcontacthook
dev/core#3778 Add code hook to set civicrm_participant.created_id
Eileen McNaughton [Mon, 5 Sep 2022 22:40:51 +0000 (10:40 +1200)]
Run regen
Eileen McNaughton [Mon, 5 Sep 2022 22:35:39 +0000 (10:35 +1200)]
Merge pull request #24444 from totten/master-lang-list
Languages - Dropdown lists should reflect supported languages
colemanw [Mon, 5 Sep 2022 16:01:26 +0000 (12:01 -0400)]
Merge pull request #23604 from colemanw/afformValidate
Afform - Implement client-side validation of required fields
colemanw [Mon, 5 Sep 2022 13:38:50 +0000 (09:38 -0400)]
Merge pull request #24441 from eileenmcnaughton/import_meta
Fix Import metadata to use apiv4 for contact on contribution imports
Eileen McNaughton [Mon, 5 Sep 2022 07:15:55 +0000 (19:15 +1200)]
Merge pull request #24427 from braders/no-contributions-warning
Stop PHP warning on installations with no contributions
Eileen McNaughton [Thu, 1 Sep 2022 02:38:13 +0000 (14:38 +1200)]
Switch to api metadata for contact on non-contact imports
This is kinda 'safe' in that these imports only support non-unique contact
fields
Eileen McNaughton [Mon, 5 Sep 2022 02:14:17 +0000 (14:14 +1200)]
Fix contribution import mapping validation, add test
Eileen McNaughton [Mon, 5 Sep 2022 06:36:17 +0000 (18:36 +1200)]
Merge pull request #24453 from seamuslee001/unit_test_reply
[NFC] Add in Unit test to test domain token replacement in Reply process
Seamus Lee [Mon, 5 Sep 2022 00:08:56 +0000 (10:08 +1000)]
[NFC] Add in Unit test to test domain token replacement in Reply process
Check for do not reply and also from email and to email
Eileen McNaughton [Mon, 5 Sep 2022 02:13:39 +0000 (14:13 +1200)]
Add test for Mapping form validation, contribution import
Eileen McNaughton [Fri, 2 Sep 2022 02:35:23 +0000 (14:35 +1200)]
Remove soft credit validation
It is not possible in the UI to deselect the soft-credit-field field so
let's not validate
Eileen McNaughton [Sun, 4 Sep 2022 21:44:47 +0000 (09:44 +1200)]
Merge pull request #24452 from totten/master-queue-stats
CRM_Queue_Queue - Add 'getStatistic($name)'. Deprecate 'numberOfItems()'
Seamus Lee [Sat, 3 Sep 2022 22:51:08 +0000 (08:51 +1000)]
Merge pull request #24442 from eileenmcnaughton/depp
Increase the deprecation on some unused functions
colemanw [Sat, 3 Sep 2022 14:11:20 +0000 (10:11 -0400)]
Merge pull request #24451 from colemanw/fixSearchDateRangeFilters
Afform - Fix date range filters for search displays
Tim Otten [Sat, 3 Sep 2022 05:16:39 +0000 (22:16 -0700)]
(REF) UserJob - Switch numberOfItems to getStatistic()
Tim Otten [Sat, 3 Sep 2022 04:33:58 +0000 (21:33 -0700)]
(REF) Update queue tests to use getStatistics()
Tim Otten [Sat, 3 Sep 2022 01:55:52 +0000 (18:55 -0700)]
CRM_Queue_Queue - Add 'getStatistic($name)'. Deprecate 'numberOfItems()'
Should `numberOfItems()` tell you the _total_ number of items -- or the
number of _ready_ items? Trick question. They can tell you different
things:
* When implementing a task-worker (which should start/stop based
on available tasks), you'd use _ready_ items.
* When implementing `existsQueue()` (which tells if you the queue
has anything at all), you'd use _total_ items.
This trick-question is why different implementations have computed
`numberOfItems()` in different ways.
This patch resolves the trick-question by deprecating `numberOfItems()`
and replacing it with `getStatistic($name)`.
Coleman Watts [Sat, 3 Sep 2022 02:58:29 +0000 (22:58 -0400)]
Afform - Fix setting default required value
Coleman Watts [Thu, 26 May 2022 18:27:03 +0000 (14:27 -0400)]
Afform - Implement client-side validation of required fields
Coleman Watts [Sat, 3 Sep 2022 02:38:10 +0000 (22:38 -0400)]
Afform - Fix date range filters for search displays
Fixes dev/core#3690
Eileen McNaughton [Thu, 1 Sep 2022 23:32:14 +0000 (11:32 +1200)]
Imcrease the deprecation on some unused functions
Eileen McNaughton [Mon, 29 Aug 2022 20:55:24 +0000 (08:55 +1200)]
Fix queue runner not progressing
demeritcowboy [Fri, 2 Sep 2022 15:48:28 +0000 (11:48 -0400)]
Merge pull request #24447 from braders/sprintf-fix
(NFC) Fix sprintf syntax
demeritcowboy [Fri, 2 Sep 2022 15:31:07 +0000 (11:31 -0400)]
Merge pull request #24421 from artfulrobot/dev-core/3823
Improve scheduled reminder form labels. Resolves issue core/3823
Bradley Taylor [Fri, 2 Sep 2022 12:33:22 +0000 (13:33 +0100)]
(NFC) fix sprintf syntax
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
Tim Otten [Fri, 2 Sep 2022 01:31:38 +0000 (18:31 -0700)]
message_admin - Re-enable single-language display for single-language deployments
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
Tim Otten [Fri, 2 Sep 2022 00:55:02 +0000 (17:55 -0700)]
message_admin - Filter language list (depending on `partial_locales` etc)
Tim Otten [Tue, 30 Aug 2022 01:48:22 +0000 (18:48 -0700)]
APIv4 $languages - Adapt based on 'partial_locales' setting
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
Eileen McNaughton [Wed, 31 Aug 2022 21:42:20 +0000 (09:42 +1200)]
Mark some more fields deprecated or readonly
Bradley Taylor [Wed, 31 Aug 2022 16:33:04 +0000 (17:33 +0100)]
Stop PHP warning on installations with no contributions
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
Rich Lott / Artful Robot [Wed, 31 Aug 2022 06:45:14 +0000 (07:45 +0100)]
Improve scheduled reminder form labels. Resolves issue core/3823
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