civicrm-core.git
6 years agoCiviUnitTestCase - Extract Civi\Test\Api3DocTrait
Tim Otten [Fri, 23 Mar 2018 23:27:40 +0000 (16:27 -0700)]
CiviUnitTestCase - Extract Civi\Test\Api3DocTrait

This makes `CiviUnitTestCase` more readable, and it allows other tests to
benefit from these helpers (even if they don't use everything from
`CiviUnitTestCase`).

6 years agoCiviUnitTestCase - Extract Civi\Test\Api3TestTrait
Tim Otten [Fri, 23 Mar 2018 23:16:24 +0000 (16:16 -0700)]
CiviUnitTestCase - Extract Civi\Test\Api3TestTrait

This makes `CiviUnitTestCase` more readable, and it allows other tests to
benefit from these helpers (even if they don't use everything from
`CiviUnitTestCase`).

6 years agoMerge pull request #11864 from colemanw/upgradeVersion
colemanw [Fri, 23 Mar 2018 16:10:59 +0000 (12:10 -0400)]
Merge pull request #11864 from colemanw/upgradeVersion

Increment minimum upgradable version

6 years agoMerge pull request #11869 from mukeshcompucorp/fix-template-structure-issues
colemanw [Fri, 23 Mar 2018 14:02:51 +0000 (10:02 -0400)]
Merge pull request #11869 from mukeshcompucorp/fix-template-structure-issues

Fix template structures

6 years agoFix template structures
Mukesh Ram [Fri, 23 Mar 2018 08:32:56 +0000 (14:02 +0530)]
Fix template structures

6 years agoMerge pull request #11609 from andrewpthompson/CRM-21203-andrewpthompson
Eileen McNaughton [Fri, 23 Mar 2018 07:16:01 +0000 (20:16 +1300)]
Merge pull request #11609 from andrewpthompson/CRM-21203-andrewpthompson

CRM-21203 revisited - Joomla 3.8 extra fixes for cli.php

6 years agoMerge pull request #11086 from agileware/CRM-21277
Eileen McNaughton [Fri, 23 Mar 2018 06:30:07 +0000 (19:30 +1300)]
Merge pull request #11086 from agileware/CRM-21277

CRM-21277: Suppress warnings while finding install directory.

6 years agoMerge pull request #11087 from yashodha/CRM-19850
Eileen McNaughton [Fri, 23 Mar 2018 06:28:53 +0000 (19:28 +1300)]
Merge pull request #11087 from yashodha/CRM-19850

CRM-19850 - Add a offline membership without 'record payment' option,…

6 years agoMerge pull request #11825 from mattwire/CRM-21682_commenting
Seamus Lee [Fri, 23 Mar 2018 05:15:39 +0000 (16:15 +1100)]
Merge pull request #11825 from mattwire/CRM-21682_commenting

Add commenting to explain +1/-1 days for membership dates calc

6 years agoMerge pull request #11816 from eileenmcnaughton/fix
Eileen McNaughton [Fri, 23 Mar 2018 02:47:29 +0000 (15:47 +1300)]
Merge pull request #11816 from eileenmcnaughton/fix

core/issues/15 Line item fix with attempt to determine how it is hit

6 years agoMerge pull request #11824 from mattwire/CRM-21682_membership_renewal_tests
Eileen McNaughton [Fri, 23 Mar 2018 02:46:39 +0000 (15:46 +1300)]
Merge pull request #11824 from mattwire/CRM-21682_membership_renewal_tests

CRM-21682 Membership Renewal Tests

6 years agoMerge pull request #11836 from seamuslee001/dev_core_25
Eileen McNaughton [Fri, 23 Mar 2018 01:07:38 +0000 (14:07 +1300)]
Merge pull request #11836 from seamuslee001/dev_core_25

Dev/Core 25 Wrap the mailing split_job function in a transaction to e…

6 years agoMerge pull request #11862 from mukeshcompucorp/fix-template-structure-issues
colemanw [Fri, 23 Mar 2018 00:52:54 +0000 (20:52 -0400)]
Merge pull request #11862 from mukeshcompucorp/fix-template-structure-issues

Fix template structure

6 years agoMerge pull request #10496 from jitendrapurohit/CRM-20719
colemanw [Fri, 23 Mar 2018 00:48:08 +0000 (20:48 -0400)]
Merge pull request #10496 from jitendrapurohit/CRM-20719

CRM-20719 : Show warning on system status page if reply_id for mailing is not set to any default

6 years agoMerge pull request #11857 from eileenmcnaughton/cust_data_any
colemanw [Thu, 22 Mar 2018 22:05:42 +0000 (18:05 -0400)]
Merge pull request #11857 from eileenmcnaughton/cust_data_any

Consolidate CustomData code into shared tpl

6 years agoMerge pull request #11856 from eileenmcnaughton/cust_multi
Seamus Lee [Thu, 22 Mar 2018 21:12:14 +0000 (08:12 +1100)]
Merge pull request #11856 from eileenmcnaughton/cust_multi

Fix ajax error on rendering multi custom data tab when field limit reached

6 years agoMerge pull request #11859 from eileenmcnaughton/import_test
Seamus Lee [Thu, 22 Mar 2018 21:09:11 +0000 (08:09 +1100)]
Merge pull request #11859 from eileenmcnaughton/import_test

[nfc] Add test for thousand separators on import

6 years agoDev/Core 25 Wrap the mailing split_job function in a transaction to ensure that there...
Seamus Lee [Tue, 20 Mar 2018 03:02:08 +0000 (14:02 +1100)]
Dev/Core 25 Wrap the mailing split_job function in a transaction to ensure that there is no possibility of duplicate maiing jobs created

Include the split_jobs in the transaction used to update the parent job

6 years agoIncrement minimum upgradable version
Coleman Watts [Thu, 22 Mar 2018 17:19:00 +0000 (13:19 -0400)]
Increment minimum upgradable version

6 years agoFix colspan
Mukesh Ram [Thu, 22 Mar 2018 14:29:17 +0000 (19:59 +0530)]
Fix colspan

6 years agoMerge pull request #11298 from otetard/feature/merge_memberships
Eileen McNaughton [Thu, 22 Mar 2018 13:10:12 +0000 (02:10 +1300)]
Merge pull request #11298 from otetard/feature/merge_memberships

CRM-19151: Add the ability to merge memberships without data loss

6 years agoFix template structure
Mukesh Ram [Thu, 22 Mar 2018 12:00:53 +0000 (17:30 +0530)]
Fix template structure

6 years agoMerge pull request #11860 from eileenmcnaughton/test_fixes
Eileen McNaughton [Thu, 22 Mar 2018 11:51:52 +0000 (00:51 +1300)]
Merge pull request #11860 from eileenmcnaughton/test_fixes

[nfc] Minor test tidy ups

6 years agoConsolidate CustomData code into shared tpl
eileen [Thu, 22 Mar 2018 06:21:59 +0000 (19:21 +1300)]
Consolidate CustomData code into shared tpl

 The only change that I found in function was that the delete icon was originally in a
 table on contact edit but afterwards it was not. However the UI looked the same

6 years agocore/issues/15 Line item fix with attempt to determine how it is hit
eileen [Thu, 15 Mar 2018 06:03:49 +0000 (19:03 +1300)]
core/issues/15 Line item fix with attempt to determine how it is hit

6 years agoMerge pull request #11855 from eileenmcnaughton/report_min
Eileen McNaughton [Thu, 22 Mar 2018 09:58:43 +0000 (22:58 +1300)]
Merge pull request #11855 from eileenmcnaughton/report_min

CRM-21677 - reduce unnecessary address joins on activity & contact detail reports

6 years ago[nfc] Minor test tidy ups
eileen [Thu, 22 Mar 2018 08:59:05 +0000 (21:59 +1300)]
[nfc] Minor test tidy ups

6 years agoAdd test for thousand separators on import
eileen [Thu, 22 Mar 2018 08:50:38 +0000 (21:50 +1300)]
Add test for thousand separators on import

6 years agoMerge pull request #11858 from eileenmcnaughton/recur_format
Eileen McNaughton [Thu, 22 Mar 2018 08:15:48 +0000 (21:15 +1300)]
Merge pull request #11858 from eileenmcnaughton/recur_format

[NFC] fix line endings, using windows line endings, change to 'unix

6 years ago[NFC] fix line endings, using windows line endings, change to 'unix
eileen [Thu, 22 Mar 2018 08:13:34 +0000 (21:13 +1300)]
[NFC] fix line endings, using windows line endings, change to 'unix

6 years agoMerge pull request #11852 from civicrm/5.0
Eileen McNaughton [Thu, 22 Mar 2018 07:37:31 +0000 (20:37 +1300)]
Merge pull request #11852 from civicrm/5.0

merge 5.0 to master

6 years agoMerge pull request #11837 from agileware/CRM-21764-5.0
Eileen McNaughton [Thu, 22 Mar 2018 07:22:54 +0000 (20:22 +1300)]
Merge pull request #11837 from agileware/CRM-21764-5.0

CRM-21764: Recurring Events without Price Set fail to save

6 years agoCRM-21677 - reduce unnecessary address joins on activity & contact detail reports
eileen [Thu, 22 Mar 2018 00:31:06 +0000 (13:31 +1300)]
CRM-21677 - reduce unnecessary address joins on activity & contact detail reports

6 years agoCRM-20719 : ensure reply id is set to any default value
Jitendra Purohit [Mon, 12 Jun 2017 06:45:17 +0000 (12:15 +0530)]
CRM-20719 : ensure reply id is set to any default value

6 years agoFix ajax error on rendering multi custom data tab when field limit reached.
eileen [Thu, 22 Mar 2018 01:38:58 +0000 (14:38 +1300)]
Fix ajax error on rendering multi custom data tab when field limit reached.

CRM_Contact_Page_View_CustomData::run() calls CRM_Profile_Page_MultipleRecordFieldsListing::run(). The latter function currently only assigns customGroupId to the tpl if the limit of rows to display has not been reached.

However, if the var is a required parameter for the ajax call that follow
s and without it the page does not render. There is no clue as to why it
is wrapped in the  if and changing it does
not cause problems in the follow on ajax call

CRM_Custom_Page_AJAX::getMultiRecordFieldList

The only other place this is called from is
CRM_Profile_Form::preProcess when
mode is not EDIT and gid is set

6 years agoMerge pull request #11854 from eileenmcnaughton/custom_data_escape
colemanw [Thu, 22 Mar 2018 01:10:45 +0000 (21:10 -0400)]
Merge pull request #11854 from eileenmcnaughton/custom_data_escape

Escape custom group title.

6 years agoCRM-21764: Recurring Events without Price Set fail to save.
Alok Patel [Tue, 20 Mar 2018 03:41:11 +0000 (13:41 +1000)]
CRM-21764: Recurring Events without Price Set fail to save.

6 years agoEscape custom group title.
eileen [Thu, 22 Mar 2018 00:19:08 +0000 (13:19 +1300)]
Escape custom group title.

If the custom group title has an appostrophe then the js will break without this

6 years agoMerge pull request #11844 from eileenmcnaughton/cust_tpl
Eileen McNaughton [Wed, 21 Mar 2018 20:05:59 +0000 (09:05 +1300)]
Merge pull request #11844 from eileenmcnaughton/cust_tpl

Meld Address custom field display template with main custom field template

6 years agoFix PaypalIPNTest frequency unit and rename mispelled file for test class
Matthew Wire [Thu, 1 Feb 2018 14:26:10 +0000 (21:26 +0700)]
Fix PaypalIPNTest frequency unit and rename mispelled file for test class

6 years agoMove membershipRenewalDate to own function
Matthew Wire [Fri, 2 Feb 2018 15:21:43 +0000 (15:21 +0000)]
Move membershipRenewalDate to own function

6 years agoMake sure frequency unit matches for recur/membership in IPN tests and allow for...
Matthew Wire [Thu, 1 Feb 2018 14:27:54 +0000 (21:27 +0700)]
Make sure frequency unit matches for recur/membership in IPN tests and allow for specifying that frequency

6 years agoMerge pull request #11851 from mukeshcompucorp/fix-template-structure-issues
colemanw [Wed, 21 Mar 2018 11:46:19 +0000 (07:46 -0400)]
Merge pull request #11851 from mukeshcompucorp/fix-template-structure-issues

Fix template structure

6 years agoUpdate existing tests so that membership and recurring contribution durations match
Matthew Wire [Tue, 30 Jan 2018 10:09:44 +0000 (17:09 +0700)]
Update existing tests so that membership and recurring contribution durations match

6 years agoMerge pull request #11848 from jitendrapurohit/CRM-21848-test
Eileen McNaughton [Wed, 21 Mar 2018 10:26:25 +0000 (23:26 +1300)]
Merge pull request #11848 from jitendrapurohit/CRM-21848-test

CRM-21848 - Add unit test for on_hold mailing recipients

6 years agoMerge pull request #11842 from eileenmcnaughton/format
colemanw [Wed, 21 Mar 2018 10:22:20 +0000 (06:22 -0400)]
Merge pull request #11842 from eileenmcnaughton/format

NFC reformat whitespace in Email.tpl files

6 years agoFix template structure
Mukesh Ram [Wed, 21 Mar 2018 08:54:31 +0000 (14:24 +0530)]
Fix template structure

6 years agoSync address custom field file with main file.
eileen [Wed, 21 Mar 2018 04:17:59 +0000 (17:17 +1300)]
Sync address custom field file with main file.

There is no reason for there being 2 files almost the same for custom data

I plan to use this file more broadly (ie. permit custom data on other entities such as email, phone)
and towards that have aligned the 2 files first.

There are minor differences in display
- read only fields show up as frozen for non-address & now for address too (instead of suppressed)
- post help text shows as full text for address currently but after this it shows as a help-icon
which can be clicked on
- display improvements for file custom fields.

Note that I think making address like the main file makes sense as that will be where deliberate
changes have happened.

6 years agoShow custom address view only fields in edit mode.
eileen [Wed, 21 Mar 2018 03:22:08 +0000 (16:22 +1300)]
Show custom address view only fields in edit mode.

This brings them into line with the behaviour of other custom fields in edit mode (shown, but
greyed out) and is a step towards sharing the tpl

6 years agoMerge pull request #11586 from alifrumin/CRM-21711
Eileen McNaughton [Wed, 21 Mar 2018 06:59:40 +0000 (19:59 +1300)]
Merge pull request #11586 from alifrumin/CRM-21711

CRM-21711 When updating multiple memberships thru a contribution page custom fields are only updated on one

6 years agoCRM-21848 - Add unit test for on_hold mailing recipients
Jitendra Purohit [Wed, 21 Mar 2018 06:59:03 +0000 (12:29 +0530)]
CRM-21848 - Add unit test for on_hold mailing recipients

6 years agoMerge pull request #11843 from agileware/CRM-20790-T
Eileen McNaughton [Wed, 21 Mar 2018 06:56:54 +0000 (19:56 +1300)]
Merge pull request #11843 from agileware/CRM-20790-T

CRM-20790: Unit test to ensure relationships are created on import.

6 years agoMerge pull request #11847 from civicrm/5.0
Eileen McNaughton [Wed, 21 Mar 2018 06:55:21 +0000 (19:55 +1300)]
Merge pull request #11847 from civicrm/5.0

Merge rc to master

6 years agoMerge pull request #11846 from eileenmcnaughton/mail_hold
Eileen McNaughton [Wed, 21 Mar 2018 06:54:41 +0000 (19:54 +1300)]
Merge pull request #11846 from eileenmcnaughton/mail_hold

Fix issue where on_hold email addresses are not being filtered out of

6 years agoFix issue where on_hold email addresses are not being filtered out of
Darrick Servis [Mon, 19 Mar 2018 23:14:18 +0000 (16:14 -0700)]
Fix issue where on_hold email addresses are not being filtered out of
recipient list for mailings.

6 years agoCRM-20790: Unit test to ensure relationships are created on import.
Alok Patel [Wed, 21 Mar 2018 03:16:14 +0000 (13:16 +1000)]
CRM-20790: Unit test to ensure relationships are created on import.

6 years agoNFC reformat whitespace in Email.tpl files
eileen [Wed, 21 Mar 2018 02:23:05 +0000 (15:23 +1300)]
NFC reformat whitespace in Email.tpl files

6 years agotools/scripts/phpunit-ls - Fix syntax error
Tim Otten [Wed, 21 Mar 2018 00:32:14 +0000 (17:32 -0700)]
tools/scripts/phpunit-ls - Fix syntax error

6 years agoMerge pull request #11199 from twomice/CRM-21348_joomla_edit_link
Eileen McNaughton [Tue, 20 Mar 2018 23:01:45 +0000 (12:01 +1300)]
Merge pull request #11199 from twomice/CRM-21348_joomla_edit_link

CRM-21348: Don't hide the "edit" link from logged-in users in profile listings in joomla front-end

6 years agoMerge pull request #11819 from compucorp/CRM-21840-show-tool-icon-for-radio-groups
colemanw [Tue, 20 Mar 2018 20:44:54 +0000 (16:44 -0400)]
Merge pull request #11819 from compucorp/CRM-21840-show-tool-icon-for-radio-groups

CRM-21840: Show Options Edit Link for Radio and Checkbox Groups

6 years agoCRM-21840: Show options edit link for radio and checkbox groups
Michael Devery [Thu, 15 Mar 2018 13:02:00 +0000 (13:02 +0000)]
CRM-21840: Show options edit link for radio and checkbox groups

6 years agoMerge pull request #10783 from totten/master-angldr
colemanw [Tue, 20 Mar 2018 15:41:52 +0000 (11:41 -0400)]
Merge pull request #10783 from totten/master-angldr

CRM-20981 - Allow custom base-pages with less `crmApp` boilerplate

6 years agoMerge pull request #11841 from jitendrapurohit/core-26
colemanw [Tue, 20 Mar 2018 15:38:55 +0000 (11:38 -0400)]
Merge pull request #11841 from jitendrapurohit/core-26

core/issues/26 - On behalf form fails to create new organisation

6 years agoMerge pull request #11839 from mukeshcompucorp/fix-template-structure-issues
colemanw [Tue, 20 Mar 2018 12:58:38 +0000 (08:58 -0400)]
Merge pull request #11839 from mukeshcompucorp/fix-template-structure-issues

Fix template structure issues

6 years agoCRM-19151: Add the ability to merge memberships without data loss
Olivier Tétard [Sat, 18 Nov 2017 17:24:34 +0000 (18:24 +0100)]
CRM-19151: Add the ability to merge memberships without data loss

Add a new custom processing function `mergeMemberships()` in
`CRM_Member_BAO_Membership` that allows to merge memberships.

General idea is to merge memberships in regards to their type. We move
the other contact’s contributions to the main contact’s membership
which has the same type (if any) and then we update membership to
avoid loosing `join_date`, `end_date`, etc.

Related issue: https://issues.civicrm.org/jira/browse/CRM-19151

6 years agocore/issues/26 - On behalf form fails to create new organisation
Jitendra Purohit [Tue, 20 Mar 2018 09:34:37 +0000 (15:04 +0530)]
core/issues/26 - On behalf form fails to create new organisation

6 years agoMerger: Add some more parameters to custom processing functions.
Olivier Tétard [Mon, 20 Nov 2017 14:03:03 +0000 (15:03 +0100)]
Merger: Add some more parameters to custom processing functions.

When calling for some custom processing function in the merge process,
add tables that needs to be merged and related options.

6 years agoFix table for Contribute
Mukesh Ram [Tue, 20 Mar 2018 05:14:38 +0000 (10:44 +0530)]
Fix table for Contribute

6 years agoMerge pull request #11835 from civicrm/5.0
Eileen McNaughton [Tue, 20 Mar 2018 02:21:46 +0000 (15:21 +1300)]
Merge pull request #11835 from civicrm/5.0

Merge from rc to master

6 years agoCRM-20981 - Tweak docblock
Tim Otten [Mon, 19 Mar 2018 22:20:54 +0000 (15:20 -0700)]
CRM-20981 - Tweak docblock

6 years agoMerge pull request #10602 from agileware/CIVICRM-167
Eileen McNaughton [Mon, 19 Mar 2018 21:35:04 +0000 (10:35 +1300)]
Merge pull request #10602 from agileware/CIVICRM-167

CRM-20811 CIVICRM-167 Schedule Reminders uses mixed terminology for Active state

6 years agoMerge pull request #10403 from yashodha/CRM-20624
Eileen McNaughton [Mon, 19 Mar 2018 21:31:23 +0000 (10:31 +1300)]
Merge pull request #10403 from yashodha/CRM-20624

CRM-20624

6 years agoMerge pull request #11786 from seamuslee001/CRM-21835
Eileen McNaughton [Mon, 19 Mar 2018 21:19:23 +0000 (10:19 +1300)]
Merge pull request #11786 from seamuslee001/CRM-21835

CRM-21835 Gracefully switch Log Table Engines if Archive is not avali…

6 years agoMerge pull request #11831 from agh1/alphatestfix
Eileen McNaughton [Mon, 19 Mar 2018 19:57:21 +0000 (08:57 +1300)]
Merge pull request #11831 from agh1/alphatestfix

Version check test: in alphas don't test for site stats not provided for alphas

6 years agoVersionCheckTest - Use assertions if *not* alpha
Tim Otten [Mon, 19 Mar 2018 18:12:55 +0000 (11:12 -0700)]
VersionCheckTest - Use assertions if *not* alpha

6 years agoVersion check test: in alphas don't test for site stats not provided for alphas
Andrew Hunt [Mon, 19 Mar 2018 14:45:16 +0000 (10:45 -0400)]
Version check test: in alphas don't test for site stats not provided for alphas

6 years agoMerge pull request #11727 from jitendrapurohit/CRM-21807
Eileen McNaughton [Mon, 19 Mar 2018 07:55:14 +0000 (20:55 +1300)]
Merge pull request #11727 from jitendrapurohit/CRM-21807

CRM-21807 - Deleted contacts included by default in Membership and co…

6 years agoMove help section outside of block
Mukesh Ram [Mon, 19 Mar 2018 07:24:20 +0000 (12:54 +0530)]
Move help section outside of block

6 years agoFix template structures
Mukesh Ram [Mon, 19 Mar 2018 07:16:52 +0000 (12:46 +0530)]
Fix template structures

6 years agoMerge pull request #11820 from seanmadsen/CRM-21264
Eileen McNaughton [Mon, 19 Mar 2018 06:53:00 +0000 (19:53 +1300)]
Merge pull request #11820 from seanmadsen/CRM-21264

 CRM-21264 - Fix tabular formatting of contributions in merged letters grouped by contact

6 years agoMerge pull request #11827 from eileenmcnaughton/fix_wp
colemanw [Mon, 19 Mar 2018 06:16:49 +0000 (02:16 -0400)]
Merge pull request #11827 from eileenmcnaughton/fix_wp

Fix page layout for wordpress (dev/core/issues/21)

6 years agoFix page layout for wordpress
eileen [Mon, 19 Mar 2018 01:27:31 +0000 (14:27 +1300)]
Fix page layout for wordpress

6 years agoMerge pull request #10776 from eileenmcnaughton/mon2
Eileen McNaughton [Mon, 19 Mar 2018 00:00:11 +0000 (13:00 +1300)]
Merge pull request #10776 from eileenmcnaughton/mon2

CRM-20610 expose payment edit form on the contribution page

6 years agoMerge pull request #11809 from mattwire/devcore17_interview_task_pseudoconstant
Eileen McNaughton [Sun, 18 Mar 2018 22:54:01 +0000 (11:54 +1300)]
Merge pull request #11809 from mattwire/devcore17_interview_task_pseudoconstant

dev/core/17 Convert interview task to use Pseudoconstants

6 years agoTest for CRM-21711
Alice Frumin [Wed, 21 Feb 2018 22:17:53 +0000 (17:17 -0500)]
Test for CRM-21711

6 years agoCRM-21711 Membership: moving updating custom fields into the foreach
Alice Frumin [Thu, 25 Jan 2018 21:50:50 +0000 (16:50 -0500)]
CRM-21711 Membership: moving updating custom fields into the foreach

6 years agoAdd commenting to explain +1/-1 days for membership dates calc
Matthew Wire [Thu, 1 Feb 2018 14:24:58 +0000 (21:24 +0700)]
Add commenting to explain +1/-1 days for membership dates calc

6 years agodev/core/17 Convert interview task to use Pseudoconstants
Matthew Wire [Wed, 14 Mar 2018 11:56:37 +0000 (11:56 +0000)]
dev/core/17 Convert interview task to use Pseudoconstants

6 years agoMerge pull request #11797 from hoegrammer/master
colemanw [Fri, 16 Mar 2018 16:35:49 +0000 (12:35 -0400)]
Merge pull request #11797 from hoegrammer/master

CRM-21838 strip html tags from alerts when crm-notification-container div is not present

6 years agoMerge pull request #11818 from mukeshcompucorp/fix-template-structure-issues
colemanw [Fri, 16 Mar 2018 16:32:17 +0000 (12:32 -0400)]
Merge pull request #11818 from mukeshcompucorp/fix-template-structure-issues

Fix template in pledge and batch

6 years agoSet version to 5.1.alpha1
CiviCRM [Thu, 15 Mar 2018 23:14:45 +0000 (23:14 +0000)]
Set version to 5.1.alpha1

6 years agoset-version.php - Fix for running on uninitialized codebase
CiviCRM [Thu, 15 Mar 2018 23:06:29 +0000 (23:06 +0000)]
set-version.php - Fix for running on uninitialized codebase

The script assumes that `civicrm-version.php` is around. It will eventually be
committed, and it's available if you ran GenCode, but it's not *necessarily*
around yet.

6 years agoDowngrade number from 5.0.0 to 5.0.beta1
CiviCRM [Thu, 15 Mar 2018 23:05:08 +0000 (23:05 +0000)]
Downgrade number from 5.0.0 to 5.0.beta1

We're about to branch for RC period. Since we've got the third digit again
(for use in each monthly cycle), let's take advantage of it!

6 years agoCRM-21264 - Fix broken regular expression
Sean Madsen [Thu, 15 Mar 2018 14:58:33 +0000 (10:58 -0400)]
CRM-21264 - Fix broken regular expression

* Escape dot in token since it will be used in a regex (for good
  measure)
* Add `(?![\w-])` to ensure that `td` is not followed by other
  characters that would make it a different element.
* Instead of the first `.+?`, use `((?!</td>).)*` which matches zero or
  more characters but refuses to consume if it encounters `</td>`
* Escape curly braces (for good measure)
* Instead of the second `.+?`, use `.*?` so that it will match if there
  are zero characters. (Note: this change is really the crux of the
  issue, as described in CRM-21264).
* Complete then closing `</td>` (for good measure)

6 years agoCRM-21264 - Minor refactoring
Sean Madsen [Thu, 15 Mar 2018 14:45:53 +0000 (10:45 -0400)]
CRM-21264 - Minor refactoring

* Improve docblock
* Get rid of "dontCare" since that argument is optional as of PHP 5.4
  http://php.net/manual/en/function.preg-match-all.php#refsect1-function.preg-match-all-changelog
* Move regex to its own line to improve readability

6 years agoCRM-21264 - Add test for isHtmlTokenInTableCell
Sean Madsen [Thu, 15 Mar 2018 14:40:16 +0000 (10:40 -0400)]
CRM-21264 - Add test for isHtmlTokenInTableCell

Test currently fails on "simplest TRUE" case added, which demonstrates
the bug described in CRM-21264. Also added other test cases which
current fail as well.

6 years agoFix template in pledge and batch
Mukesh Ram [Thu, 15 Mar 2018 14:05:03 +0000 (19:35 +0530)]
Fix template in pledge and batch

6 years agoMerge pull request #11815 from eileenmcnaughton/notice
Eileen McNaughton [Thu, 15 Mar 2018 11:20:17 +0000 (00:20 +1300)]
Merge pull request #11815 from eileenmcnaughton/notice

Activity Form - Fix recently introduced warning

6 years agoMerge pull request #11519 from eileenmcnaughton/hook
Eileen McNaughton [Thu, 15 Mar 2018 07:48:20 +0000 (20:48 +1300)]
Merge pull request #11519 from eileenmcnaughton/hook

CRM-21659 - Add hook to CRM_Utils_System::redirect

6 years agoCRM_Utils_Hook::alterRedirect - Pass URL by reference
Tim Otten [Thu, 15 Mar 2018 05:19:49 +0000 (22:19 -0700)]
CRM_Utils_Hook::alterRedirect - Pass URL by reference

PSR-7 specifies that the `UriInterface` is immutable.  There are methods
like `withQuery(...)` which generate a *new instance*.

For the hook to support altering the URL, you must be able to replace the
`$url` with a newer instance.