eileen [Thu, 23 May 2019 12:11:38 +0000 (00:11 +1200)]
Add unit test for merge handling on custom data.
This also moves the start & stop of the transaction to being further out so a hard fail
later doesn't leave a half-merged state
Matthew Wire [Thu, 23 May 2019 09:44:15 +0000 (10:44 +0100)]
Merge pull request #14303 from eileenmcnaughton/extract_cache
[REF] extract buildGroupTree function
Matthew Wire [Thu, 23 May 2019 09:37:14 +0000 (10:37 +0100)]
Merge pull request #14301 from eileenmcnaughton/reltest
[REF] Test class cleanup - Extract function to create nuanced custom fields to a trait
Eileen McNaughton [Thu, 23 May 2019 07:37:31 +0000 (19:37 +1200)]
Merge pull request #14102 from jitendrapurohit/core-888
dev/core#888 - Backoffice participant transfer form does not populate…
Eileen McNaughton [Thu, 23 May 2019 03:18:24 +0000 (15:18 +1200)]
Merge pull request #14306 from eileenmcnaughton/doc_block
[NFC] fix comment blocks capitalising null
Eileen McNaughton [Thu, 23 May 2019 02:29:59 +0000 (14:29 +1200)]
Merge pull request #14305 from eileenmcnaughton/bool
[NFC] fix more places where var is declared as boolean rather than bool
eileen [Wed, 22 May 2019 01:20:21 +0000 (13:20 +1200)]
[REF] extract buildGroupTree function
I did this mainly to surface the fact that the variables involved are factored into the cachekey
eileen [Thu, 23 May 2019 01:14:38 +0000 (13:14 +1200)]
[NFC] fix comment blocks capitalising null
From running the drupal code sniffer with type checking enabled it turns out the capitalisation of NULL
does not extend to docblocks.
See https://github.com/civicrm/coder/pull/7
eileen [Thu, 23 May 2019 00:22:49 +0000 (12:22 +1200)]
[NFC] fix more places where var is declared as boolean rather than bool
See https://github.com/civicrm/coder/pull/7
Eileen McNaughton [Thu, 23 May 2019 01:01:06 +0000 (13:01 +1200)]
Merge pull request #14304 from eileenmcnaughton/dao
[NFC] formatting & comment fixes - Regenerate DAO files
colemanw [Thu, 23 May 2019 00:12:57 +0000 (20:12 -0400)]
Merge pull request #14282 from eileenmcnaughton/profiletest
[NFC] ProfileTest class - formatting & general cleanup
eileen [Thu, 23 May 2019 00:12:04 +0000 (12:12 +1200)]
Regenerate DAO files
colemanw [Thu, 23 May 2019 00:10:09 +0000 (20:10 -0400)]
Merge pull request #14295 from eileenmcnaughton/dao_2
[NFC] Add trailing comma to pseudoconstant array in DAOs
colemanw [Thu, 23 May 2019 00:06:22 +0000 (20:06 -0400)]
Merge pull request #14300 from colemanw/Fix
[REF] Fix pointless use of CRM_Utils_Array::value in Campaign BAO
colemanw [Thu, 23 May 2019 00:06:06 +0000 (20:06 -0400)]
Merge pull request #14294 from eileenmcnaughton/stds
[NFC] Fix variable types in DAO doc blocks
colemanw [Thu, 23 May 2019 00:03:55 +0000 (20:03 -0400)]
Merge pull request #14296 from eileenmcnaughton/bool
[NFC] fix docblock types from boolean to bool
colemanw [Thu, 23 May 2019 00:01:41 +0000 (20:01 -0400)]
Merge pull request #14297 from eileenmcnaughton/dedupe_cleanup
[code-cleanup] remove orderBy param from getDuplicatePairs, it is not used
eileen [Wed, 22 May 2019 23:53:10 +0000 (11:53 +1200)]
Extract function to create nuanced custom fields to a trait
I want to write a test involving set up of multiple custom fields - this seems like the most
useful function for that, so moving to a trait for re-use
Coleman Watts [Wed, 22 May 2019 22:40:42 +0000 (18:40 -0400)]
Fix pointless use of CRM_Utils_Array::value in Campaign BAO
colemanw [Wed, 22 May 2019 21:47:09 +0000 (17:47 -0400)]
Merge pull request #14283 from eileenmcnaughton/db_test3
dev/core#980 [dbunit] QueryTest Remove dbunit dependency on discontinued dbunit
colemanw [Wed, 22 May 2019 14:25:42 +0000 (10:25 -0400)]
Merge pull request #14291 from eileenmcnaughton/refund_ev
[NFC] array formatting, some comments
Mathieu Lu [Wed, 22 May 2019 13:17:13 +0000 (09:17 -0400)]
Merge pull request #14288 from MegaphoneJon/access-page-simplify
[REF] Simplify ACL page template
Monish Deb [Wed, 22 May 2019 12:56:40 +0000 (18:26 +0530)]
Merge pull request #14267 from eileenmcnaughton/setting_fin
dev/financial#54 Fix mishandling of deferred revenue settings
Eileen McNaughton [Wed, 22 May 2019 09:01:31 +0000 (21:01 +1200)]
Merge pull request #14289 from eileenmcnaughton/event_dep
Fix deprecation notice on manage events page
eileen [Wed, 22 May 2019 04:38:56 +0000 (16:38 +1200)]
[code-cleanup] remove orderBy param from getDuplicatePairs, it is not used
eileen [Wed, 22 May 2019 03:22:19 +0000 (15:22 +1200)]
[NFC] fix docblock types from boolean to bool
This is the correct type name we should be using
eileen [Wed, 22 May 2019 03:10:36 +0000 (15:10 +1200)]
Add trailing comma to pseudoconstant array in DAOs
Code change only includes sample - full regenerate will follow after merge
eileen [Wed, 22 May 2019 02:58:34 +0000 (14:58 +1200)]
Fix variable types in DAO doc blocks
Phpcs (stricter) reports
79 | ERROR | [x] Expected "intunsigned" but found "int unsigned" for @var tag in member variable comment
156 | ERROR | [x] Expected "bool" but found "boolean" for @var tag in member variable comment
We are declaring int unsigned instead of int & boolean instead of bool
Note this commit only contains sample of resulting change - will add more complete set after
eileen [Tue, 21 May 2019 21:11:20 +0000 (09:11 +1200)]
[NFC] ProfileTest class - formatting & general cleanup
eileen [Tue, 21 May 2019 23:56:49 +0000 (11:56 +1200)]
[NFC] array formatting, some comments
Eileen McNaughton [Tue, 21 May 2019 23:38:13 +0000 (11:38 +1200)]
Merge pull request #14285 from civicrm/5.14
5.14 to master
eileen [Tue, 21 May 2019 22:36:43 +0000 (10:36 +1200)]
Fix deprecation notice on manage events page
Jon Goldberg [Tue, 21 May 2019 21:59:36 +0000 (17:59 -0400)]
[REF] Simplify ACL page template
eileen [Tue, 21 May 2019 01:13:02 +0000 (13:13 +1200)]
dev/core#980 [dbunit] Remove dbunit dependency on discontinued dbunit
Seamus Lee [Tue, 21 May 2019 21:18:32 +0000 (07:18 +1000)]
Merge pull request #14277 from seamuslee001/dev_core_976
Remove htmlpurifier from composer and move it back to within IDS to f…
Mathieu Lu [Tue, 21 May 2019 15:59:57 +0000 (11:59 -0400)]
Merge pull request #12152 from JMAConsulting/dev_drupal_19
dev/drupal#19 Drupal8: Implement set UF locale/language (affects mailing tokens)
Jon Goldberg [Wed, 28 Nov 2018 00:17:11 +0000 (19:17 -0500)]
Drupal#38 - allow creating absolute URLs from CLI in D8
Monish Deb [Wed, 10 Oct 2018 11:55:28 +0000 (17:25 +0530)]
additional fixes
deb.monish [Mon, 21 May 2018 09:25:45 +0000 (14:55 +0530)]
override languageNegotiationURL for Drupal8
deb.monish [Wed, 16 May 2018 20:29:41 +0000 (01:59 +0530)]
(dev/drupal/19) Drupal8: Implement set UF locale/language (affects mailing tokens)
Eileen McNaughton [Tue, 21 May 2019 07:37:51 +0000 (19:37 +1200)]
Merge pull request #14278 from seamuslee001/nfc_langauge_cleanup
[NFC] Update Language to be more user friendly when checking logs
eileen [Sun, 19 May 2019 23:32:30 +0000 (11:32 +1200)]
dev/financial#54 add routine to convert contribute settings
Eileen McNaughton [Sun, 19 May 2019 22:09:59 +0000 (10:09 +1200)]
dev/financial#54 check the correct place for deferred_revenut settings
Currently we have a non-std store for invoicing settings that we are checking, yet the form saves it using our stds.
This updates checks for these settings to actually check the right place
Seamus Lee [Tue, 21 May 2019 06:08:32 +0000 (16:08 +1000)]
Update Language to be more user friendly when checking logs
Seamus Lee [Tue, 21 May 2019 05:44:40 +0000 (15:44 +1000)]
Merge pull request #14276 from eileenmcnaughton/dbunit_2
Test cleanup to remove references to discontinued package dbunit
Seamus Lee [Tue, 21 May 2019 02:31:32 +0000 (12:31 +1000)]
Remove htmlpurifier from composer and move it back to within IDS to fix breakage on drupal with the htmlpurifier module
Seamus Lee [Tue, 21 May 2019 02:36:42 +0000 (12:36 +1000)]
Merge pull request #14241 from colemanw/enableApi4
Try enabling api4 extension in test suite
Seamus Lee [Tue, 21 May 2019 00:28:04 +0000 (10:28 +1000)]
Merge pull request #14274 from seamuslee001/protected_fields_dao
Declare API Key as a protected field for future use
Eileen McNaughton [Mon, 20 May 2019 23:17:55 +0000 (11:17 +1200)]
Merge pull request #14266 from seamuslee001/dev_core_369
dev/core#369 Prevent hard fail of API Job when SMS provider has been deleted
eileen [Mon, 20 May 2019 05:25:58 +0000 (17:25 +1200)]
[TEST] cleanup MailingContactTest to remove dbunit dependency
eileen [Mon, 20 May 2019 04:46:22 +0000 (16:46 +1200)]
Remove obsolete code
eileen [Mon, 20 May 2019 04:46:07 +0000 (16:46 +1200)]
Clean up groupNesting Test to not use dbunit
Seamus Lee [Mon, 20 May 2019 23:08:09 +0000 (09:08 +1000)]
Merge pull request #14271 from eileenmcnaughton/db_test_towards
[TEST SUITE] Remove some use of dbunit from tests
Seamus Lee [Mon, 20 May 2019 22:39:31 +0000 (08:39 +1000)]
Merge pull request #14273 from eileenmcnaughton/test_dupe
[NFC] array formatting in CRM_Dedupe_MergerTest
Seamus Lee [Mon, 20 May 2019 22:19:36 +0000 (08:19 +1000)]
Declare API Key as a protected field for future use
Eileen McNaughton [Mon, 20 May 2019 22:03:59 +0000 (10:03 +1200)]
Merge pull request #14254 from yashodha/add_dev_tab
add developer tab for summary report
eileen [Mon, 20 May 2019 21:46:29 +0000 (09:46 +1200)]
[NFC] minor commits cleanup
eileen [Mon, 20 May 2019 21:42:00 +0000 (09:42 +1200)]
[NFC] array formatting in CRM_Dedupe_MergerTest
Coleman Watts [Mon, 13 May 2019 13:06:26 +0000 (09:06 -0400)]
Try enabling api4 extension in test suite
eileen [Mon, 20 May 2019 04:46:07 +0000 (16:46 +1200)]
Clean up groupNesting Test to not use dbunit
Carlin Scott [Mon, 20 May 2019 19:51:22 +0000 (12:51 -0700)]
Rename agpl-3.0.txt to License (#14255)
* Rename agpl-3.0.txt to License
This is the standard name for the license file and will improve this project's community score from GitHub.
* Rename License to LICENSE
colemanw [Mon, 20 May 2019 12:49:37 +0000 (08:49 -0400)]
Merge pull request #14270 from eileenmcnaughton/dedupe
[ref] Remove reference symbol from 2 variables
Monish Deb [Mon, 20 May 2019 09:13:51 +0000 (14:43 +0530)]
Merge pull request #14137 from eileenmcnaughton/pay_up
[REF][Test] Remove call to CRM_Contribute_BAO_Contribution::recordAdditionalPayment in favour of payment create
eileen [Mon, 20 May 2019 03:48:07 +0000 (15:48 +1200)]
More dbunit removal
eileen [Mon, 20 May 2019 03:32:38 +0000 (15:32 +1200)]
Remove some use of dbunit from tests
eileen [Mon, 20 May 2019 03:01:24 +0000 (15:01 +1200)]
Remove reference symbol from 2 variables
I checked & these are not altered in the function - so no need
eileen [Fri, 26 Apr 2019 14:38:48 +0000 (02:38 +1200)]
Remove call to CRM_Contribute_BAO_Contribution::recordAdditionalPayment in favour of payment create
Seamus Lee [Sun, 19 May 2019 21:56:29 +0000 (07:56 +1000)]
Add test of hard fail following SMS provider deletion and expand action schedule testing to include SMSes
dev/core#369 Fix hard failure caused by setting of NULL in database for sms_provider_id when provider is deleted
Minor improvment to test ensure that is_error is actually 0
Seamus Lee [Sun, 19 May 2019 22:58:46 +0000 (08:58 +1000)]
Merge pull request #14260 from eileenmcnaughton/spec
[REF+test] clean up code for getting labels for merge screen, stdise
Eileen McNaughton [Sun, 19 May 2019 22:03:36 +0000 (10:03 +1200)]
Merge pull request #14264 from colemanw/settingsOptions
[REF] Centralize logic for resolving settings pseudoconstants
Eileen McNaughton [Sun, 19 May 2019 21:32:54 +0000 (09:32 +1200)]
Merge pull request #14259 from colemanw/cacheOptions
Remove wasteful double-caching of settings metadata
colemanw [Sun, 19 May 2019 12:12:08 +0000 (08:12 -0400)]
Merge pull request #14262 from francescbassas/patch-16
dev/core#964 Add start date and end date values on page contribution widget ajax response
Coleman Watts [Fri, 17 May 2019 17:46:03 +0000 (13:46 -0400)]
Centralize logic for resolving settings pseudoconstants
francescbassas [Sun, 19 May 2019 08:26:47 +0000 (10:26 +0200)]
dev/core#964 Add date start and end values on page contribution widget ajax response
Eileen McNaughton [Sat, 18 May 2019 05:16:58 +0000 (17:16 +1200)]
Merge pull request #14263 from elisseck/dev/core/966
dev/core/966 skip urlencode for email in elavon xml
eileenmcnaugton [Thu, 16 May 2019 06:09:38 +0000 (18:09 +1200)]
[REF] code cleanup on handling on presentation of merge fields for display
This code was really confusing - all that 'special values' stuff. Turned out it
didn't have to be....
eileenmcnaugton [Thu, 16 May 2019 04:48:00 +0000 (16:48 +1200)]
Add unit test for handling of 'special values' when retrieving merge data
This is preliminary to a code cleanup.
m
colemanw [Fri, 17 May 2019 19:05:29 +0000 (15:05 -0400)]
Merge pull request #14261 from eileenmcnaughton/master
[REF] Remove extraneous variable
Eli Lisseck [Thu, 16 May 2019 18:33:47 +0000 (11:33 -0700)]
dev/core/966 skip urlencode for email in elavon xml
Coleman Watts [Thu, 16 May 2019 03:35:14 +0000 (23:35 -0400)]
Remove wasteful double-caching of settings metadata
Settings metadata was being cached once per domain and one extra time for good measure.
hook_civicrm_alterSettingsMetaData() was invoked even when fetching cached data,
even though the hook-altered data was stored in the cache.
Now that the hook is invoked only once and the results cached, tests have been tweaked
to cache after setting the hook instead of before.
colemanw [Thu, 16 May 2019 17:41:43 +0000 (13:41 -0400)]
Merge pull request #14258 from eileenmcnaughton/tidy
[REF] Super Minor code readability fix
eileenmcnaugton [Thu, 16 May 2019 06:40:13 +0000 (18:40 +1200)]
Remove extraneous variable
Delete Pair is only called from one place in the code & it does not pass the $entityTable
variable - so remove it & reduce complexity.
In addition the viceVersa variable is always true so we can remove this too.
eileenmcnaugton [Thu, 16 May 2019 02:29:39 +0000 (14:29 +1200)]
[REF] Minor code readability fix
Seamus Lee [Wed, 15 May 2019 21:51:00 +0000 (07:51 +1000)]
Merge pull request #14257 from civicrm/5.14
5.14
Seamus Lee [Wed, 15 May 2019 20:39:27 +0000 (06:39 +1000)]
Jenkins style fix
totten [Wed, 15 May 2019 15:48:00 +0000 (15:48 +0000)]
Update 5.13.4.md
Seamus Lee [Tue, 14 May 2019 21:19:22 +0000 (07:19 +1000)]
Update date of 5.13.3 release and add in APIv4 SA into 5.13.4
totten [Tue, 14 May 2019 10:34:04 +0000 (10:34 +0000)]
Update 5.13.4.md
Seamus Lee [Wed, 1 May 2019 02:40:10 +0000 (12:40 +1000)]
WIP Release Notes for security release
Update Release notes based on Tim's Review and likely drop of 5.13.3
Tim Otten [Wed, 8 May 2019 23:41:55 +0000 (16:41 -0700)]
civicrm/file - Be forgiving about old image hyperlinks
Previous versions of Civi sometimes generated URLs for contact-images with incorrect `&mime-type` values:
http://dmaster.bknix:8001/civicrm/file?reset=1&filename=Hello_cca4153cb14beab37c68ab7f07162425.jpg&mime-type=image/jpg
The recent security update will generate an error if the mime-type is incorrect, so this patch relaxes it
to allow the old links to continue working.
Seamus Lee [Fri, 3 May 2019 04:53:48 +0000 (14:53 +1000)]
Add whitelist back in and validate extension of file is permtted for the mime-type supplied and use mime-type from db if supplied with an fid and eid
Switch to different libary that is php5.6 compatable
Seamus Lee [Fri, 29 Mar 2019 23:34:47 +0000 (10:34 +1100)]
Strength mime checking by comparing mime-type to the file path mime-type if we have entity_id and file id otherwise only permit image mime_types to be accepted if going via the filename route
Ensure mimetype is set in the case where we are passing it through and its valid
Remove Whitelisting of mime-types as not useful and only check mime-types if we have had one passed in
Seamus Lee [Sun, 3 Mar 2019 01:14:16 +0000 (12:14 +1100)]
Resolve security/core#45 by validating the mimeType of the file with the supplied mime-type
Seamus Lee [Mon, 29 Apr 2019 04:05:15 +0000 (14:05 +1000)]
Resolve security/core#52 by validating that an installtype is sensible
Seamus Lee [Sat, 30 Mar 2019 05:19:58 +0000 (16:19 +1100)]
security/core#49 Ensure that only intergers are passed to the IN build options in address
Fix Rule checking and add a unit test
Add in unit test on building country_id options too
Add in a unit test for building county options with a state_province_id filter
Seamus Lee [Sun, 28 Apr 2019 22:32:58 +0000 (08:32 +1000)]
Also escape subtype to fix POC#2 found by Patrick
Jamie McClelland [Wed, 20 Feb 2019 17:59:34 +0000 (12:59 -0500)]
escape alphanumeric/checkbox custom data
Seamus Lee [Mon, 22 Apr 2019 07:45:52 +0000 (17:45 +1000)]
Fix security/core#51 by paramatising the Event Type part of the wuere clause
Seamus Lee [Wed, 24 Apr 2019 20:03:57 +0000 (06:03 +1000)]
Resolve security/core#53 by updating tcpdf to latest version of 6.2.x
Tim Otten [Tue, 23 Apr 2019 23:00:35 +0000 (16:00 -0700)]
(security/core#50) Update jQuery to address prototype pollution