Seamus Lee [Mon, 11 Feb 2019 21:43:32 +0000 (08:43 +1100)]
Merge pull request #13570 from eileenmcnaughton/cc_510
Fix regression whereby making receive_date required breaks back office cc
eileen [Mon, 11 Feb 2019 20:16:22 +0000 (09:16 +1300)]
Fix regression whereby making receive_date required breaks back office cc
Regression from https://lab.civicrm.org/dev/core/issues/680
led to https://civicrm.stackexchange.com/questions/28410/unable-to-take-credit-card-payment-after-civi-update
Tim Otten [Thu, 7 Feb 2019 00:30:09 +0000 (19:30 -0500)]
Update 5.10.0.md
CiviCRM [Thu, 7 Feb 2019 00:24:28 +0000 (00:24 +0000)]
Set version to 5.10.0
Seamus Lee [Wed, 6 Feb 2019 20:47:11 +0000 (12:47 -0800)]
Merge pull request #13494 from agh1/5.10.0-releasenotes
5.10.0 release notes
Andrew Hunt [Wed, 6 Feb 2019 14:49:40 +0000 (09:49 -0500)]
5.10.0 release notes: late changes, credits, and last-minute fixes
Tim Otten [Wed, 16 Jan 2019 22:12:16 +0000 (14:12 -0800)]
Add release-notes/5.9.1.md
Alice Frumin [Wed, 6 Feb 2019 14:29:08 +0000 (09:29 -0500)]
5.10.0 release notes: bulk of edits
* pulling out misc and organizing lines with gitlab issue numbers
* linking to gitlab issues
* update lines with gitlab issues to have the gitlab titles
* progress
* second pass
* finished first pass of notes
* deleting rows related to merge
* reorganizing sections
Andrew Hunt [Tue, 22 Jan 2019 19:05:14 +0000 (14:05 -0500)]
5.10.0 release notes: added boilerplate
Andrew Hunt [Tue, 22 Jan 2019 19:01:53 +0000 (14:01 -0500)]
5.10.0 release notes: raw from script
Monish Deb [Wed, 6 Feb 2019 04:16:32 +0000 (09:46 +0530)]
Merge pull request #13536 from eileenmcnaughton/export_sc
dev/core#651 Fix group by on export soft credits (possible recent regression, clearly wrong).
eileen [Tue, 5 Feb 2019 06:04:21 +0000 (19:04 +1300)]
dev/core#651 Fix group by on export soft credits (possible recent regression, clearly wrong).
As pointed out by the reporter the group by is being calculated as if it were a string but it's an array, this fixes.
This code has been touched recently so it might be a recent regression. 5.10 is the first release in a long time where
export is working in some mysql / output configs after a big refactor to get rid of wide temp tables
Monish Deb [Tue, 5 Feb 2019 13:51:09 +0000 (19:21 +0530)]
Merge pull request #13537 from eileenmcnaughton/cont_comp
dev/core#680 make receive_date required on backoffice contribution form
eileen [Tue, 5 Feb 2019 08:07:16 +0000 (21:07 +1300)]
dev/core#680 make receive_date required on backoffice contribution form
and api
Discussion on https://lab.civicrm.org/dev/core/issues/680#note_13205
Eileen McNaughton [Tue, 5 Feb 2019 04:18:40 +0000 (17:18 +1300)]
Merge pull request #13533 from eileenmcnaughton/prev_next
Prev next
eileen [Tue, 5 Feb 2019 01:58:53 +0000 (14:58 +1300)]
Disable full group by mode whe groupContacts is TRUE
This prevents an error when using the cache and allows us to move
past this without untangling the messy way other tables are joined back in
for now.
Note it became necessary due to query changes off the cache but the query is no
different in accuracy
Aidan Saunders [Mon, 4 Feb 2019 17:50:30 +0000 (17:50 +0000)]
dev/core#695 - Make custom searches slightly less fragile
eileen [Mon, 4 Feb 2019 23:59:51 +0000 (12:59 +1300)]
dev/core#679 fix loss of search results when including tags or groups.
The bug as described was a bit tricksy to replicate as it is inconsistent and the
code is not actually outputting the tags/ groups. I think these are pre-existing issues
I was able to replicate by having 2 search profiles - one with only tags & one one with only groups & switching back & and force on output - once I replicated I found that there was a regression due to
https://github.com/eileenmcnaughton/civicrm-core/commit/
2ca46d4d5a8cd15929ac0939ca2bb380a3de027e#diff-e54381bfdf51e31cab376c71ca0d66ffR4967
whereby the groupBy had been dropped, causing the results to be squashed into a single row
Seamus Lee [Mon, 4 Feb 2019 07:37:07 +0000 (23:37 -0800)]
Merge pull request #13524 from eileenmcnaughton/search_rc
Revert fix causing unreleased regression
eileen [Mon, 4 Feb 2019 05:03:49 +0000 (18:03 +1300)]
Revert "Assign the translated formValues to itself"
This reverts commit
e8ef090642f0ff5639166b847a31f4e50eec3dd6.
eileen [Mon, 4 Feb 2019 04:39:41 +0000 (17:39 +1300)]
Revert "Rewrite testHiddenSmartGroup"
This reverts commit
7810fa53a7f5d8be82ebda7fde122d0fd349d358.
colemanw [Wed, 23 Jan 2019 22:02:25 +0000 (17:02 -0500)]
Merge pull request #13478 from pradpnayak/eventRegression
dev/core/issues/653, fixed regression on creating new event using event template
Pradeep Nayak [Wed, 16 Jan 2019 23:16:48 +0000 (23:16 +0000)]
dev/core/issues/653, fixed regression on creating new event using event template
Use core function to over-ride values
Tim Otten [Wed, 16 Jan 2019 21:42:36 +0000 (13:42 -0800)]
Merge pull request #13451 from eileenmcnaughton/everyone_510
(dev/core#660) Address regression whereby Anonymous users can no longer register for an event if they have ACLs to see a contact
eileen [Tue, 15 Jan 2019 00:48:18 +0000 (13:48 +1300)]
Remove foreign key on civicrm_acl_contact_id.user_id.
This won't actually remove it from installs - we need to address that separately via ensuring people can and do run
the System.updateIndices api call but it removes it from new installs and from
tests, hence the test should pass
eileen [Mon, 14 Jan 2019 23:48:36 +0000 (12:48 +1300)]
Fix mishandling / loss of check_permission flag
eileen [Mon, 14 Jan 2019 23:44:50 +0000 (12:44 +1300)]
Add test to demonstrate fatal error when accessing permitted users that are cached using the acl_cache.
This has arisen during investigation of a possible regression - it turns out that if you give the 'everyone' group
access to a contact using ACLs (or hooks I believe) they get a fatal error on any attempt at event or other registration.
The issue is that when attempting to check for duplicates the call is made using check_permission. This in itself is a possible
regression as the CRM_Dedupe_Finder::dupesByParams function now drops the check_permission key when it is equal to 0 from
https://github.com/civicrm/civicrm-core/commit/
4f33e78b901fb7cdb38a3026f88b59a2f9fd2c68
So we have an issue that
1) we are now applying check_permission when doing a dupe_check from front end forms - this probably is resulting in 5.9
sites getting too many duplicates are they would always be null for anon users
2) if we DO do a permissions check when an acl or hook has been used to give anon users permission to access
contacts then they will get a fatal error. This is because it sets contact_id to 0 and attempts to insert it into the
acl_contact_cache.
I think we need to either remove the array_filter line that we think we may not need per code comments
or add specific handling for the check_permission flag
AND drop the foreign key constraint on the civicm_acl_contact_cache table. This means they will
no longer be removed when a contact is deleted but this is a clean up issue rather than one with
functionaly implications & we *should* have some form of cleanup in play on that table. In addition,
removing the constraint will reduce write contention
Eileen McNaughton [Mon, 14 Jan 2019 23:03:01 +0000 (12:03 +1300)]
Merge pull request #13448 from eileenmcnaughton/everyone_510
Fix unreleased regression on building GroupContact clause
Eileen McNaughton [Mon, 14 Jan 2019 23:01:43 +0000 (12:01 +1300)]
Merge pull request #13449 from colemanw/caseDateSearch
Fix broken case activity date filter
eileen [Mon, 14 Jan 2019 10:39:03 +0000 (23:39 +1300)]
Fix unreleased regression whereby acls are skipped for groups
Coleman Watts [Mon, 14 Jan 2019 17:22:07 +0000 (12:22 -0500)]
Fix broken case activity date filter
eileen [Mon, 14 Jan 2019 09:04:45 +0000 (22:04 +1300)]
Add unit test to cover granting everyone' group permission to access a group
Seamus Lee [Mon, 14 Jan 2019 02:01:53 +0000 (13:01 +1100)]
Merge pull request #13445 from seamuslee001/dev-656
(dev/core#656) unreleased regression - attendee report generates unde…
yashodha [Thu, 10 Jan 2019 12:07:34 +0000 (17:37 +0530)]
(dev/core#656) unreleased regression - attendee report generates undefined property notice
Seamus Lee [Thu, 10 Jan 2019 10:03:41 +0000 (21:03 +1100)]
Merge pull request #13429 from seamuslee001/5.10
Port Test fixes to 5.10
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
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
Seamus Lee [Tue, 8 Jan 2019 01:18:10 +0000 (12:18 +1100)]
(dev/core#647) Fix Up Contact Selector Test by changing class name to get test to run and make changes following code changes that affect clauses and calling get rows
CRM_Contact_SelectorTest - Fix escaping
(dev/core#217) CRM_Contact_SelectorTest - Remove stale/unnecessary assertion
The table `civicrm_prevnext_cache` includes three columns (`entity_id1`,
`entity_id2`, `entity_table`). These columns have some use-cases (e.g. for
deduping) and some historical value, but the only one needed for
caching search-results is `entity_id1`.
dev/core#217 introduced an interface `CRM_Core_PrevNextCache_Interface` for
caching search-results. This interface only passes through a list of CID's
(effectively `entity_id1`); because we don't need `entity_id2` and
`entity_table`, it makes no provisions for passing them through, and they're
not saved. This simplifies the interface and makes it more realistic to
implement alternative prevnext storage mechanisms.
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
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).
CiviCRM [Thu, 3 Jan 2019 03:23:31 +0000 (03:23 +0000)]
Set version to 5.10.beta1
Seamus Lee [Thu, 3 Jan 2019 02:24:38 +0000 (13:24 +1100)]
Merge pull request #13389 from civicrm/5.9
5.9
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
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
Tim Otten [Thu, 3 Jan 2019 00:24:08 +0000 (16:24 -0800)]
(NFC) FiveNine.php - Whitespace
Eileen McNaughton [Thu, 3 Jan 2019 00:13:34 +0000 (13:13 +1300)]
Merge pull request #13386 from civicrm/5.9
5.9
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
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
Seamus Lee [Wed, 2 Jan 2019 23:27:03 +0000 (10:27 +1100)]
Update 5.9 Release notes for final fixes
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…
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
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.
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
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
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
Andrew Hunt [Wed, 2 Jan 2019 20:18:04 +0000 (15:18 -0500)]
5.9.0 release notes (#13244)
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…
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.
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.
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…
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…
Monish Deb [Fri, 30 Nov 2018 12:16:49 +0000 (17:46 +0530)]
dev-core#564: Differentiate case relationships in Contact Summary page
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.
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
eileen [Wed, 2 Jan 2019 00:44:02 +0000 (13:44 +1300)]
Fix notice on first loading activity search form
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.
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…
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
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.
yashodha [Tue, 1 Jan 2019 13:08:10 +0000 (18:38 +0530)]
(dev/core#622) User Dashboard doesn't show Edit Contact Information link
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
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.
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
yashodha [Mon, 31 Dec 2018 05:23:24 +0000 (10:53 +0530)]
remove unneccessary code
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.
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
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
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
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
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
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
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
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
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
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
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
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…
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
Chamil Wijesooriya [Thu, 27 Dec 2018 12:23:17 +0000 (12:23 +0000)]
GitLab issue 625 DB error on Case Summary report
Seamus Lee [Fri, 28 Dec 2018 10:21:01 +0000 (21:21 +1100)]
Merge pull request #13299 from colemanw/activityDate
Activity date fields -> datepicker
Seamus Lee [Fri, 28 Dec 2018 09:27:53 +0000 (20:27 +1100)]
Merge pull request #13336 from mattwire/missingcaseaddaction
Don't crash with missing class if action is not defined when opening new case
Seamus Lee [Fri, 28 Dec 2018 08:51:37 +0000 (19:51 +1100)]
Merge pull request #13363 from civicrm/5.9
5.9
Seamus Lee [Fri, 28 Dec 2018 08:27:19 +0000 (19:27 +1100)]
Merge pull request #13361 from seamuslee001/lab_core_594
(dev/core#594) Fix key-value mappings for WYSIWYG setting (editor_id). Accept keyColumn option.
Eileen McNaughton [Fri, 28 Dec 2018 08:19:57 +0000 (21:19 +1300)]
Merge pull request #13362 from seamuslee001/lab_core_623
dev/core#623 add in upgrade step to update Away type hold threshold t…
Tim Otten [Fri, 28 Dec 2018 06:59:41 +0000 (22:59 -0800)]
FiveNine.php - Copy-edit post-upgrade message
Seamus Lee [Thu, 27 Dec 2018 21:37:52 +0000 (08:37 +1100)]
dev/core#594 Fix issue where editor_id is expected to be keyed on name not on value
Add in a post upgrade message encourging people to check their editor setting
Seamus Lee [Fri, 28 Dec 2018 02:46:23 +0000 (13:46 +1100)]
dev/core#623 add in upgrade step to update Away type hold threshold to be 30 as agreed to in CRM-6405 version 3.2. It appears there may have been no upgrade made at the type so catching up now
Seamus Lee [Thu, 27 Dec 2018 21:08:55 +0000 (08:08 +1100)]
Merge pull request #13215 from mattwire/recur_invoice_selfservice_links
Display self-service links in email receipts based on payment processor capabilities
Coleman Watts [Mon, 17 Dec 2018 18:36:46 +0000 (13:36 -0500)]
dev/core#561 - case_start_date field -> datepicker
Coleman Watts [Thu, 6 Dec 2018 18:50:39 +0000 (13:50 -0500)]
activity_duration field -> number