civicrm-core.git
5 years agodev/core#561 - Convert campaign form date fields
Coleman Watts [Tue, 8 Jan 2019 17:08:39 +0000 (12:08 -0500)]
dev/core#561 - Convert campaign form date fields

5 years agoMerge pull request #13394 from totten/master-srchcache
colemanw [Tue, 8 Jan 2019 13:34:51 +0000 (08:34 -0500)]
Merge pull request #13394 from totten/master-srchcache

(dev/core#635) Reduce unnecessary SQL writes

5 years agoMerge pull request #12923 from vinuvarshith/scheduled-reminders-error-fix
Seamus Lee [Tue, 8 Jan 2019 07:40:38 +0000 (18:40 +1100)]
Merge pull request #12923 from vinuvarshith/scheduled-reminders-error-fix

dev/core#434: Check If 'absolute_date' Is Used In 'prepareRepetitionEndFilter' To Prevent SQL Error

5 years agoMerge pull request #13415 from seamuslee001/nfc_test_file_fixes
Seamus Lee [Tue, 8 Jan 2019 05:05:06 +0000 (16:05 +1100)]
Merge pull request #13415 from seamuslee001/nfc_test_file_fixes

(dev/core#647) Fix up Test Class names and file names to ensure all t…

5 years agoMerge pull request #13417 from civicrm/5.10
Eileen McNaughton [Tue, 8 Jan 2019 02:33:18 +0000 (15:33 +1300)]
Merge pull request #13417 from civicrm/5.10

5.10

5 years agoMerge pull request #13414 from eileenmcnaughton/count
Seamus Lee [Tue, 8 Jan 2019 02:28:30 +0000 (13:28 +1100)]
Merge pull request #13414 from eileenmcnaughton/count

Fix php 7.2 countable warning

5 years ago(dev/core#647) Fix up Test Class names and file names to ensure all test classes...
Seamus Lee [Mon, 7 Jan 2019 23:55:29 +0000 (10:55 +1100)]
(dev/core#647) Fix up Test Class names and file names to ensure all test classes are run by Jenkins

5 years agoFix php 7.2 countable warning
eileen [Mon, 7 Jan 2019 22:32:03 +0000 (11:32 +1300)]
Fix php 7.2 countable warning

per https://lab.civicrm.org/dev/core/issues/406#note_12393
Warning: count(): Parameter must be an array or an object that implements Countable in CRM_Event_Form_Participant->submit() (line 1722 of .../all/modules/civicrm/CRM/Event/Form/Participant.php).

5 years agoMerge pull request #13252 from jmcclelland/issue586
Eileen McNaughton [Mon, 7 Jan 2019 22:52:26 +0000 (11:52 +1300)]
Merge pull request #13252 from jmcclelland/issue586

PCP report - fix number of donors and total committed.

5 years agoMerge pull request #13413 from seamuslee001/nfc_test_utf8
Eileen McNaughton [Mon, 7 Jan 2019 22:51:44 +0000 (11:51 +1300)]
Merge pull request #13413 from seamuslee001/nfc_test_utf8

(NFC) Ensure that when loading in the test data it is done with UTF8 …

5 years ago(NFC) Ensure that when loading in the test data it is done with UTF8 encoding
Seamus Lee [Mon, 7 Jan 2019 21:17:13 +0000 (08:17 +1100)]
(NFC) Ensure that when loading in the test data it is done with UTF8 encoding

5 years agoPCP report - fix number of donors and total committed.
Jamie McClelland [Tue, 11 Dec 2018 21:40:58 +0000 (16:40 -0500)]
PCP report - fix number of donors and total committed.

ensure number of donors and committed are properly calculated in the PCP
report.

See: https://lab.civicrm.org/dev/core/issues/586

5 years agoMerge pull request #13411 from mattwire/fix_buildCustomDataTwice
colemanw [Mon, 7 Jan 2019 19:43:20 +0000 (14:43 -0500)]
Merge pull request #13411 from mattwire/fix_buildCustomDataTwice

Membership custom fields sometimes don't display

5 years agoFix build custom data twice on edit forms
Matthew Wire (MJW Consulting) [Mon, 7 Jan 2019 16:29:06 +0000 (16:29 +0000)]
Fix build custom data twice on edit forms

5 years agoMerge pull request #13408 from seamuslee001/lab_core_644
Monish Deb [Mon, 7 Jan 2019 12:28:43 +0000 (17:58 +0530)]
Merge pull request #13408 from seamuslee001/lab_core_644

(dev/core#644) Add in unit test showing backend able to handle user e…

5 years agoMerge pull request #13407 from MegaphoneJon/core-644
Monish Deb [Mon, 7 Jan 2019 07:27:41 +0000 (12:57 +0530)]
Merge pull request #13407 from MegaphoneJon/core-644

core#644 - extract function to return correct mailbox header

5 years ago(dev/core#644) Add in unit test showing backend able to handle user email address...
Seamus Lee [Mon, 7 Jan 2019 03:41:25 +0000 (14:41 +1100)]
(dev/core#644) Add in unit test showing backend able to handle user email address as from email sensibly

5 years agoMerge pull request #13393 from eileenmcnaughton/free
Seamus Lee [Mon, 7 Jan 2019 00:02:00 +0000 (11:02 +1100)]
Merge pull request #13393 from eileenmcnaughton/free

dev/core#562 remove calls to dao->free() from api folder

5 years agoMerge pull request #13402 from pradpnayak/ReportDelete
Eileen McNaughton [Sun, 6 Jan 2019 21:53:11 +0000 (10:53 +1300)]
Merge pull request #13402 from pradpnayak/ReportDelete

Donot show delete task option on create new report

5 years agorename function and vars; move fix to common mail sending function
Jon Goldberg [Sun, 6 Jan 2019 21:02:55 +0000 (16:02 -0500)]
rename function and vars; move fix to common mail sending function

5 years agoMerge pull request #13397 from pradpnayak/AddressCustomFieldFix
Seamus Lee [Sun, 6 Jan 2019 19:31:56 +0000 (06:31 +1100)]
Merge pull request #13397 from pradpnayak/AddressCustomFieldFix

dev/core/issues/636 - Custom field for Address: The "No" value is not defaulted

5 years agocore#644 - extract function to return correct mailbox header
Jon Goldberg [Sat, 5 Jan 2019 20:46:25 +0000 (15:46 -0500)]
core#644 - extract function to return correct mailbox header

5 years agoMerge pull request #13406 from eileenmcnaughton/api_getsingle
Seamus Lee [Sat, 5 Jan 2019 20:30:29 +0000 (07:30 +1100)]
Merge pull request #13406 from eileenmcnaughton/api_getsingle

Fix bug where getsingle calls chained actions twice

5 years agoMerge pull request #13405 from davejenx/core-640-repeat-activity-permission
Seamus Lee [Sat, 5 Jan 2019 20:23:31 +0000 (07:23 +1100)]
Merge pull request #13405 from davejenx/core-640-repeat-activity-permission

Don't require CiviEvent permission to create repeating activity

5 years agoMerge pull request #13318 from eileenmcnaughton/api_perm
Eileen McNaughton [Sat, 5 Jan 2019 08:29:49 +0000 (21:29 +1300)]
Merge pull request #13318 from eileenmcnaughton/api_perm

Do not check financial permissions on contribution.create if check_perrmissions is FALSE.

5 years agodev/core#643 fix for double delete attempt when chained with getsingle
eileen [Fri, 4 Jan 2019 22:24:20 +0000 (11:24 +1300)]
dev/core#643 fix for double delete attempt when chained with getsingle

5 years agodev/core#643 Add test for bug with double chaining on getsingle
eileen [Fri, 4 Jan 2019 22:21:24 +0000 (11:21 +1300)]
dev/core#643 Add test for bug with double chaining on getsingle

5 years agoDo not check financial permissions on contribution.create if check_permissions is...
eileen [Wed, 19 Dec 2018 05:17:40 +0000 (18:17 +1300)]
Do not check financial permissions on contribution.create if check_permissions is FALSE.

Our standard is to only check permissions at the api layer if check_permissions is TRUE
(which is is by default for javascript calls but not in php calls)

5 years agoMerge pull request #13396 from tschuettler/36-dev-mail
Eileen McNaughton [Fri, 4 Jan 2019 21:05:16 +0000 (10:05 +1300)]
Merge pull request #13396 from tschuettler/36-dev-mail

dev/mail#36 - Fix invalid unicode characters in bounce processing

5 years agodev/core/issues/640: don't require 'access CiviEvent' permission for civicrm/recurrin...
Dave Jenkins [Fri, 4 Jan 2019 17:59:51 +0000 (17:59 +0000)]
dev/core/issues/640: don't require 'access CiviEvent' permission for civicrm/recurringentity/preview.

5 years agoDonot show delete task option on create new report
Pradeep Nayak [Fri, 4 Jan 2019 15:51:08 +0000 (15:51 +0000)]
Donot show delete task option on create new report

5 years agoMake class name match the filepath make tests run
Thomas Schüttler [Fri, 4 Jan 2019 12:49:02 +0000 (13:49 +0100)]
Make class name match the filepath make tests run

5 years agodev/core/issues/636 - Check if value is isset rather empty
Pradeep Nayak [Fri, 4 Jan 2019 11:25:37 +0000 (11:25 +0000)]
dev/core/issues/636 - Check if value is isset rather empty

5 years agoMerge pull request #13382 from seamuslee001/report_cleanup
Yashodha Chaku [Fri, 4 Jan 2019 11:01:19 +0000 (16:31 +0530)]
Merge pull request #13382 from seamuslee001/report_cleanup

(dev/core#491) Campaign Cleanup in Activity, Member Contribution Deta…

5 years agoReplace invalid characters in bounce reason with unicode replacement character
Thomas Schüttler [Fri, 4 Jan 2019 10:57:27 +0000 (11:57 +0100)]
Replace invalid characters in bounce reason with unicode replacement character

5 years agoAdd unit test for invalid unicode character
Thomas Schüttler [Fri, 4 Jan 2019 10:43:51 +0000 (11:43 +0100)]
Add unit test for invalid unicode character

5 years agoMerge pull request #13185 from seamuslee001/lab_core_572
Seamus Lee [Fri, 4 Jan 2019 04:58:47 +0000 (15:58 +1100)]
Merge pull request #13185 from seamuslee001/lab_core_572

dev/core#527 Add in abiity to set translated text for Submit and Canc…

5 years ago(dev/core#635) Only write extra prevnext cache record if used
Tim Otten [Fri, 4 Jan 2019 03:31:04 +0000 (19:31 -0800)]
(dev/core#635) Only write extra prevnext cache record if used

This line of code creates an extra record to facilitate clearing the
SQL-based prevnext cache.  However, with Redis-based prevnext cache, it's
not needed because the Redis implementation simply uses a TTL -- and (on
Redis deployments) this lines to gratuitous SQL writes.

5 years ago(dev/core#635) CRM_Contact_Selector - Move count to 'long' cache
Tim Otten [Fri, 4 Jan 2019 03:20:28 +0000 (19:20 -0800)]
(dev/core#635) CRM_Contact_Selector - Move count to 'long' cache

The selector was set to specifically store the size of the result set in the
SQL-based cache.  For epic:ro-db, we should be able to store these in a
non-SQL location.  The `long` cache suffices.

5 years agoMerge pull request #13345 from GinkgoFJG/generic-settings-form
Eileen McNaughton [Thu, 3 Jan 2019 22:15:10 +0000 (11:15 +1300)]
Merge pull request #13345 from GinkgoFJG/generic-settings-form

Added support to generic settings form for sorting settings by weight.

5 years agoMerge pull request #13392 from PeaceWorksTechnologySolutions/master
Eileen McNaughton [Thu, 3 Jan 2019 21:41:46 +0000 (10:41 +1300)]
Merge pull request #13392 from PeaceWorksTechnologySolutions/master

dev/mail#32 - Making mailing test email non-case-sensitive

5 years agodev/core#562 remove calls to dao->free() from api folder
eileen [Thu, 3 Jan 2019 21:34:56 +0000 (10:34 +1300)]
dev/core#562 remove calls to dao->free() from api folder

Per gitlab

The DAO object since ? 4.7.x? has been freed on _destruct. Using the ->free action has been demonstrated to create some rare bugs - ie. because query sets from the outer loop can be lost. There is no benefit in calling it any more and some harm

https://github.com/civicrm/civicrm-core/pull/13192 was the last one in this series

5 years ago(dev/core#491) Campaign Cleanup in Activity, Member Contribution Detail and Member...
Seamus Lee [Wed, 2 Jan 2019 20:32:55 +0000 (07:32 +1100)]
(dev/core#491) Campaign Cleanup in Activity, Member Contribution Detail and Member Lapse reports

5 years agoMaking mailing test email non-case-sensitive
Martin [Thu, 3 Jan 2019 19:50:31 +0000 (19:50 +0000)]
Making mailing test email non-case-sensitive
https://lab.civicrm.org/dev/mail/issues/32

5 years agoMerge pull request #13280 from aydun/tokenrow_fix
Seamus Lee [Thu, 3 Jan 2019 15:14:13 +0000 (02:14 +1100)]
Merge pull request #13280 from aydun/tokenrow_fix

Fix  \Civi\Token\TokenRow::customToken() failure if field is not set

5 years agoMerge pull request #13284 from aydun/evaluate_fix
Seamus Lee [Thu, 3 Jan 2019 15:07:47 +0000 (02:07 +1100)]
Merge pull request #13284 from aydun/evaluate_fix

Prevent \Civi\Token\TokenCompatSubscriber::evaluate() erroring when no contactId is given.

5 years agoMerge pull request #13282 from aydun/custom_value_zero
Seamus Lee [Thu, 3 Jan 2019 15:06:50 +0000 (02:06 +1100)]
Merge pull request #13282 from aydun/custom_value_zero

Format token custom fields with value of 0 correctly

5 years agoMerge pull request #13286 from aydun/tokenprocessor_schema
Seamus Lee [Thu, 3 Jan 2019 15:05:58 +0000 (02:05 +1100)]
Merge pull request #13286 from aydun/tokenprocessor_schema

(NFC) Add 'schema' to \Civi\Token\TokenProcessor()

5 years agoMerge pull request #13279 from aydun/list_tokens
Seamus Lee [Thu, 3 Jan 2019 15:05:04 +0000 (02:05 +1100)]
Merge pull request #13279 from aydun/list_tokens

(NFC) Add listTokens() function to return formatted list of tokens for forms

5 years agoMerge pull request #13278 from aydun/abstract_token_class_prop
Seamus Lee [Thu, 3 Jan 2019 15:04:30 +0000 (02:04 +1100)]
Merge pull request #13278 from aydun/abstract_token_class_prop

(REF) Make activeTokens a class property of \Civi\Token\AbstractTokenSubscriber

5 years agoSet version to 5.11.alpha1
CiviCRM [Thu, 3 Jan 2019 03:28:13 +0000 (03:28 +0000)]
Set version to 5.11.alpha1

5 years agoSet version to 5.10.beta1
CiviCRM [Thu, 3 Jan 2019 03:23:31 +0000 (03:23 +0000)]
Set version to 5.10.beta1

5 years agoMerge pull request #13389 from civicrm/5.9
Seamus Lee [Thu, 3 Jan 2019 02:24:38 +0000 (13:24 +1100)]
Merge pull request #13389 from civicrm/5.9

5.9

5 years agoMerge pull request #13388 from totten/5.9-msg-tweak
Seamus Lee [Thu, 3 Jan 2019 02:24:22 +0000 (13:24 +1100)]
Merge pull request #13388 from totten/5.9-msg-tweak

Five Nine - Revise upgrade notice about Money/Int/Float fields

5 years agoFineNine - Revise upgrade notice to be less alarming
Tim Otten [Thu, 3 Jan 2019 00:36:39 +0000 (16:36 -0800)]
FineNine - Revise upgrade notice to be less alarming

Based on discussion at https://github.com/civicrm/civicrm-core/pull/13384/files#r244890998

5 years ago(NFC) FiveNine.php - Whitespace
Tim Otten [Thu, 3 Jan 2019 00:24:08 +0000 (16:24 -0800)]
(NFC) FiveNine.php - Whitespace

5 years agoMerge pull request #13386 from civicrm/5.9
Eileen McNaughton [Thu, 3 Jan 2019 00:13:34 +0000 (13:13 +1300)]
Merge pull request #13386 from civicrm/5.9

5.9

5 years agoMerge pull request #13387 from seamuslee001/release_notes_update
Eileen McNaughton [Thu, 3 Jan 2019 00:12:58 +0000 (13:12 +1300)]
Merge pull request #13387 from seamuslee001/release_notes_update

Update 5.9 Release notes for final fixes

5 years agoMerge pull request #13385 from eileenmcnaughton/5.9
Seamus Lee [Thu, 3 Jan 2019 00:10:29 +0000 (11:10 +1100)]
Merge pull request #13385 from eileenmcnaughton/5.9

dev/core#619 fix regression on Address contact-reference fields not rendering results

5 years agoUpdate 5.9 Release notes for final fixes
Seamus Lee [Wed, 2 Jan 2019 23:27:03 +0000 (10:27 +1100)]
Update 5.9 Release notes for final fixes

5 years agoMerge pull request #13384 from seamuslee001/dev_core_337
Seamus Lee [Wed, 2 Jan 2019 23:19:32 +0000 (10:19 +1100)]
Merge pull request #13384 from seamuslee001/dev_core_337

dev/core#337 Add in upgrade script to set search by range to be false…

5 years agoMerge pull request #13189 from JMAConsulting/core-564
Seamus Lee [Wed, 2 Jan 2019 22:49:58 +0000 (09:49 +1100)]
Merge pull request #13189 from JMAConsulting/core-564

dev-core#564: Differentiate case relationships in Contact Summary page

5 years agodev/core#619 fix regression on Address contact-reference fields not rendering results.
eileen [Wed, 2 Jan 2019 22:05:20 +0000 (11:05 +1300)]
dev/core#619 fix regression on Address contact-reference fields not rendering results.

Fixing results not rendering on onbehalf profiles broke addresses - this
limits the handling added for onbehalf to only apply to onbehalf.

5 years agoMerge pull request #13314 from colemanw/dev/core#337
Eileen McNaughton [Wed, 2 Jan 2019 21:34:41 +0000 (10:34 +1300)]
Merge pull request #13314 from colemanw/dev/core#337

dev/core#337 - Fix search range for select/radio custom fields

5 years agodev/core#337 Add in upgrade script to set search by range to be false for Fields...
Seamus Lee [Wed, 2 Jan 2019 21:30:00 +0000 (08:30 +1100)]
dev/core#337 Add in upgrade script to set search by range to be false for Fields of money, float, int with widget types radio and select which were how they were effectively implementeted originally

5 years agoMerge pull request #13381 from civicrm/5.9
Eileen McNaughton [Wed, 2 Jan 2019 20:19:09 +0000 (09:19 +1300)]
Merge pull request #13381 from civicrm/5.9

5.9.0 release notes (#13244) to master

5 years ago5.9.0 release notes (#13244)
Andrew Hunt [Wed, 2 Jan 2019 20:18:04 +0000 (15:18 -0500)]
5.9.0 release notes (#13244)

5 years agoMerge pull request #13380 from yashodha/campaign_report_clean
Eileen McNaughton [Wed, 2 Jan 2019 20:08:50 +0000 (09:08 +1300)]
Merge pull request #13380 from yashodha/campaign_report_clean

(dev/core#491) campaign cleanup for member summary report and show di…

5 years agoMerge pull request #13338 from eileenmcnaughton/export
Eileen McNaughton [Wed, 2 Jan 2019 19:47:10 +0000 (08:47 +1300)]
Merge pull request #13338 from eileenmcnaughton/export

Export merge to household - fix DB error relating to fields too long for table.

5 years ago(dev/core#491) campaign cleanup for member summary report and show disabled campaigns...
yashodha [Wed, 2 Jan 2019 11:39:36 +0000 (17:09 +0530)]
(dev/core#491) campaign cleanup for member summary report and show disabled campaigns as well.

5 years agoMerge pull request #13358 from yashodha/campaign_reports
Seamus Lee [Wed, 2 Jan 2019 07:17:00 +0000 (18:17 +1100)]
Merge pull request #13358 from yashodha/campaign_reports

(dev/core#491) campaign cleanup for 'pledged but not paid' report and…

5 years agoMerge pull request #13379 from yashodha/campaign_report_clean
Seamus Lee [Wed, 2 Jan 2019 05:39:13 +0000 (16:39 +1100)]
Merge pull request #13379 from yashodha/campaign_report_clean

(dev/core#491) campaign cleanup for member detail report and show dis…

5 years agodev-core#564: Differentiate case relationships in Contact Summary page
Monish Deb [Fri, 30 Nov 2018 12:16:49 +0000 (17:46 +0530)]
dev-core#564: Differentiate case relationships in Contact Summary page

5 years ago(dev/core#491) campaign cleanup for member detail report and show disabled campaigns...
yashodha [Wed, 2 Jan 2019 04:08:17 +0000 (09:38 +0530)]
(dev/core#491) campaign cleanup for member detail report and show disabled campaigns as well.

5 years agoMerge pull request #13378 from eileenmcnaughton/activity_notice
Seamus Lee [Wed, 2 Jan 2019 02:11:00 +0000 (13:11 +1100)]
Merge pull request #13378 from eileenmcnaughton/activity_notice

Fix notice on first loading activity search form

5 years agoFix notice on first loading activity search form
eileen [Wed, 2 Jan 2019 00:44:02 +0000 (13:44 +1300)]
Fix notice on first loading activity search form

5 years agoMerge pull request #13372 from eileenmcnaughton/activity_extract
Seamus Lee [Tue, 1 Jan 2019 23:01:46 +0000 (10:01 +1100)]
Merge pull request #13372 from eileenmcnaughton/activity_extract

Simplify handling for case checking.

5 years agoMerge pull request #13376 from yashodha/campaign_report_clean
Seamus Lee [Tue, 1 Jan 2019 21:09:31 +0000 (08:09 +1100)]
Merge pull request #13376 from yashodha/campaign_report_clean

(dev/core#491) campaign cleanup for participant listing report and sh…

5 years agoMerge pull request #13375 from yashodha/dev_622
Seamus Lee [Tue, 1 Jan 2019 20:27:30 +0000 (07:27 +1100)]
Merge pull request #13375 from yashodha/dev_622

(dev/core#622) User Dashboard doesn't show Edit Contact Information link

5 years ago(dev/core#491) campaign cleanup for participant listing report and show disabled...
yashodha [Tue, 1 Jan 2019 16:25:28 +0000 (21:55 +0530)]
(dev/core#491) campaign cleanup for participant listing report and show disabled campaigns as well.

5 years ago(dev/core#622) User Dashboard doesn't show Edit Contact Information link
yashodha [Tue, 1 Jan 2019 13:08:10 +0000 (18:38 +0530)]
(dev/core#622) User Dashboard doesn't show Edit Contact Information link

5 years agoMerge pull request #13344 from seamuslee001/unit_test_13343
Seamus Lee [Tue, 1 Jan 2019 06:26:47 +0000 (17:26 +1100)]
Merge pull request #13344 from seamuslee001/unit_test_13343

Add in unit test to support changes in UF API in PR 13343

5 years agoMerge pull request #13343 from GinkgoFJG/case-issues-w-ufgroup-api
Seamus Lee [Tue, 1 Jan 2019 01:09:05 +0000 (12:09 +1100)]
Merge pull request #13343 from GinkgoFJG/case-issues-w-ufgroup-api

Improved support for case variability in UF* API calls.

5 years agoExport merge to household - fix DB error relating to fields too long for table.
eileen [Fri, 21 Dec 2018 03:35:57 +0000 (16:35 +1300)]
Export merge to household - fix DB error relating to fields too long for table.

The key fix here is that the fields for merging to household are no longer added to the temporary table.

They are fully loaded in php anyway so there is no performance gain using a temp table.
Instead we iterate them in php as we process each row

5 years agoremove unneccessary code
yashodha [Mon, 31 Dec 2018 05:23:24 +0000 (10:53 +0530)]
remove unneccessary code

5 years agoMerge pull request #13370 from eileenmcnaughton/payment
Seamus Lee [Mon, 31 Dec 2018 03:39:57 +0000 (14:39 +1100)]
Merge pull request #13370 from eileenmcnaughton/payment

[REF] extract internals of Payment.create into function on BAO class.

5 years agoSimplify handling for case checking.
eileen [Wed, 24 Oct 2018 02:36:51 +0000 (15:36 +1300)]
Simplify handling for case checking.

We already check if the contact has generic case permissions in the component checking section.

We can remove that check from the case check & also early return from there since a NO
at that point can't be overriden

5 years ago[REF] extract internals of Payment.create into function on BAO class.
eileen [Sun, 30 Dec 2018 21:45:47 +0000 (10:45 +1300)]
[REF] extract internals of Payment.create into function on BAO class.

This is a partial of https://github.com/civicrm/civicrm-core/pull/13330 - trying
to separate out the main code move from the changes. My only change was to change the name to
addPayment since that is what we are doing but here are some additionaly thoughts.

1) I'm inclined to put the class onto a new pseudo-bao CRM_Finanial_BAO_Payment. We already have this
pseudo-entity on the api level & it gives us a way to build up a place for the functions we are migrating
towards.

2) I think we should consider changing the input parameters to this function to be
- contributionID, total_amount & line_items or in some way limiting the parameters tha
t get passed through. We have historically gotten ourselves in trouble by
having people hacking in another parameter to go through whereas the strength of the api
is clear inputs & outputs. I note the api will need to support
'is_email_receipt' as will this fn & the CRM_Contribute_Form_AdditionalPayment::emailReceipt
should be moved off the form layer - possibly to our new BAO

3) I think the exceptions need to be CRM_Core_Exceptions if thrown in the BAO although this is kinda cosmetic

Change-Id: Ib5caf0d878e9c5cc735cb1a20c640f61da2dbfc6

5 years agoMerge pull request #13371 from eileenmcnaughton/activity_extract
Seamus Lee [Mon, 31 Dec 2018 00:15:58 +0000 (11:15 +1100)]
Merge pull request #13371 from eileenmcnaughton/activity_extract

[REF] simplify CRM_Activity_BAO_Activity function by using early returns

5 years ago[REF] simplify CRM_Activity_BAO_Activity function by using early returns.
eileen [Sun, 30 Dec 2018 22:33:12 +0000 (11:33 +1300)]
[REF] simplify CRM_Activity_BAO_Activity function by using early returns.

This function returns a bool. In the process it sets the  variable, however, once set to false in two places
it can never be set to true, so I am simply replacing a big if block with an early return to simplify the code.

This is a further block that can go but it is a slightly different patter & would remove 2 levels of 'if'
so it feels like an easier review if I leave that out of scope

5 years agoMerge pull request #13367 from mattwire/nfc_commentscustomfield
Seamus Lee [Sat, 29 Dec 2018 22:34:23 +0000 (09:34 +1100)]
Merge pull request #13367 from mattwire/nfc_commentscustomfield

NFC tidy up comments, remove unused variables in customfield classes

5 years agoMerge pull request #13368 from mattwire/case_cachecount
Seamus Lee [Sat, 29 Dec 2018 22:33:56 +0000 (09:33 +1100)]
Merge pull request #13368 from mattwire/case_cachecount

Cache case count when getting list of cases so query is executed once instead of three times

5 years agoMerge pull request #13359 from chamilwijesooriya/issue-625
Seamus Lee [Sat, 29 Dec 2018 21:16:46 +0000 (08:16 +1100)]
Merge pull request #13359 from chamilwijesooriya/issue-625

(dev/core#625) DB error on Case Summary report

5 years agoMerge pull request #13328 from eileenmcnaughton/phone_handle
Seamus Lee [Sat, 29 Dec 2018 20:32:03 +0000 (07:32 +1100)]
Merge pull request #13328 from eileenmcnaughton/phone_handle

[REF] genericise function to add pseudoconstant data to fields to process

5 years agoMerge pull request #13360 from ray-wright/patch-2
Seamus Lee [Sat, 29 Dec 2018 20:29:05 +0000 (07:29 +1100)]
Merge pull request #13360 from ray-wright/patch-2

Revert to showing overdue activities on a case first

5 years agoCache case count when getting list of cases so query is executed once instead of...
Matthew Wire (MJW Consulting) [Sat, 29 Dec 2018 12:15:17 +0000 (12:15 +0000)]
Cache case count when getting list of cases so query is executed once instead of three times

5 years agoNFC tidy up comments, remove unused variables in customfield classes
Matthew Wire (MJW Consulting) [Sat, 29 Dec 2018 11:13:57 +0000 (11:13 +0000)]
NFC tidy up comments, remove unused variables in customfield classes

5 years agoMerge pull request #13366 from seamuslee001/refinement_623
Seamus Lee [Sat, 29 Dec 2018 04:44:15 +0000 (15:44 +1100)]
Merge pull request #13366 from seamuslee001/refinement_623

dev/core#623 Refine the upgrade statement to only those of the old st…

5 years agodev/core#623 Refine the upgrade statement to only those of the old standard value
Seamus Lee [Sat, 29 Dec 2018 03:16:08 +0000 (14:16 +1100)]
dev/core#623 Refine the upgrade statement to only those of the old standard value

5 years agoGitLab issue 625 DB error on Case Summary report
Chamil Wijesooriya [Thu, 27 Dec 2018 12:23:17 +0000 (12:23 +0000)]
GitLab issue 625 DB error on Case Summary report