Eileen McNaughton [Thu, 22 Jul 2021 21:53:05 +0000 (09:53 +1200)]
Merge pull request #20934 from demeritcowboy/lybunt-param
[NFC] Typo in parameter for lybunt test
demeritcowboy [Thu, 22 Jul 2021 14:58:20 +0000 (10:58 -0400)]
Merge pull request #20926 from mlutfy/fixInclusiveTaxTs
Fix 'includes tax' translation for PriceSet Checkbox fields
demeritcowboy [Thu, 22 Jul 2021 13:50:43 +0000 (09:50 -0400)]
incorrect parameter
demeritcowboy [Thu, 22 Jul 2021 12:24:19 +0000 (08:24 -0400)]
Merge pull request #20556 from ixiam/dev#2642
Add filter by custom fields in Accounting Batch. https://lab.civicrm.…
Diego Muñio [Fri, 18 Jun 2021 14:37:11 +0000 (11:37 -0300)]
Add filter by custom fields in Accounting Batch. https://lab.civicrm.org/dev/core/-/issues/2642
Seamus Lee [Thu, 22 Jul 2021 09:14:44 +0000 (19:14 +1000)]
Merge pull request #20910 from colemanw/searchKitPickLists
[REF] SearchKit - Refactor pick-lists to use onCrmUiSelect directive
colemanw [Thu, 22 Jul 2021 01:26:33 +0000 (21:26 -0400)]
Merge pull request #20930 from eileenmcnaughton/total
Enable range search for money fields in search kit + afform
Seamus Lee [Wed, 21 Jul 2021 22:32:51 +0000 (08:32 +1000)]
Merge pull request #20931 from civicrm/5.40
5.40
Eileen McNaughton [Wed, 21 Jul 2021 21:15:46 +0000 (09:15 +1200)]
Enable range search for money fields
Allow total_amount to be exposed for searching by range
Eileen McNaughton [Wed, 21 Jul 2021 19:54:51 +0000 (07:54 +1200)]
Merge pull request #20928 from demeritcowboy/20914-5.40
dev/core#2699 - 5.40 version of Attempt regression fix
demeritcowboy [Wed, 21 Jul 2021 15:36:52 +0000 (11:36 -0400)]
Fix for cust field
Mathieu Lu [Wed, 21 Jul 2021 17:27:16 +0000 (13:27 -0400)]
Merge pull request #20904 from mattwire/pcpcurrency
Display configured currency on PCPPage instead of default
colemanw [Wed, 21 Jul 2021 14:58:13 +0000 (10:58 -0400)]
Merge pull request #20920 from eileenmcnaughton/cleanup2
Add check to see if these indices are actually removed + call the function which should
colemanw [Wed, 21 Jul 2021 14:19:06 +0000 (10:19 -0400)]
Merge pull request #20868 from eileenmcnaughton/load_acls
[REF] Extract the function to load from the acl table
Mathieu Lutfy [Wed, 21 Jul 2021 12:42:04 +0000 (08:42 -0400)]
Fix 'includes tax' translation for PriceSet Checkbox fields
Eileen McNaughton [Fri, 16 Jul 2021 03:17:10 +0000 (15:17 +1200)]
[REF] Extract the function to load from the acl table
Seamus Lee [Wed, 21 Jul 2021 11:25:26 +0000 (21:25 +1000)]
Merge pull request #20854 from eileenmcnaughton/response
Remove obsolete code
Seamus Lee [Wed, 21 Jul 2021 11:14:35 +0000 (21:14 +1000)]
Merge pull request #20911 from colemanw/select2css
Greenwich - fix select2 font size
Eileen McNaughton [Wed, 21 Jul 2021 01:45:15 +0000 (13:45 +1200)]
Add check to see if these indices are actually removed
This check for indices seems to be much more reliable - the question is whether we can
run it against a range of dbs to confirm
Eileen McNaughton [Wed, 21 Jul 2021 04:09:52 +0000 (16:09 +1200)]
Merge pull request #20913 from colemanw/fixCapitalizationOfSqlFunction
Capitalization Fix
Coleman Watts [Wed, 21 Jul 2021 01:53:08 +0000 (21:53 -0400)]
Capitalization Fix
Coleman Watts [Wed, 21 Jul 2021 01:14:22 +0000 (21:14 -0400)]
Greenwich - fix select2 font size
Coleman Watts [Wed, 21 Jul 2021 01:03:27 +0000 (21:03 -0400)]
SearchKit - Refactor pick-lists to use onCrmUiSelect directive
Eileen McNaughton [Tue, 20 Jul 2021 23:34:05 +0000 (11:34 +1200)]
Merge pull request #20908 from colemanw/fixApiCalculatedBridgeFields
APIv4 - Fix calculated fields in bridge entities
Coleman Watts [Tue, 20 Jul 2021 16:24:20 +0000 (12:24 -0400)]
APIv4 - Fix calculated fields in bridge entities
Fixes a crash-inducing bug in the use of calculated fields on a bridge entity,
such as RelationshipCache.is_current.
colemanw [Tue, 20 Jul 2021 14:04:42 +0000 (10:04 -0400)]
Merge pull request #20886 from colemanw/searchKitRelationshipLinks
SearchKit - Add links to view/edit/delete relationships
Seamus Lee [Tue, 20 Jul 2021 08:16:32 +0000 (18:16 +1000)]
Merge pull request #20866 from totten/master-pathmove
CRM_Utils_Array::pathMove - Add helper to move an item within array tree
Seamus Lee [Tue, 20 Jul 2021 02:50:20 +0000 (12:50 +1000)]
Merge pull request #20906 from eileenmcnaughton/api4
Add test & fix for failing OR clause in apv4
Seamus Lee [Tue, 20 Jul 2021 01:26:31 +0000 (11:26 +1000)]
Merge pull request #20900 from colemanw/angularTraits
[REF] Refactor SearchKit displays to inherit traits from a common base
Eileen McNaughton [Tue, 20 Jul 2021 01:14:30 +0000 (13:14 +1200)]
Add test for failing OR clause
This fails because when the field is being concatenated like
`a`.`first_name`='x' OR`a`.`last_name`='x'
The lack of a space between OR and `a` is fugly but it
is parsed by mysql. However, when the value requires utf8mb4
to be supported to do the comparison it returns '0=1' if the
database does not support utf8mb (or it thinks it doesn't per
0 = 1 OR0 = 1
Seamus Lee [Mon, 19 Jul 2021 23:43:28 +0000 (09:43 +1000)]
Merge pull request #20870 from totten/master-tokensmarty
(REF) Extract TokenSmarty::render() from MessageTemplate::renderMessageTemplate()
Seamus Lee [Mon, 19 Jul 2021 23:43:13 +0000 (09:43 +1000)]
Merge pull request #20895 from demeritcowboy/test-upper
[NFC/Unit test] - Test for #20892 - New smarty plugin crmUpper
Seamus Lee [Mon, 19 Jul 2021 22:51:23 +0000 (08:51 +1000)]
Merge pull request #20887 from demeritcowboy/lazytests
[NFC/Unit test] ReportTemplateTest - fix tests that assume setup from a separate test
Matthew Wire [Mon, 19 Jul 2021 22:36:11 +0000 (23:36 +0100)]
Display configured currency on PCPPage instead of default
demeritcowboy [Mon, 19 Jul 2021 21:35:30 +0000 (17:35 -0400)]
Merge pull request #20892 from seamuslee001/utf8mb4_smarty_upper
[REF] Add in smarty modifier to replcae the upper smarty modifier to …
demeritcowboy [Mon, 19 Jul 2021 21:31:55 +0000 (17:31 -0400)]
Merge pull request #20902 from colemanw/testNoNewOptionGroups
APIv4 - Add test to ensure superfluous option groups are not created
colemanw [Mon, 19 Jul 2021 19:56:39 +0000 (15:56 -0400)]
Merge pull request #20901 from demeritcowboy/fix-api4test
[NFC/Unit test] dev/core#2699 - Fix intermittent api4 test (part 1)
Coleman Watts [Mon, 19 Jul 2021 17:47:45 +0000 (13:47 -0400)]
APIv4 - Add test to ensure superfluous option groups are not created
demeritcowboy [Mon, 19 Jul 2021 16:37:50 +0000 (12:37 -0400)]
fix intermittent api4 test
Coleman Watts [Mon, 19 Jul 2021 03:58:21 +0000 (23:58 -0400)]
Refactor SearchKit displays to inherit traits from a common base
This refactors searchDisplayUtils to searchDisplayBaseTrait service,
which acts like a PHP trait, controllers use it via angular.extend().
Matthew Wire [Mon, 19 Jul 2021 14:29:34 +0000 (15:29 +0100)]
Merge pull request #20899 from mattwire/recaptchanotice
Fix PHP notice in recaptcha lib
Matthew Wire [Mon, 19 Jul 2021 14:28:24 +0000 (15:28 +0100)]
Fix PHP notice in recaptcha
demeritcowboy [Mon, 19 Jul 2021 13:58:16 +0000 (09:58 -0400)]
Merge pull request #20897 from yashodha/typo-fix
some typo fixes
colemanw [Mon, 19 Jul 2021 13:24:33 +0000 (09:24 -0400)]
Merge pull request #20875 from totten/master-field-spec
(REF) APIv4 FieldSpec - Extract various traits (Civi\Schema\Traits\*)
Matthew Wire [Mon, 19 Jul 2021 13:06:59 +0000 (14:06 +0100)]
Merge pull request #20601 from kartik1000/pcpshortcode
Added setup pcp page wordpress shortcode
yashodha [Mon, 19 Jul 2021 11:28:32 +0000 (16:58 +0530)]
some typo fixes
Seamus Lee [Mon, 19 Jul 2021 09:23:19 +0000 (19:23 +1000)]
Merge pull request #20869 from eileenmcnaughton/acl3
[REF] Fix functions to be protected
Seamus Lee [Mon, 19 Jul 2021 04:06:29 +0000 (14:06 +1000)]
Merge pull request #20880 from colemanw/searchKitTokenSelect
SearchKit - Support all fields as tokens
Seamus Lee [Sun, 18 Jul 2021 23:53:46 +0000 (09:53 +1000)]
Merge pull request #20893 from colemanw/fixAPIComparisonFunctions
APIv4 - Fix and add tests for comparison SQL functions
Seamus Lee [Sun, 18 Jul 2021 23:49:40 +0000 (09:49 +1000)]
Merge pull request #20896 from colemanw/groupConcatOutputValue
APIv4 - Better handling of output value using GROUP_CONCAT
Coleman Watts [Sun, 18 Jul 2021 19:39:14 +0000 (15:39 -0400)]
SearchKit - Allow tokens in link text
Coleman Watts [Fri, 16 Jul 2021 19:09:40 +0000 (15:09 -0400)]
SearchKit - Support all fields as tokens
Previously, only fields present in the SELECT clause could be tokens.
Now the SearchDisplay::Run api will add any fields used as tokens to the SELECT automatically.
Coleman Watts [Fri, 16 Jul 2021 15:06:41 +0000 (11:06 -0400)]
APIv4 Explorer - Fix display of bridge entity fields for symmetric bridge
Symmetric bridge entities such as RelationshipCache which joins Contact to Contact
need to have the second entity id availble to join on.
Coleman Watts [Sun, 18 Jul 2021 17:23:23 +0000 (13:23 -0400)]
APIv4 - Validate number of args passed to SQL functions
Coleman Watts [Sun, 18 Jul 2021 15:16:20 +0000 (11:16 -0400)]
APIv4 - Better handling of output value using GROUP_CONCAT
Seamus Lee [Sun, 18 Jul 2021 04:40:12 +0000 (14:40 +1000)]
Merge pull request #20894 from civicrm/5.40
5.40
demeritcowboy [Sun, 18 Jul 2021 02:32:37 +0000 (22:32 -0400)]
test upper
Seamus Lee [Sun, 18 Jul 2021 02:26:55 +0000 (12:26 +1000)]
Merge pull request #20891 from demeritcowboy/timestamp-update
[NFC/Unit test] - Failing test demonstrating blank timestamp updates
Coleman Watts [Sun, 18 Jul 2021 01:42:29 +0000 (21:42 -0400)]
APIv4 - Fix and add tests for comparison SQL functions
colemanw [Sun, 18 Jul 2021 01:29:00 +0000 (21:29 -0400)]
Merge pull request #20890 from demeritcowboy/ignore-log-upgrade-alt
dev/core#2666 - (Alternate) Don't repeatedly log about crm-l10n.js during upgrade
colemanw [Sun, 18 Jul 2021 01:07:20 +0000 (21:07 -0400)]
Merge pull request #20865 from totten/master-getset-trait
(REF) Civi/Schema - Extract MagicGetterSetterTrait. Add test coverage.
Seamus Lee [Sun, 18 Jul 2021 00:56:51 +0000 (10:56 +1000)]
[REF] Add in smarty modifier to replcae the upper smarty modifier to better handle umlouts / accents
Tim Otten [Sat, 17 Jul 2021 21:20:39 +0000 (14:20 -0700)]
(NFC) AbstractAction - Pithiness
demeritcowboy [Sat, 17 Jul 2021 22:36:12 +0000 (18:36 -0400)]
failing test for timestamp updates
demeritcowboy [Sat, 17 Jul 2021 20:01:21 +0000 (16:01 -0400)]
don't log about missing l10n for every upgrade task
demeritcowboy [Sat, 17 Jul 2021 03:40:39 +0000 (23:40 -0400)]
fix tests that assume setup from a separate test
colemanw [Sat, 17 Jul 2021 03:32:12 +0000 (23:32 -0400)]
Merge pull request #20850 from eileenmcnaughton/int
Use type hinting for id
colemanw [Sat, 17 Jul 2021 01:41:31 +0000 (21:41 -0400)]
Merge pull request #20848 from eileenmcnaughton/dep
Remove deprecated code
colemanw [Sat, 17 Jul 2021 01:40:19 +0000 (21:40 -0400)]
Merge pull request #20853 from eileenmcnaughton/auth
Remove never-true-if
Tim Otten [Tue, 6 Jul 2021 02:37:49 +0000 (19:37 -0700)]
Civi/Schema - Extract MagicGetterSetterTrait. Add test coverage.
colemanw [Sat, 17 Jul 2021 01:07:54 +0000 (21:07 -0400)]
Merge pull request #20881 from eileenmcnaughton/batch2
Remove non-variable variables
Coleman Watts [Sat, 17 Jul 2021 00:48:29 +0000 (20:48 -0400)]
SearchKit - Add links to view/edit/delete relationships
Tim Otten [Fri, 16 Jul 2021 21:54:32 +0000 (14:54 -0700)]
Merge pull request #20879 from colemanw/fixOnCrmUiSelect
Fix onCrmUiSelect to use current scope and apply to the digest cycle
Eileen McNaughton [Fri, 16 Jul 2021 20:50:22 +0000 (08:50 +1200)]
Merge pull request #20878 from colemanw/fixSearchKitCount
SearchKit - Fix pager count return value
Eileen McNaughton [Fri, 16 Jul 2021 20:26:25 +0000 (08:26 +1200)]
Remove non-variable variables
Coleman Watts [Fri, 16 Jul 2021 19:11:36 +0000 (15:11 -0400)]
Fix onCrmUiSelect to use current scope and apply to the digest cycle
Evaluates expression in current scope rather than parent scope,
and uses $scope.$apply.
demeritcowboy [Fri, 16 Jul 2021 19:07:03 +0000 (15:07 -0400)]
Merge pull request #20871 from eileenmcnaughton/val
[Ref] Remove never-passed parameter
Coleman Watts [Fri, 16 Jul 2021 16:03:25 +0000 (12:03 -0400)]
SearchKit - Fix pager count return value
colemanw [Fri, 16 Jul 2021 15:10:30 +0000 (11:10 -0400)]
Merge pull request #20874 from eileenmcnaughton/batch
[REF] Remove some non-variable variables
Matthew Wire [Fri, 16 Jul 2021 14:20:42 +0000 (15:20 +0100)]
Merge pull request #20864 from eileenmcnaughton/tok
dev/core#2650 Add support for contribution_status_id to the token processor
demeritcowboy [Fri, 16 Jul 2021 12:06:02 +0000 (08:06 -0400)]
Merge pull request #20801 from eileenmcnaughton/upg
Enotice fix on extensions page
Yashodha Chaku [Fri, 16 Jul 2021 11:26:26 +0000 (16:56 +0530)]
Merge pull request #20873 from eileenmcnaughton/remove_dep
Remove deprecated lines of code
Eileen McNaughton [Fri, 16 Jul 2021 00:59:06 +0000 (12:59 +1200)]
dev/core#2650 Add support for contribution_status_id to the processor
Per https://lab.civicrm.org/dev/core/-/issues/2650 the goal is to get the
token processor (for each entity, in this case contributions) to be processing fields
in the same way as the legacy processor does and for this to be thoroughly tested.
This allows us to expose the token processor classes to message template processing
and use them interchangeably, with an eventual goal of migrating over.
It turns out that althought 'Contribution Status ID' is exposed in the UI
for scheduled reminders it did not work. This left us open to simply add the
token contribution.contribution_status_id and add tests.
Per 2650 the handling of pseudoconstants is inconsistent but our preferred goal
is that they would follow apiv4 style syntax and that the actual field name
would hold the actual field value.
Although the token processor exposes a value 'status' - it seems this is likely never
actually exposed to the user and is probably unused.
We can come back to how to deprecate & remove
Eileen McNaughton [Fri, 16 Jul 2021 10:40:06 +0000 (22:40 +1200)]
Merge pull request #20876 from eileenmcnaughton/cust
Api test cleanup fixes
Eileen McNaughton [Fri, 16 Jul 2021 08:25:01 +0000 (20:25 +1200)]
Api test cleanup fixes
Eileen McNaughton [Fri, 16 Jul 2021 06:52:13 +0000 (18:52 +1200)]
[REF] Remove some non-variable variables
This previously shared function has parameters that are hard set to a specific value.
Most notably pending is set to FALSE - this removes all references to pending from the function
Tim Otten [Mon, 28 Jun 2021 23:57:45 +0000 (16:57 -0700)]
(REF) ConformanceTest - Ensure that field-specs are consistent when converting to/from array
Tim Otten [Fri, 16 Jul 2021 06:37:19 +0000 (23:37 -0700)]
Schema - Add PhpDataTypeSpecTrait
Tim Otten [Fri, 16 Jul 2021 06:36:13 +0000 (23:36 -0700)]
(NFC) FieldSpec - Docblock for $type
Tim Otten [Fri, 16 Jul 2021 06:34:32 +0000 (23:34 -0700)]
(REF) APIv4 FieldSpec - Extract ArrayFormatTrait. Add loadArray().
Tim Otten [Fri, 16 Jul 2021 06:30:04 +0000 (23:30 -0700)]
(REF) APIv4 FieldSpec - Extract OptionsSpecTrait (options, optionsCallback)
Tim Otten [Fri, 16 Jul 2021 06:23:39 +0000 (23:23 -0700)]
(REF) APIv4 FieldSpec - Extract DataTypeSpecTrait (dataType, serialize, fkEntity)
Also: Update `setSerialize()` to accept types a string. This is useful if
the info comes from an annotation.
Tim Otten [Fri, 16 Jul 2021 06:16:01 +0000 (23:16 -0700)]
(REF) APIv4 FieldSpec - Extract SqlSpecTrait (tableName, columnName, operators, sqlRenderer, sqlFilters)
Tim Otten [Fri, 16 Jul 2021 06:12:03 +0000 (23:12 -0700)]
(REF) APIv4 FieldSpec - Extract GuiSpecTrait (label, inputType, inputAttrs, helpPre, helpPost)
Tim Otten [Fri, 16 Jul 2021 06:08:53 +0000 (23:08 -0700)]
(REF) APIv4 FieldSpec - Extract BasicSpecTrait (name, title, description)
Monish Deb [Fri, 16 Jul 2021 06:36:16 +0000 (12:06 +0530)]
Merge pull request #20791 from eileenmcnaughton/batch_renew
[REF] Simplify isRenew handling on batch for membership
Eileen McNaughton [Fri, 16 Jul 2021 06:22:47 +0000 (18:22 +1200)]
Remove deprecated lines of code
Eileen McNaughton [Fri, 16 Jul 2021 05:55:57 +0000 (17:55 +1200)]
[Ref] Remove never-passed parameter
this function is called from only one place & it does not pass in financialTrxnValues
Eileen McNaughton [Fri, 16 Jul 2021 05:23:18 +0000 (17:23 +1200)]
Merge pull request #20820 from eileenmcnaughton/tpl
dev/core#2684 Fix filters tpl in civi reports to permit more than one table in a grouping
Tim Otten [Thu, 15 Jul 2021 20:37:07 +0000 (13:37 -0700)]
CRM_Utils_Array::pathMove - Add helper to move an item within array tree