civicrm-core.git
3 years agoMerge pull request #19274 from eileenmcnaughton/tax
Matthew Wire [Thu, 24 Dec 2020 11:50:04 +0000 (11:50 +0000)]
Merge pull request #19274 from eileenmcnaughton/tax

[REF] Fix tax_amount to be consistent & load from the templateContribution

3 years agoMerge pull request #19269 from eileenmcnaughton/mem_form
Seamus Lee [Thu, 24 Dec 2020 08:09:42 +0000 (19:09 +1100)]
Merge pull request #19269 from eileenmcnaughton/mem_form

[REF] Unshared another function back onto Membership_Form

3 years agoMerge pull request #19276 from civicrm/5.33
Seamus Lee [Thu, 24 Dec 2020 08:09:19 +0000 (19:09 +1100)]
Merge pull request #19276 from civicrm/5.33

5.33

3 years agoMerge pull request #19267 from alifrumin/rn-5.33
Seamus Lee [Thu, 24 Dec 2020 05:35:53 +0000 (16:35 +1100)]
Merge pull request #19267 from alifrumin/rn-5.33

[NFC] Release notes 5.33 - First Pass

3 years ago[REF] Unshared another function back onto Membership_Form
eileen [Wed, 23 Dec 2020 20:36:10 +0000 (09:36 +1300)]
[REF] Unshared another function back onto Membership_Form

As with the other functions there is more not in common than in common & subsequent cleanup can remove
much of the copied function

Remove code unrelated to membership form

3 years ago[REF] Fix tax_amount to be consistent & load from the templateContribution
eileen [Thu, 24 Dec 2020 01:47:29 +0000 (14:47 +1300)]
[REF] Fix tax_amount to be consistent & load from the templateContribution

This leverages the work done in https://github.com/civicrm/civicrm-core/pull/15517/files (the test in particular)
but alters it to be more consistent. The original fix relied on the tax_amount on the contribution object
passed in - this fixes it to get the amount from the templateContribution (which is more consistent
now than when the patch was likely written

3 years agoMerge pull request #19271 from eileenmcnaughton/mem_form2
Eileen McNaughton [Thu, 24 Dec 2020 01:19:57 +0000 (14:19 +1300)]
Merge pull request #19271 from eileenmcnaughton/mem_form2

[REF] Unshare code to build an array of params for the recurring contribution

3 years agoMerge pull request #19236 from totten/master-crypt-svc
Seamus Lee [Thu, 24 Dec 2020 00:13:27 +0000 (11:13 +1100)]
Merge pull request #19236 from totten/master-crypt-svc

dev/core#2258 - Add services to support encryption

3 years agoMerge pull request #19270 from eileenmcnaughton/import
Seamus Lee [Thu, 24 Dec 2020 00:05:19 +0000 (11:05 +1100)]
Merge pull request #19270 from eileenmcnaughton/import

Fold deprecated function into the only function that calls it

3 years agoMerge pull request #19268 from seamuslee001/dev_core_2272
Seamus Lee [Wed, 23 Dec 2020 23:06:15 +0000 (10:06 +1100)]
Merge pull request #19268 from seamuslee001/dev_core_2272

dev/core#2272 Fix a DB error when merging contacts into the same hous…

3 years agoMerge pull request #19200 from eileenmcnaughton/act_contact
Seamus Lee [Wed, 23 Dec 2020 22:30:14 +0000 (09:30 +1100)]
Merge pull request #19200 from eileenmcnaughton/act_contact

Fix preferred repeattransaction flow to correctly create the activity contacts for the contribution

3 years agoMerge pull request #19265 from seamuslee001/use_add_radio
Seamus Lee [Wed, 23 Dec 2020 22:04:31 +0000 (09:04 +1100)]
Merge pull request #19265 from seamuslee001/use_add_radio

REF use addRadio function to add in the radio fields to these forms

3 years agoRelease Notes 5.33
Alice Frumin [Wed, 23 Dec 2020 16:38:43 +0000 (11:38 -0500)]
Release Notes 5.33

3 years ago[REF] Unshare code to build an array of params for the recurring contribution
eileen [Wed, 23 Dec 2020 21:38:03 +0000 (10:38 +1300)]
[REF] Unshare code to build an array of params for the recurring contribution

3 years agoMerge pull request #19262 from eileenmcnaughton/recur_test
Seamus Lee [Wed, 23 Dec 2020 21:27:34 +0000 (08:27 +1100)]
Merge pull request #19262 from eileenmcnaughton/recur_test

  Remove code to retrieve premium data

3 years agoFold deprecated function into the only function that calls it
eileen [Wed, 23 Dec 2020 21:12:08 +0000 (10:12 +1300)]
Fold deprecated function into the only function that calls it

3 years agoMerge pull request #19248 from eileenmcnaughton/dep_utils
Seamus Lee [Wed, 23 Dec 2020 20:52:09 +0000 (07:52 +1100)]
Merge pull request #19248 from eileenmcnaughton/dep_utils

[REF] Relocate another deprecated utils function to the only class that calls it.

3 years agoAdd in unit test to lock in the fix for dev_core_2272
Seamus Lee [Wed, 23 Dec 2020 20:47:33 +0000 (07:47 +1100)]
Add in unit test to lock in the fix for dev_core_2272

3 years agodev/core#2272 Fix a DB error when merging contacts into the same household on contact...
Seamus Lee [Wed, 23 Dec 2020 20:26:49 +0000 (07:26 +1100)]
dev/core#2272 Fix a DB error when merging contacts into the same household on contact export and only exporting selected contact fields

3 years agoFix creating of activity for repeat transactions to respect those form the template...
eileen [Mon, 14 Dec 2020 01:28:25 +0000 (14:28 +1300)]
Fix creating of activity for repeat transactions to respect those form the template contribution, if on behalf

3 years agoAdd test to ensure correct assignment of activities for on-behalf repeattransactions
eileen [Mon, 14 Dec 2020 01:24:22 +0000 (14:24 +1300)]
Add test to ensure correct assignment of activities for on-behalf repeattransactions

3 years agoREF use addRadio function to add in the radio fields to these forms
Seamus Lee [Wed, 23 Dec 2020 08:56:11 +0000 (19:56 +1100)]
REF use addRadio function to add in the radio fields to these forms

Fixes following review by Dave D

3 years agoMerge pull request #19257 from ixiam/dev#2270
Seamus Lee [Wed, 23 Dec 2020 20:00:37 +0000 (07:00 +1100)]
Merge pull request #19257 from ixiam/dev#2270

dev/core#2270 - Editing a smartgroup created through the search builder renders the new block by force

3 years agoMerge pull request #19174 from eileenmcnaughton/conttype
Matthew Wire [Wed, 23 Dec 2020 11:01:57 +0000 (11:01 +0000)]
Merge pull request #19174 from eileenmcnaughton/conttype

dev/financial#163 Removal of contributionTypeID

3 years agoMerge pull request #19263 from civicrm/5.33
Eileen McNaughton [Wed, 23 Dec 2020 07:35:17 +0000 (20:35 +1300)]
Merge pull request #19263 from civicrm/5.33

5.33

3 years agoMerge pull request #19264 from agh1/5.33.0-releasenotes-initial
Eileen McNaughton [Wed, 23 Dec 2020 07:34:59 +0000 (20:34 +1300)]
Merge pull request #19264 from agh1/5.33.0-releasenotes-initial

5.33.0 release notes initial run

3 years ago5.33.0 release notes: added boilerplate
Andrew Hunt [Wed, 23 Dec 2020 04:38:44 +0000 (23:38 -0500)]
5.33.0 release notes: added boilerplate

3 years ago5.33.0 release notes: raw from script
Andrew Hunt [Wed, 23 Dec 2020 04:35:19 +0000 (23:35 -0500)]
5.33.0 release notes: raw from script

3 years agoMerge pull request #19259 from eileenmcnaughton/confirm
Seamus Lee [Wed, 23 Dec 2020 04:09:13 +0000 (15:09 +1100)]
Merge pull request #19259 from eileenmcnaughton/confirm

Convert contributionSoft to an array

3 years agoMerge pull request #19260 from colemanw/searchKitInput
Seamus Lee [Wed, 23 Dec 2020 04:08:31 +0000 (15:08 +1100)]
Merge pull request #19260 from colemanw/searchKitInput

Search kit: Improve token support

3 years agoMerge pull request #19261 from colemanw/searchKitFix
Seamus Lee [Wed, 23 Dec 2020 04:05:36 +0000 (15:05 +1100)]
Merge pull request #19261 from colemanw/searchKitFix

Search kit - fix bugs introduced during refactoring

3 years ago Remove code to retrieve premium data
eileen [Wed, 23 Dec 2020 02:59:17 +0000 (15:59 +1300)]
  Remove code to retrieve premium data

    After a bit of digging I can't see an evidence we ever have premiums on the backoffice membership forms

3 years agoMerge pull request #19245 from seamuslee001/dev_core_2263
colemanw [Wed, 23 Dec 2020 02:44:14 +0000 (21:44 -0500)]
Merge pull request #19245 from seamuslee001/dev_core_2263

dev/core#2263 Do not try and store items in the session if the sessio…

3 years agoMerge pull request #19258 from eileenmcnaughton/recur_test
colemanw [Wed, 23 Dec 2020 02:41:12 +0000 (21:41 -0500)]
Merge pull request #19258 from eileenmcnaughton/recur_test

[REF] Convert previously shared function to non-static, remove unrelated code

3 years agoSearch kit - fix bugs introduced during refactoring
Coleman Watts [Wed, 23 Dec 2020 02:24:07 +0000 (21:24 -0500)]
Search kit - fix bugs introduced during refactoring

3 years agoSearch kit: Add token selector in display admin UI, allow tokens in tooltips
Coleman Watts [Tue, 22 Dec 2020 02:45:45 +0000 (21:45 -0500)]
Search kit: Add token selector in display admin UI, allow tokens in tooltips

Also includes some cleanup of the crmSearchAdminLinkSelect component, making it more self-contained

3 years agoConvert contributionSoft to an array
eileen [Wed, 23 Dec 2020 01:35:28 +0000 (14:35 +1300)]
Convert contributionSoft to an array

This is a partial of #19096 which requires contributionSoft to be an array & just simplifies that commit (which
is still failing tests

3 years ago[REF] Convert previously shared function to non-static, remove unrelated code
eileen [Wed, 23 Dec 2020 01:06:38 +0000 (14:06 +1300)]
[REF] Convert previously shared function to non-static, remove unrelated code

There is no facility for creating on_behalf on back office membership forms
so this code, copied from the shared function, does not relate.

The activity IS created by Contribution.create - the extra code was
just to hack it around to doing on_behalf

Likewise, the back office membership form does not collect
data on contribution custom fields or notes so removing these
also makes sense here.

3 years agoMerge pull request #19227 from eileenmcnaughton/mem_form
Seamus Lee [Tue, 22 Dec 2020 23:03:21 +0000 (10:03 +1100)]
Merge pull request #19227 from eileenmcnaughton/mem_form

Remove or hard-code variables from previously shared function

3 years agoMerge pull request #19238 from jitendrapurohit/pledgefix
Seamus Lee [Tue, 22 Dec 2020 21:44:58 +0000 (08:44 +1100)]
Merge pull request #19238 from jitendrapurohit/pledgefix

Fix pledge on contribution page when the site has a WR for "contribution"

3 years agoMerge pull request #19202 from eileenmcnaughton/act_cont2
Seamus Lee [Tue, 22 Dec 2020 21:41:26 +0000 (08:41 +1100)]
Merge pull request #19202 from eileenmcnaughton/act_cont2

Fix Contribution.create to not attempt to set contacts on activity update

3 years agoRework on the detection of new vs existing smartgroup
Vangelis Pantazis [Tue, 22 Dec 2020 15:29:20 +0000 (15:29 +0000)]
Rework on the detection of new vs existing smartgroup

3 years agoMerge pull request #19255 from seamuslee001/concat_within_group_concat
Eileen McNaughton [Tue, 22 Dec 2020 04:00:48 +0000 (17:00 +1300)]
Merge pull request #19255 from seamuslee001/concat_within_group_concat

[APIv4] Permit using other SQL functions such as CONCAT within a GROU…

3 years agoMerge pull request #19116 from eileenmcnaughton/pay_edit
Monish Deb [Tue, 22 Dec 2020 01:30:41 +0000 (07:00 +0530)]
Merge pull request #19116 from eileenmcnaughton/pay_edit

Fix Payment edit form to use Payment.cancel & payment.create api

3 years ago[APIv4] Permit using other SQL functions such as CONCAT within a GROUP_CONCAT
Seamus Lee [Tue, 22 Dec 2020 01:19:38 +0000 (12:19 +1100)]
[APIv4] Permit using other SQL functions such as CONCAT within a GROUP_CONCAT

3 years agoMerge pull request #19253 from eileenmcnaughton/depp
Eileen McNaughton [Mon, 21 Dec 2020 22:43:03 +0000 (11:43 +1300)]
Merge pull request #19253 from eileenmcnaughton/depp

[REF] Move another deprecated function to the class that uses it

3 years agoMerge pull request #19246 from eileenmcnaughton/import
Seamus Lee [Mon, 21 Dec 2020 20:29:27 +0000 (07:29 +1100)]
Merge pull request #19246 from eileenmcnaughton/import

[REF] Switch to using shared function to call deprecated function

3 years ago[REF] Move another deprecated function to the class that uses it
eileen [Mon, 21 Dec 2020 20:16:03 +0000 (09:16 +1300)]
[REF] Move another deprecated function to the class that uses it

3 years ago[REF] Relocate another deprecated utils function to the only class that calls it.
eileen [Mon, 21 Dec 2020 07:39:36 +0000 (20:39 +1300)]
[REF] Relocate another deprecated utils function to the only class that calls it.

I removed the tests because they didn't test much & what they did test
seemed like stuff we should alter

3 years agoMerge pull request #19249 from eileenmcnaughton/depit
Seamus Lee [Mon, 21 Dec 2020 19:26:55 +0000 (06:26 +1100)]
Merge pull request #19249 from eileenmcnaughton/depit

[REF] Relocate another function from DeprecatedUtils to the calling c…

3 years agoMerge pull request #19252 from mattwire/contributionupdatedlogs
Seamus Lee [Mon, 21 Dec 2020 19:21:30 +0000 (06:21 +1100)]
Merge pull request #19252 from mattwire/contributionupdatedlogs

Improve logging when a contribution is created/updated

3 years agoMerge pull request #19250 from jitendrapurohit/addgroupby
Seamus Lee [Mon, 21 Dec 2020 19:11:06 +0000 (06:11 +1100)]
Merge pull request #19250 from jitendrapurohit/addgroupby

Fatal error on contribution summary report (and probably others) when adding contacts to group

3 years agoImprove logging when a contribution is created/updated
Matthew Wire [Mon, 21 Dec 2020 17:16:25 +0000 (17:16 +0000)]
Improve logging when a contribution is created/updated

3 years agoFix fatal error on contribution summary report -> add to group action
Jitendra Purohit [Mon, 21 Dec 2020 11:00:25 +0000 (16:30 +0530)]
Fix fatal error on contribution summary report -> add to group action

3 years ago(REF) CryptoToken - Extract method 'parse()'
Tim Otten [Sun, 20 Dec 2020 21:28:17 +0000 (13:28 -0800)]
(REF) CryptoToken - Extract method 'parse()'

3 years ago(dev/core#2258) CryptoRegistry - Add findKeysByTag()
Tim Otten [Mon, 21 Dec 2020 08:15:27 +0000 (00:15 -0800)]
(dev/core#2258) CryptoRegistry - Add findKeysByTag()

3 years ago(dev/core#2258) CryptoRegistry - Allow multiple plaintext entries
Tim Otten [Mon, 21 Dec 2020 08:10:24 +0000 (00:10 -0800)]
(dev/core#2258) CryptoRegistry - Allow multiple plaintext entries

This allows the plaintext entries to do have different prioritizations among
different keys.

3 years ago[REF] Relocate another function from DeprecatedUtils to the calling class
eileen [Mon, 21 Dec 2020 07:54:20 +0000 (20:54 +1300)]
[REF] Relocate another function from DeprecatedUtils to the calling class

This is only called from one class so relocate to there

3 years agoMerge pull request #19247 from eileenmcnaughton/dep_utils
Eileen McNaughton [Mon, 21 Dec 2020 07:31:06 +0000 (20:31 +1300)]
Merge pull request #19247 from eileenmcnaughton/dep_utils

[REF] Relocate function from DeprecatedUtils to the class that actually calls it

3 years ago[REF] Relocate function from DeprecatedUtils to the class that actually calls it
eileen [Mon, 21 Dec 2020 05:31:22 +0000 (18:31 +1300)]
[REF] Relocate function from DeprecatedUtils to the class that actually calls it

3 years agoSwitch to using shared function to call deprecated function
eileen [Mon, 21 Dec 2020 05:26:15 +0000 (18:26 +1300)]
Switch to using shared function to call deprecated function

With this done all the functionality in the deprecated function can be moved into the shared function

3 years agoMerge pull request #19165 from eileenmcnaughton/pdf
Seamus Lee [Mon, 21 Dec 2020 04:26:21 +0000 (15:26 +1100)]
Merge pull request #19165 from eileenmcnaughton/pdf

dev/financial#162 Simplify decision as to whether to use a pdf on membership emails

3 years agoMerge pull request #19225 from colemanw/select2Tweak
Eileen McNaughton [Mon, 21 Dec 2020 04:10:09 +0000 (17:10 +1300)]
Merge pull request #19225 from colemanw/select2Tweak

Greenwich: Fix Select2 free-tagging css bug

3 years agodev/core#2263 Do not try and store items in the session if the session is currently...
Seamus Lee [Mon, 21 Dec 2020 03:52:46 +0000 (14:52 +1100)]
dev/core#2263 Do not try and store items in the session if the session is currently empty

Store the locale in the session even if we are in a single lingual instance

3 years agoMerge pull request #19244 from eileenmcnaughton/strict
Seamus Lee [Mon, 21 Dec 2020 03:08:01 +0000 (14:08 +1100)]
Merge pull request #19244 from eileenmcnaughton/strict

dev/core#2252 remove all handling of strict mode as it has aged out of relevance

3 years agoAdd an explicit alias for sql functions
Coleman Watts [Sun, 20 Dec 2020 00:48:45 +0000 (19:48 -0500)]
Add an explicit alias for sql functions

3 years agodev/core#2252 remove all handling of strict mode as it has aged out of relevance
eileen [Mon, 21 Dec 2020 00:21:26 +0000 (13:21 +1300)]
dev/core#2252 remove all handling of strict mode as it has aged out of relevance

3 years agoMerge pull request #19237 from colemanw/stripTagsFromOptionDescription
Eileen McNaughton [Sun, 20 Dec 2020 23:23:48 +0000 (12:23 +1300)]
Merge pull request #19237 from colemanw/stripTagsFromOptionDescription

APIv4: Normalize option list descriptions as plain text

3 years agoMerge pull request #19229 from colemanw/searchKitInput
Eileen McNaughton [Sun, 20 Dec 2020 23:23:02 +0000 (12:23 +1300)]
Merge pull request #19229 from colemanw/searchKitInput

Search kit: Rewrite input widget to support IN sets, relative dates, BETWEEN groups, etc.

3 years agoMerge pull request #19209 from mattwire/daoeventid
Eileen McNaughton [Sun, 20 Dec 2020 21:36:16 +0000 (10:36 +1300)]
Merge pull request #19209 from mattwire/daoeventid

Add a unique event ID so we can match pre/post Insert/Update

3 years agoMerge pull request #19235 from colemanw/flex
Seamus Lee [Sun, 20 Dec 2020 19:28:51 +0000 (06:28 +1100)]
Merge pull request #19235 from colemanw/flex

Add min-width to flex columns for responsive layout on small screens

3 years agoMerge pull request #19240 from MikeyMJCO/patch-6
Tim Otten [Sat, 19 Dec 2020 20:24:04 +0000 (12:24 -0800)]
Merge pull request #19240 from MikeyMJCO/patch-6

(NFC) Fix issue reporting link to go to the corresponding `core` project.

3 years agoFix issue reporting link to go to the corresponding `core` project.
Mikey O'Toole [Sat, 19 Dec 2020 19:20:02 +0000 (19:20 +0000)]
Fix issue reporting link to go to the corresponding `core` project.

3 years ago(dev/core#2258) CryptoToken - Change notation
Tim Otten [Sat, 19 Dec 2020 04:47:31 +0000 (20:47 -0800)]
(dev/core#2258) CryptoToken - Change notation

This is pre-merge change to the notation in the token. Two things:

* Use only one control character instead of multiple.
* Use URL-style key-value notation. It should be easier to skim and to tweak.

3 years ago(NFC) CRM_Utils_Hook - Tweak description of crypto()
Tim Otten [Fri, 18 Dec 2020 21:14:17 +0000 (13:14 -0800)]
(NFC) CRM_Utils_Hook - Tweak description of crypto()

3 years ago(dev/core#2258) CryptoRegistry - Remove fallback option based on CIVICRM_SITE_KEY.
Tim Otten [Thu, 17 Dec 2020 00:53:47 +0000 (16:53 -0800)]
(dev/core#2258) CryptoRegistry - Remove fallback option based on CIVICRM_SITE_KEY.

This was included under the expectation it might make a nicer upgrade. But
I don't think it buys a whole lot:

1. You run the upgrader. The SMTP password is converted from
   rj256-ecb-sitekey to aes-cbc-sitekey.  All other credentials are left
   unencrypted.  Afterward, you set CIVICRM_CRED_KEY and run the rekey.

2. You run upgrader. The SMTP password is decrypted. All other credentials
   are left unencrypted. Afterward, you set CIVICRM_CRED_KEY and run the rekey.

Additionally, I think there's a question of risk-management when we get to
encrypting more things in the Setting and API layers.  If we go with path 2,
then we can ramp-up adoption progressively, e.g.

* Release 1: Add support as non-default option
* Release 2: Enable by default on new builds
* Release 3: Display alert to existing sites that don't have encryption keys

3 years ago(dev/core#2258) CryptoToken - More defense against malformed input
Tim Otten [Thu, 17 Dec 2020 00:26:15 +0000 (16:26 -0800)]
(dev/core#2258) CryptoToken - More defense against malformed input

3 years ago(dev/core#2258) CryptoRegistry - Don't parse factory code unless it's being used
Tim Otten [Wed, 16 Dec 2020 23:41:48 +0000 (15:41 -0800)]
(dev/core#2258) CryptoRegistry - Don't parse factory code unless it's being used

This moves the factory function from `Container.php` (which is loaded on all
page-views on all configurations) to `CryptoRegistry.php` (which is only
loaded if the site actually used encrypted fields).

3 years ago(dev/core#2258) CryptoToken - Don't build registry if we only read plaintext
Tim Otten [Wed, 16 Dec 2020 23:29:43 +0000 (15:29 -0800)]
(dev/core#2258) CryptoToken - Don't build registry if we only read plaintext

Example: You have a basic site that has not enabled encrypted fields, but the
integration with settings/APIs causes one to use CryptoToken::decrypt()

3 years ago(dev/core#2258) CryptoToken - Add service for processing stored ciphertext
Tim Otten [Wed, 16 Dec 2020 23:19:09 +0000 (15:19 -0800)]
(dev/core#2258) CryptoToken - Add service for processing stored ciphertext

3 years ago(dev/core#2258) PhpseclibCipherSuite - Add default crypto provider
Tim Otten [Wed, 16 Dec 2020 21:27:33 +0000 (13:27 -0800)]
(dev/core#2258) PhpseclibCipherSuite - Add default crypto provider

3 years ago(dev/core#2258) CryptoRegistry - Keep track of available keys+suites. Hookable.
Tim Otten [Wed, 16 Dec 2020 21:26:32 +0000 (13:26 -0800)]
(dev/core#2258) CryptoRegistry - Keep track of available keys+suites. Hookable.

3 years agoCRM_Utils_String - Add URL-style base64 codec
Tim Otten [Sat, 19 Dec 2020 02:03:21 +0000 (18:03 -0800)]
CRM_Utils_String - Add URL-style base64 codec

3 years agoMerge pull request #19214 from eileenmcnaughton/dep2
Seamus Lee [Fri, 18 Dec 2020 06:51:00 +0000 (17:51 +1100)]
Merge pull request #19214 from eileenmcnaughton/dep2

Remove functions from EmailCommon that were moved to the trait

3 years agoMerge pull request #19228 from eileenmcnaughton/inv_assign
Seamus Lee [Fri, 18 Dec 2020 06:43:32 +0000 (17:43 +1100)]
Merge pull request #19228 from eileenmcnaughton/inv_assign

Remove duplicated tax assignments from copied code

3 years agoFix pledge on contribution page
Jitendra Purohit [Fri, 18 Dec 2020 04:43:03 +0000 (10:13 +0530)]
Fix pledge on contribution page

3 years agoAPIv4: Normalize option list descriptions as plain text
Coleman Watts [Thu, 17 Dec 2020 21:15:11 +0000 (16:15 -0500)]
APIv4: Normalize option list descriptions as plain text

Our schema is inconsistent about whether `description` fields allow html,
but it's usually assumed to be plain text, so we strip_tags() to standardize it.

3 years agoMerge pull request #19224 from artfulrobot/artfulrobot-fix-bulkmail
Seamus Lee [Thu, 17 Dec 2020 19:44:28 +0000 (06:44 +1100)]
Merge pull request #19224 from artfulrobot/artfulrobot-fix-bulkmail

Fix lab issue 2254 is_bulkmail cannot be set through UI

3 years agoAdd min-width to flex columns for responsive layout on small screens
Coleman Watts [Wed, 16 Dec 2020 22:27:58 +0000 (17:27 -0500)]
Add min-width to flex columns for responsive layout on small screens

The .crm-flex-box class is new and only used in 2 places: Search Kit & the Dashboard.
This sets a min-width on those layouts so the 2 columns collapse to 1 on small screens.

3 years agoSearch kit: Rewrite input widget to support IN sets, relative dates, BETWEEN groups...
Coleman Watts [Wed, 16 Dec 2020 00:37:31 +0000 (19:37 -0500)]
Search kit: Rewrite input widget to support IN sets, relative dates, BETWEEN groups, etc.

This deletes the crmSearchValue widget (and the now-empty crmSearchKit module),
which had originally been copied from the API Explorer, and replaces it with a more flexible
set of components with separate templates for each data type.

3 years agoMerge pull request #19231 from eileenmcnaughton/processConfirm
Seamus Lee [Wed, 16 Dec 2020 21:43:19 +0000 (08:43 +1100)]
Merge pull request #19231 from eileenmcnaughton/processConfirm

Convert previously shared function from static to non-static

3 years agoMerge pull request #19234 from eileenmcnaughton/cms
Seamus Lee [Wed, 16 Dec 2020 21:42:33 +0000 (08:42 +1100)]
Merge pull request #19234 from eileenmcnaughton/cms

Only do cms account create from the one relevant place

3 years agoMerge pull request #19226 from eileenmcnaughton/odd
colemanw [Wed, 16 Dec 2020 12:00:49 +0000 (07:00 -0500)]
Merge pull request #19226 from eileenmcnaughton/odd

Remove unused tpl assigns

3 years agoMerge pull request #19233 from civicrm/5.33
Seamus Lee [Wed, 16 Dec 2020 07:46:15 +0000 (18:46 +1100)]
Merge pull request #19233 from civicrm/5.33

5.33

3 years agoOnly do cms account create from the one relevant place
eileen [Wed, 16 Dec 2020 05:38:37 +0000 (18:38 +1300)]
Only do cms account create from the one relevant place

This function is called from 3 places - create CMS user is not applicable
to the back office form and the other place actually blocks it...

3 years agoConvert previously shared function from static to non-static
eileen [Wed, 16 Dec 2020 04:03:40 +0000 (17:03 +1300)]
Convert previously shared function from static to non-static

This no longer needs to be static as it is no longer shared with other forms
(although it needs to be public to support the test class

3 years agoMerge pull request #19230 from totten/master-phpseclib-cxnrpc
Eileen McNaughton [Wed, 16 Dec 2020 05:24:36 +0000 (18:24 +1300)]
Merge pull request #19230 from totten/master-phpseclib-cxnrpc

composer.json - Update civicrm-cxn-rpc and phpseclib

3 years agocomposer.json - Update civicrm-cxn-rpc and phpseclib
Tim Otten [Wed, 16 Dec 2020 03:15:55 +0000 (19:15 -0800)]
composer.json - Update civicrm-cxn-rpc and phpseclib

Before
------

Require `civicrm-cxn-rpc` v0.19 (with `phpseclib` v1.x)

After
-----

Require either of:

* `civicrm-cxn-rpc` v0.20 (with `phpseclib` v2.x)
* `civicrm-cxn-rpc` v0.19 (with `phpseclib` v1.x)

Technical Details
-----------------

* The public interfaces from civicrm-cxn-rpc are the same in 0.19+0.20.
  They only differ in which verison of `phpseclib` is used.
* As pointed out in https://github.com/civicrm/civicrm-cxn-rpc/issues/9, we're not
  the only folks using phpseclib, so some flexibility on that seems good.
* The primary change in phpseclib 2.x is the use of PHP namespaces
  (e.g. `Crypt_AES` => `\phpseclib\Crypt\AES`).
* There are newer versions of both v0.19 and v0.20 which bundle an updated certificate.

3 years agoRemove or hard-code variables from previously shared function
eileen [Wed, 16 Dec 2020 01:03:12 +0000 (14:03 +1300)]
Remove or hard-code variables from previously shared function

This function was separated from the shared function for cleanup.

This removes 3 variables
- isRecur (always true)
- billingId - this is elsewhere handled on the form
- online (always false)

For billing id this is handled through back office form
shared functions. The handling might be slightly different but it seems
more important that the form is internally consistent with how
it creates billing addresses (between recur & non-recur) than with other forms

3 years agoRemove duplicated tax assignments from copied code
eileen [Wed, 16 Dec 2020 01:10:48 +0000 (14:10 +1300)]
Remove duplicated tax assignments from copied code

The assignment of tax data is happening twice on the form - once in generic
code and once in code only reached for recurring contributions that
was in previously-shared code. We can be fairly comfortable that
in this latter case we don't need it as this is a marginal flow
on this form whereas the main flow is being used 90% of the time
& is doing the assignment