civicrm-core.git
3 years agoMerge pull request #18217 from mattwire/orderapicleanup
Eileen McNaughton [Fri, 21 Aug 2020 19:43:05 +0000 (07:43 +1200)]
Merge pull request #18217 from mattwire/orderapicleanup

Minor code cleanup to Order API

3 years agoMinor code cleanup to Order API
Matthew Wire [Fri, 21 Aug 2020 10:42:13 +0000 (11:42 +0100)]
Minor code cleanup to Order API

3 years agoMerge pull request #18215 from civicrm/5.29
Eileen McNaughton [Fri, 21 Aug 2020 06:32:31 +0000 (18:32 +1200)]
Merge pull request #18215 from civicrm/5.29

5.29

3 years agoMerge pull request #18206 from chamilwijesooriya/issue-1959
Seamus Lee [Fri, 21 Aug 2020 04:27:45 +0000 (14:27 +1000)]
Merge pull request #18206 from chamilwijesooriya/issue-1959

dev/core#1959 Brick\Math\Exception\RoundingNecessaryException

3 years agoMerge pull request #18213 from eileenmcnaughton/is_deleted
Seamus Lee [Fri, 21 Aug 2020 04:27:13 +0000 (14:27 +1000)]
Merge pull request #18213 from eileenmcnaughton/is_deleted

Fix regression whereby deleted contacts are in quicksearch results

3 years agoFix regression whereby deleted contacts are in quicksearch results
eileen [Fri, 21 Aug 2020 02:37:10 +0000 (14:37 +1200)]
Fix regression whereby deleted contacts are in quicksearch results

3 years agodev/core#1959 Brick\Math\Exception\RoundingNecessaryException
Chamil Wijesooriya [Thu, 20 Aug 2020 15:15:56 +0000 (16:15 +0100)]
dev/core#1959 Brick\Math\Exception\RoundingNecessaryException

3 years agoMerge pull request #18211 from totten/master-resg
Seamus Lee [Fri, 21 Aug 2020 01:31:06 +0000 (11:31 +1000)]
Merge pull request #18211 from totten/master-resg

(NFC) Add some tests to the `resources` group

3 years agoMerge pull request #18210 from civicrm/5.29
Eileen McNaughton [Thu, 20 Aug 2020 22:41:53 +0000 (10:41 +1200)]
Merge pull request #18210 from civicrm/5.29

5.29

3 years ago(NFC) Add some tests to the `resources` group
Tim Otten [Tue, 18 Aug 2020 02:37:42 +0000 (19:37 -0700)]
(NFC) Add some tests to the `resources` group

3 years agoMerge pull request #18205 from demeritcowboy/expandy
Seamus Lee [Thu, 20 Aug 2020 20:51:08 +0000 (06:51 +1000)]
Merge pull request #18205 from demeritcowboy/expandy

dev/core#1963 - Expanded icon on manage groups appears as unknown icon

3 years agoMerge pull request #18204 from eileenmcnaughton/529
Seamus Lee [Thu, 20 Aug 2020 20:50:03 +0000 (06:50 +1000)]
Merge pull request #18204 from eileenmcnaughton/529

dev/core#1961 Fix regression - cancel button not working on recurring contributions

3 years agospecify font
demeritcowboy [Thu, 20 Aug 2020 15:23:29 +0000 (11:23 -0400)]
specify font

3 years agodev/core#1961 Fix regression - cancel button not working on recurring contributions
eileen [Thu, 20 Aug 2020 11:08:27 +0000 (23:08 +1200)]
dev/core#1961 Fix regression - cancel button not working on recurring contributions

Note this form only shows for some processors. To test an easy way is to edit
CRM_Core_Payment::supportsCancelRecurring to return FALSE

Then attempt to cancel a recurring contribution - the cancel button does not launch a form
without this.

Regression from
https://github.com/civicrm/civicrm-core/pull/17178/files#diff-63d76bd172c85725aaf2e76247b86354L11

https://lab.civicrm.org/dev/core/-/issues/1961

3 years agoMerge pull request #18203 from civicrm/5.29
Eileen McNaughton [Thu, 20 Aug 2020 06:59:06 +0000 (18:59 +1200)]
Merge pull request #18203 from civicrm/5.29

5.29

3 years agoMerge pull request #18200 from seamuslee001/5.29
Seamus Lee [Thu, 20 Aug 2020 06:49:09 +0000 (16:49 +1000)]
Merge pull request #18200 from seamuslee001/5.29

(dev/core#1846) Container, ClassLoader Caches - Separate caches by ve…

3 years ago(dev/core#1846) Container, ClassLoader Caches - Separate caches by version number
Tim Otten [Thu, 2 Jul 2020 21:03:34 +0000 (14:03 -0700)]
(dev/core#1846) Container, ClassLoader Caches - Separate caches by version number

Before
------

If you load a new version of the CiviCRM codebase, then a freshness check
should cause the container cache to reset automatically (based on the fact
that various files have new timestamps).

However, it's possible that some kind of bug or omission prevents this from working.
Many developers won't notice such a bug because they're obsessive-compulsive
about clearing caches anyway.

After
-----

If you load a new version of the CiviCRM codebase, then it should use a new
container cache - regardless of how well the freshness check works.

3 years agoMerge pull request #18195 from colemanw/customValueSave
Seamus Lee [Thu, 20 Aug 2020 03:30:21 +0000 (13:30 +1000)]
Merge pull request #18195 from colemanw/customValueSave

APIv4 - Fix output of CustomValue create/save/update

3 years agoMerge pull request #18199 from civicrm/5.29
Seamus Lee [Thu, 20 Aug 2020 03:13:51 +0000 (13:13 +1000)]
Merge pull request #18199 from civicrm/5.29

5.29

3 years agoJenkins style fix
Seamus Lee [Thu, 20 Aug 2020 02:48:58 +0000 (12:48 +1000)]
Jenkins style fix

3 years agoAPIv4 - Fix output of CustomValue create/save/update
Coleman Watts [Wed, 19 Aug 2020 20:04:34 +0000 (16:04 -0400)]
APIv4 - Fix output of CustomValue create/save/update

Before: output contained no useful data
After: output contains values and id

3 years agoCopy-edits for 5.28.1.md
Tim Otten [Thu, 20 Aug 2020 00:40:15 +0000 (17:40 -0700)]
Copy-edits for 5.28.1.md

3 years agoAdd in release notes for 5.28.1
Seamus Lee [Wed, 19 Aug 2020 07:41:16 +0000 (17:41 +1000)]
Add in release notes for 5.28.1

3 years agoMerge pull request #18197 from mattwire/removefirstcontribution
Seamus Lee [Thu, 20 Aug 2020 00:02:34 +0000 (10:02 +1000)]
Merge pull request #18197 from mattwire/removefirstcontribution

Remove first_contribution key from repeattransaction

3 years agoRemove first_contribution key from repeattransaction
Matthew Wire [Wed, 19 Aug 2020 22:33:37 +0000 (23:33 +0100)]
Remove first_contribution key from repeattransaction

3 years agoMerge pull request #18182 from colemanw/severity
colemanw [Wed, 19 Aug 2020 21:22:23 +0000 (17:22 -0400)]
Merge pull request #18182 from colemanw/severity

Remove unnecessary transformation of upgrade msg severity

3 years agoMerge pull request #18114 from eileenmcnaughton/phone
colemanw [Wed, 19 Aug 2020 21:19:31 +0000 (17:19 -0400)]
Merge pull request #18114 from eileenmcnaughton/phone

Metadata fix - phone_type_id, location_type_id, gender_id

3 years agoMerge pull request #18168 from twocs/patch-4
colemanw [Wed, 19 Aug 2020 14:13:12 +0000 (10:13 -0400)]
Merge pull request #18168 from twocs/patch-4

Check if $post defined before trying to use its field values.

3 years agosecurity/core#95 Purify Summary and description fields for events on the event info...
Seamus Lee [Wed, 5 Aug 2020 20:31:22 +0000 (06:31 +1000)]
security/core#95 Purify Summary and description fields for events on the event info and event cart screens

3 years agosecurity/core#96 Escape the profile description field
Seamus Lee [Wed, 5 Aug 2020 23:46:33 +0000 (09:46 +1000)]
security/core#96 Escape the profile description field

3 years agoApply edit groups permission check to the button not the generaal permissionedForGrou...
Seamus Lee [Wed, 5 Aug 2020 23:57:26 +0000 (09:57 +1000)]
Apply edit groups permission check to the button not the generaal permissionedForGroup check

3 years ago[REF] Only show button to edit smart group if user has permissions
Seamus Lee [Tue, 28 Jul 2020 03:48:39 +0000 (13:48 +1000)]
[REF] Only show button to edit smart group if user has permissions

3 years agoSecurity/core#61 Limit Access to update smart group task to only if the logged in...
Seamus Lee [Wed, 29 Apr 2020 07:53:46 +0000 (17:53 +1000)]
Security/core#61 Limit Access to update smart group task to only if the logged in user has edit groups permission.

Put a permission restriction on loading page without manage groups permission when saved search id is specified in the URL

3 years agosecurity/core#94 Escape subject content when loading the Activity list for a contact
Seamus Lee [Wed, 15 Jul 2020 03:00:33 +0000 (13:00 +1000)]
security/core#94 Escape subject content when loading the Activity list for a contact

3 years agoFix auto-refresh of CKEditor configurator form
Coleman Watts [Fri, 3 Jul 2020 02:37:03 +0000 (22:37 -0400)]
Fix auto-refresh of CKEditor configurator form

3 years agoConvert CK Config form to quickform
Coleman Watts [Thu, 28 May 2020 20:26:47 +0000 (16:26 -0400)]
Convert CK Config form to quickform

3 years agoCKEditor Config - Validate input before saving config file
Coleman Watts [Thu, 28 May 2020 19:15:26 +0000 (15:15 -0400)]
CKEditor Config - Validate input before saving config file

Also removes support for 'customConfig' supplimental file.

3 years agoCRM_Utils_JS - Improve validation of strings
Coleman Watts [Thu, 28 May 2020 19:08:43 +0000 (15:08 -0400)]
CRM_Utils_JS - Improve validation of strings

Runs strings through json_decode to ensure they are valid.
Optionally throws an exception on error.

3 years agosecurity/core#78 Purify HTML of activity details field when viewing the activity
Seamus Lee [Fri, 29 May 2020 07:17:04 +0000 (17:17 +1000)]
security/core#78 Purify HTML of activity details field when viewing the activity

3 years agoCRM_Core_Key - Strengthen signature algorithm
Tim Otten [Mon, 6 Apr 2020 08:07:12 +0000 (01:07 -0700)]
CRM_Core_Key - Strengthen signature algorithm

This alters the qfKey signature algorithm, with a few aims:

1.  If someone wants to perform a brute-force to figure the per-session
    private-key, we want it go slow.  Therefore, use a slower hash (ie
    HMAC-SHA256 instead of MD5).

2.  If someone performs a timing attack aimed at figuring a passable qfKey,
    the execution-time for `validate()` should not provide any hints.

3.  If someone finds a way to manipulate one of the constituent parts
    ($sessionID, $name, $privateKey), we want it to be hard to create a
    collsion. So... (a) Use HMAC instead of a vanilla hash. (b) Use delimiters
    between the data sections ($sessionID, $name).

3 years agoCRM_Core_Key - Improve entropy of "privateKey"
Tim Otten [Mon, 6 Apr 2020 06:33:55 +0000 (23:33 -0700)]
CRM_Core_Key - Improve entropy of "privateKey"

In PHP 4/5, there was no good, universal source of entropy.  The old code
mitigated this by aggregating mediocre sources.  On my system, it appears
to be roughly:

* 2^31 for each `mt_rand()`
* 10^8 =~ 2^26 for each `uniqid(...TRUE)` (after discounting the non-random right half of the uniqid).

So that's ~114 bits (albeit low-quality bits).

In PHP 7, the docs describe `random_bytes()` as "generat[ing] cryptographically secure pseudo-random bytes."

3 years agoAdditional code from Drupal's implementation
Seamus Lee [Thu, 28 May 2020 07:46:06 +0000 (17:46 +1000)]
Additional code from Drupal's implementation

3 years agoUpdate to use code from Drupal's patch
Seamus Lee [Thu, 28 May 2020 07:43:19 +0000 (17:43 +1000)]
Update to use code from Drupal's patch

3 years agoPatch jQuery for CVE-2020-11022 and CVE-2020-11023
Seamus Lee [Thu, 28 May 2020 06:00:57 +0000 (16:00 +1000)]
Patch jQuery for CVE-2020-11022 and CVE-2020-11023

3 years agosecurity/core#81 Escape html in CRM_Core_LegacyErrorHandler messages
Coleman Watts [Tue, 12 May 2020 14:14:32 +0000 (10:14 -0400)]
security/core#81 Escape html in CRM_Core_LegacyErrorHandler messages

3 years agosecurity/core#74 Prevent CSRF in CKEditor Config screen by switching to using Quickfo...
Seamus Lee [Tue, 12 May 2020 05:07:32 +0000 (15:07 +1000)]
security/core#74 Prevent CSRF in CKEditor Config screen by switching to using Quickform built form

3 years agoMerge pull request #18193 from civicrm/5.29
Eileen McNaughton [Wed, 19 Aug 2020 04:13:07 +0000 (16:13 +1200)]
Merge pull request #18193 from civicrm/5.29

5.29 to master

3 years agoMerge pull request #18180 from eileenmcnaughton/recur
Eileen McNaughton [Wed, 19 Aug 2020 03:47:37 +0000 (15:47 +1200)]
Merge pull request #18180 from eileenmcnaughton/recur

dev/core#1945 Fix recur access regression

3 years agoMerge pull request #18188 from demeritcowboy/mysqli-mysql
Seamus Lee [Wed, 19 Aug 2020 03:03:05 +0000 (13:03 +1000)]
Merge pull request #18188 from demeritcowboy/mysqli-mysql

Put mysql back in civicrm.settings.php template

3 years agodev/core#1945 Fix recur access regression
eileen [Mon, 17 Aug 2020 09:17:09 +0000 (21:17 +1200)]
dev/core#1945 Fix recur access regression

3 years agoMerge pull request #18189 from demeritcowboy/widget-notice
Eileen McNaughton [Tue, 18 Aug 2020 19:29:03 +0000 (07:29 +1200)]
Merge pull request #18189 from demeritcowboy/widget-notice

E_NOTICE on contribution page widget tab

3 years agoe_notice on widget tab
demeritcowboy [Tue, 18 Aug 2020 14:27:12 +0000 (10:27 -0400)]
e_notice on widget tab

3 years agoput mysql back
demeritcowboy [Tue, 18 Aug 2020 12:35:29 +0000 (08:35 -0400)]
put mysql back

3 years agoMerge pull request #18183 from colemanw/versionCheck
Eileen McNaughton [Tue, 18 Aug 2020 06:25:52 +0000 (18:25 +1200)]
Merge pull request #18183 from colemanw/versionCheck

CRM_Utils_VersionCheck - respect force param

3 years agoMerge pull request #18174 from demeritcowboy/d8-upgrade-warning
Eileen McNaughton [Tue, 18 Aug 2020 04:20:46 +0000 (16:20 +1200)]
Merge pull request #18174 from demeritcowboy/d8-upgrade-warning

dev/core#1937 - Upgrade message about needing composer patching turned on and updating mysql in DSN strings

3 years agoMerge pull request #18187 from seamuslee001/master
Eileen McNaughton [Tue, 18 Aug 2020 04:19:11 +0000 (16:19 +1200)]
Merge pull request #18187 from seamuslee001/master

5.29

3 years agoMerge in 5.29
Seamus Lee [Tue, 18 Aug 2020 03:26:48 +0000 (13:26 +1000)]
Merge in 5.29

3 years agoMerge pull request #18185 from civicrm/revert-18091-xbutton-529
Eileen McNaughton [Tue, 18 Aug 2020 03:24:14 +0000 (15:24 +1200)]
Merge pull request #18185 from civicrm/revert-18091-xbutton-529

Revert "Swap out button/submit inputs for button elements"

3 years agoMerge pull request #18184 from totten/master-dao
Seamus Lee [Tue, 18 Aug 2020 02:28:16 +0000 (12:28 +1000)]
Merge pull request #18184 from totten/master-dao

(NFC) Update various DAO checksums

3 years agoRevert "Swap out button/submit inputs for button elements"
colemanw [Tue, 18 Aug 2020 00:49:42 +0000 (20:49 -0400)]
Revert "Swap out button/submit inputs for button elements"

3 years agoupgrade message about composer patches
demeritcowboy [Sun, 16 Aug 2020 21:24:04 +0000 (17:24 -0400)]
upgrade message about composer patches

3 years agoUpdate various DAO checksums
Tim Otten [Tue, 18 Aug 2020 00:10:12 +0000 (17:10 -0700)]
Update various DAO checksums

3 years agoMerge pull request #18169 from demeritcowboy/no-discount
Eileen McNaughton [Mon, 17 Aug 2020 21:37:04 +0000 (09:37 +1200)]
Merge pull request #18169 from demeritcowboy/no-discount

E_WARNING when saving event fees admin page if there's no discounts set

3 years agoCRM_Utils_VersionCheck - respect force param
Coleman Watts [Mon, 17 Aug 2020 21:29:59 +0000 (17:29 -0400)]
CRM_Utils_VersionCheck - respect force param

3 years agoRemove unnecessary transformation of upgrade msg severity
Coleman Watts [Mon, 17 Aug 2020 20:55:21 +0000 (16:55 -0400)]
Remove unnecessary transformation of upgrade msg severity

3 years agoMerge pull request #18181 from colemanw/upgrademsg
Eileen McNaughton [Mon, 17 Aug 2020 20:03:22 +0000 (08:03 +1200)]
Merge pull request #18181 from colemanw/upgrademsg

Upgrade screen - show success instead of error if already upgraded

3 years agoUpgrade screen - show success instead of error if already upgraded
Coleman Watts [Mon, 17 Aug 2020 15:39:53 +0000 (11:39 -0400)]
Upgrade screen - show success instead of error if already upgraded

3 years agoMerge pull request #18177 from eileenmcnaughton/gross
Matthew Wire [Mon, 17 Aug 2020 09:14:17 +0000 (10:14 +0100)]
Merge pull request #18177 from eileenmcnaughton/gross

Processors - remove gross_amount param from processors

3 years agoMerge pull request #18173 from civicrm/5.29
Seamus Lee [Mon, 17 Aug 2020 02:49:06 +0000 (12:49 +1000)]
Merge pull request #18173 from civicrm/5.29

5.29

3 years agoMerge pull request #18176 from agileware/CIVICRM-1465
Seamus Lee [Mon, 17 Aug 2020 02:48:29 +0000 (12:48 +1000)]
Merge pull request #18176 from agileware/CIVICRM-1465

{contribution.receipt_date} token does not use any CiviCRM date formatter, output in YYYY-MM-DD HH:MM:SS format and {contribution.receive_date} also uses a non-standard format

3 years agoProcessors - remove gross_amount param from processors
eileen [Mon, 17 Aug 2020 00:34:53 +0000 (12:34 +1200)]
Processors - remove gross_amount param from processors

The gross_amount param is returned by a bunch of processors but is not used so this removes it.

The core processors are often used as a starting point for extensions - we can see for example
this parameter is present in IATS so removing it helps clarify it as unnecessary & unused

3 years agoMerge pull request #18175 from demeritcowboy/installation-doclinks
Seamus Lee [Sun, 16 Aug 2020 23:26:35 +0000 (09:26 +1000)]
Merge pull request #18175 from demeritcowboy/installation-doclinks

Installation doclinks not getting url-rewritten

3 years agoMerge pull request #18170 from eileenmcnaughton/testc
Seamus Lee [Sun, 16 Aug 2020 22:31:46 +0000 (08:31 +1000)]
Merge pull request #18170 from eileenmcnaughton/testc

Minor cleanup in test class

3 years agoinstallation doclinks
demeritcowboy [Sun, 16 Aug 2020 22:29:50 +0000 (18:29 -0400)]
installation doclinks

3 years agoMerge pull request #18171 from demeritcowboy/unused-UTF8
Eileen McNaughton [Sun, 16 Aug 2020 21:52:05 +0000 (09:52 +1200)]
Merge pull request #18171 from demeritcowboy/unused-UTF8

[REF] Deprecate unused SQL temptable functions

3 years agoMerge pull request #18166 from demeritcowboy/cvv-required
Seamus Lee [Sun, 16 Aug 2020 21:00:19 +0000 (07:00 +1000)]
Merge pull request #18166 from demeritcowboy/cvv-required

cvv required html attribute should depend on backoffice setting

3 years agoMerge pull request #18154 from highfalutin/patch-5
Eileen McNaughton [Sun, 16 Aug 2020 20:02:50 +0000 (08:02 +1200)]
Merge pull request #18154 from highfalutin/patch-5

Mass SMS: Limit group selection to mailing groups

3 years agoMerge pull request #18172 from demeritcowboy/utilsarray-isset
Matthew Wire [Sun, 16 Aug 2020 17:53:58 +0000 (18:53 +0100)]
Merge pull request #18172 from demeritcowboy/utilsarray-isset

[REF] Update recent replacement for CRM_Utils_Array::value

3 years agodeprecate unused functions
demeritcowboy [Sun, 16 Aug 2020 13:17:14 +0000 (09:17 -0400)]
deprecate unused functions

3 years agoupdate replacement for utils_array::value
demeritcowboy [Sun, 16 Aug 2020 13:25:58 +0000 (09:25 -0400)]
update replacement for utils_array::value

3 years agoMerge pull request #18165 from civicrm/5.29
Eileen McNaughton [Sun, 16 Aug 2020 06:29:18 +0000 (18:29 +1200)]
Merge pull request #18165 from civicrm/5.29

5.29

3 years agoMinor cleanup in test class
eileen [Sun, 16 Aug 2020 04:23:35 +0000 (16:23 +1200)]
Minor cleanup in test class

3 years agoMerge pull request #18157 from mattwire/utilsarraycontributionmembership
Eileen McNaughton [Sun, 16 Aug 2020 04:13:35 +0000 (16:13 +1200)]
Merge pull request #18157 from mattwire/utilsarraycontributionmembership

Replace CRM_Utils_Array::value in contribution/confirm and bao/membership

3 years agoelement doesn't exist if there's no discounts set
demeritcowboy [Sun, 16 Aug 2020 02:41:25 +0000 (22:41 -0400)]
element doesn't exist if there's no discounts set

3 years agoCheck if $post defined before trying to use its field values.
Tom Anderson [Sun, 16 Aug 2020 02:37:36 +0000 (12:07 +0930)]
Check if $post defined before trying to use its field values.

Admin pages (e.g. in a custom plugin) may see $post as undefined. The existing usage to get permalinks for these pages can fill debug logs with PHP Notices.

3 years agorequired
demeritcowboy [Sun, 16 Aug 2020 01:43:21 +0000 (21:43 -0400)]
required

3 years agoMerge pull request #18163 from seamuslee001/5.29
Seamus Lee [Sun, 16 Aug 2020 01:28:13 +0000 (11:28 +1000)]
Merge pull request #18163 from seamuslee001/5.29

[REF] Remove unnecessary comma

3 years ago[REF] Remove unnecessary comma
Seamus Lee [Sat, 15 Aug 2020 23:31:54 +0000 (09:31 +1000)]
[REF] Remove unnecessary comma

3 years agoMerge pull request #18159 from civicrm/5.29
Seamus Lee [Sat, 15 Aug 2020 23:19:35 +0000 (09:19 +1000)]
Merge pull request #18159 from civicrm/5.29

5.29

3 years agoReplace CRM_Utils_Array::value in CRM_Member_BAO_Membership
Matthew Wire [Sat, 15 Aug 2020 13:45:57 +0000 (14:45 +0100)]
Replace CRM_Utils_Array::value in CRM_Member_BAO_Membership

3 years agoMerge pull request #18133 from eileenmcnaughton/utf529
Seamus Lee [Sat, 15 Aug 2020 20:48:05 +0000 (06:48 +1000)]
Merge pull request #18133 from eileenmcnaughton/utf529

Fix 5.29 (unreleased) regression using temp tables

3 years agoReplace CRM_Utils_Array::value in CRM_Contribute_Form_Contribution_Confirm
Matthew Wire [Sat, 15 Aug 2020 13:45:34 +0000 (14:45 +0100)]
Replace CRM_Utils_Array::value in CRM_Contribute_Form_Contribution_Confirm

3 years agoMerge pull request #18155 from eileenmcnaughton/member_order
Matthew Wire [Sat, 15 Aug 2020 09:40:43 +0000 (10:40 +0100)]
Merge pull request #18155 from eileenmcnaughton/member_order

Remove legacy handling for 'fixing' line_item.entity_id

3 years agoMerge pull request #18156 from eileenmcnaughton/renew
Matthew Wire [Sat, 15 Aug 2020 09:39:21 +0000 (10:39 +0100)]
Merge pull request #18156 from eileenmcnaughton/renew

Remove deprecated code ids['userId']

3 years agoRemove deprecated code ids['userId']
eileen [Sat, 15 Aug 2020 05:32:55 +0000 (17:32 +1200)]
Remove deprecated code ids['userId']

These lines were deprecated 7 months ago and were pretty edge case to start with

3 years agoRemove legacy handling for 'fixing' line_item.entity_id
eileen [Sat, 15 Aug 2020 04:52:40 +0000 (16:52 +1200)]
Remove legacy handling for 'fixing' line_item.entity_id

I tried to see what was happening with the test in https://github.com/civicrm/civicrm-core/pull/18113
and spotted that it wasn't using Order.api so the line items were likely wrong. However, once I set
it up to use the Order api I found the code we added back in 2018 to attempt to cope with other code
setting entity_id incorrectly was actually itself setting entity_id incorrectly. The issue
happens when there are 2 Memberships linked to one contribution & the removed code 'decides'
one is wrong and alters it. https://github.com/civicrm/civicrm-core/pull/11816

This line of code throws a deprecation notice - which has not been reported / apparently seen in the last
couple of years so I'm assuming it's not actually doing any good and without removing it this test actually
fails

3 years agoMass SMS: Limit group selection to mailing groups
highfalutin [Sat, 15 Aug 2020 04:15:23 +0000 (21:15 -0700)]
Mass SMS: Limit group selection to mailing groups

To populate the selector for mass SMS recipients, the form calls CRM_Core_PseudoConstant::nestedGroup(). However the function call was missing an argument, so all groups were being returned, not just mailing groups as intended. This PR corrects the mistake.

3 years agoMerge pull request #18142 from seamuslee001/ref_space_currency
Seamus Lee [Sat, 15 Aug 2020 02:01:43 +0000 (12:01 +1000)]
Merge pull request #18142 from seamuslee001/ref_space_currency

[REF] Remove usages of CRM_Utils_Money::format that pass in a blank s…

3 years agoMerge pull request #18148 from civicrm/5.29
Eileen McNaughton [Sat, 15 Aug 2020 01:27:52 +0000 (13:27 +1200)]
Merge pull request #18148 from civicrm/5.29

5.29

3 years agoMerge pull request #18151 from eileenmcnaughton/money
Seamus Lee [Sat, 15 Aug 2020 01:00:10 +0000 (11:00 +1000)]
Merge pull request #18151 from eileenmcnaughton/money

Use more appropriate money format function