civicrm-core.git
5 years agoRemove Defunct Templates from CiviMail
Seamus Lee [Sat, 1 Dec 2018 20:32:53 +0000 (20:32 +0000)]
Remove Defunct Templates from CiviMail

5 years agoMerge pull request #13193 from civicrm/5.8
Seamus Lee [Fri, 30 Nov 2018 23:24:18 +0000 (10:24 +1100)]
Merge pull request #13193 from civicrm/5.8

5.8

5 years agoMerge pull request #13172 from mattwire/events_tabheader_fixselectedchild
Seamus Lee [Fri, 30 Nov 2018 21:53:47 +0000 (08:53 +1100)]
Merge pull request #13172 from mattwire/events_tabheader_fixselectedchild

Fix links for tabs on manage event

5 years agoFix links for tabs on manage event (events use separate URLs for each tab but need...
Matthew Wire (MJW Consulting) [Thu, 29 Nov 2018 10:20:25 +0000 (10:20 +0000)]
Fix links for tabs on manage event (events use separate URLs for each tab but need selectedChild to be specified or the default tab is loaded

5 years agoMerge pull request #13151 from eileenmcnaughton/payment_function
Monish Deb [Fri, 30 Nov 2018 08:48:30 +0000 (14:18 +0530)]
Merge pull request #13151 from eileenmcnaughton/payment_function

Extract getContributionBalance function, use that rather than wrapper…

6 years agoMerge pull request #13179 from eileenmcnaughton/dedupe_rule
Seamus Lee [Fri, 30 Nov 2018 05:00:09 +0000 (16:00 +1100)]
Merge pull request #13179 from eileenmcnaughton/dedupe_rule

Test support for fixing dev/core#397 including adding Rule api

6 years agoMerge pull request #13184 from civicrm/5.8
Eileen McNaughton [Fri, 30 Nov 2018 04:51:44 +0000 (17:51 +1300)]
Merge pull request #13184 from civicrm/5.8

5.8

6 years agoMerge pull request #13177 from eileenmcnaughton/net_amount
Seamus Lee [Fri, 30 Nov 2018 04:50:04 +0000 (15:50 +1100)]
Merge pull request #13177 from eileenmcnaughton/net_amount

Fix failure to calculate net_amount correctly on update when fee_amount is not in the parameters.

6 years agoMerge pull request #13182 from civicrm/5.8
Eileen McNaughton [Fri, 30 Nov 2018 04:48:42 +0000 (17:48 +1300)]
Merge pull request #13182 from civicrm/5.8

5.8

6 years agoMerge pull request #13178 from eileenmcnaughton/net_amount_form
Seamus Lee [Fri, 30 Nov 2018 04:43:47 +0000 (15:43 +1100)]
Merge pull request #13178 from eileenmcnaughton/net_amount_form

dev/core#552 Fix missaving of net_amount

6 years agoAdd Dedupe Rule api
eileen [Thu, 29 Nov 2018 23:34:20 +0000 (12:34 +1300)]
Add Dedupe Rule api

6 years agoMerge pull request #13180 from GinkgoFJG/dev/core#559
Tim Otten [Fri, 30 Nov 2018 01:00:06 +0000 (17:00 -0800)]
Merge pull request #13180 from GinkgoFJG/dev/core#559

(dev/core#559) Declare crmUi's dependency on ui.utils.

6 years ago(dev/core#559) Declare crmUi's dependency on ui.utils.
Frank J. Gómez [Thu, 29 Nov 2018 23:19:14 +0000 (18:19 -0500)]
(dev/core#559) Declare crmUi's dependency on ui.utils.

6 years agoAdd unit test improvements to support testing dev/core#397
eileen [Thu, 29 Nov 2018 23:14:32 +0000 (12:14 +1300)]
Add unit test improvements to support testing dev/core#397

I have marked the test incomplete as we get a fatal error on the actual test for #397
(with or without the proposed fix) but I think if we merge this it makes it easy to complete
#397

6 years agoAdd Rule api for dedupe rule & fix tests to use it.
eileen [Thu, 29 Nov 2018 22:17:55 +0000 (11:17 +1300)]
Add Rule api for dedupe rule & fix tests to use it.

Tests seem to be languishing on the painfulness of creating Reules without an api so adding one.

Note that there is good automatic test coverage under SyntaxConformance for this.

I also removed a pointless piece of code

6 years agoMerge pull request #13175 from aydun/displayvalue_fixes
Eileen McNaughton [Thu, 29 Nov 2018 21:52:00 +0000 (10:52 +1300)]
Merge pull request #13175 from aydun/displayvalue_fixes

Displayvalue fixes

6 years agoFix missaving of net_amount
eileen [Thu, 29 Nov 2018 21:49:32 +0000 (10:49 +1300)]
Fix missaving of net_amount

dev/core#552 it seems net_amount was removed incompletely
from the additional info form - causing it to block updating of the value when it should have been updated

6 years agoFix failure to calculate net_amount correctly on update when fee_amount is not in...
eileen [Thu, 29 Nov 2018 21:36:26 +0000 (10:36 +1300)]
Fix failure to calculate net_amount correctly on update when fee_amount is not in the parameters.

6 years agoTest for CRM_Core_BAO_CustomField::displayValue() contact ref
Aidan Saunders [Wed, 28 Nov 2018 15:37:23 +0000 (15:37 +0000)]
Test for CRM_Core_BAO_CustomField::displayValue() contact ref

6 years agoFix bug if string value is passed to CRM_Core_BAO_CustomField::displayValue() for...
Aidan Saunders [Wed, 28 Nov 2018 14:51:04 +0000 (14:51 +0000)]
Fix bug if string value is passed to CRM_Core_BAO_CustomField::displayValue() for a contact ref

6 years agoMerge pull request #13059 from seamuslee001/lab_core_505
Eileen McNaughton [Thu, 29 Nov 2018 05:45:55 +0000 (18:45 +1300)]
Merge pull request #13059 from seamuslee001/lab_core_505

dev/core#505 Allow Extensions to specify crmType and phpType when dea…

6 years agoMerge pull request #13147 from eileenmcnaughton/dash_fix
Eileen McNaughton [Thu, 29 Nov 2018 04:14:29 +0000 (17:14 +1300)]
Merge pull request #13147 from eileenmcnaughton/dash_fix

Fixes to enable UserDashboard tests to all run

6 years agoMerge pull request #13168 from totten/master-prevnext-metadata
Seamus Lee [Wed, 28 Nov 2018 22:41:18 +0000 (09:41 +1100)]
Merge pull request #13168 from totten/master-prevnext-metadata

(dev/core#217) Search.setting.php - Fix mismatched metadata

6 years ago(dev/core#217) Search.setting.php - Fix mismatched metadata
Tim Otten [Wed, 28 Nov 2018 21:08:47 +0000 (13:08 -0800)]
(dev/core#217) Search.setting.php - Fix mismatched metadata

The setting `prevNextBackend` was introduced in PR #12665.  The PR was
originally written for an earlier version (circa 5.6) and eventually
merged in a later version (circa 5.9). The metadata should match
the version-number of the actual release.

6 years agoMerge pull request #13157 from eileenmcnaughton/currency
Eileen McNaughton [Wed, 28 Nov 2018 20:23:59 +0000 (09:23 +1300)]
Merge pull request #13157 from eileenmcnaughton/currency

Set currency template variable from contribution pages

6 years agoMerge pull request #13161 from colemanw/Api3
Eileen McNaughton [Wed, 28 Nov 2018 20:19:09 +0000 (09:19 +1300)]
Merge pull request #13161 from colemanw/Api3

Api3 profile:submit - fix handling of greeting fields

6 years agoFixes to enable UserDashboard tests to all run
eileen [Wed, 28 Nov 2018 02:11:53 +0000 (15:11 +1300)]
Fixes to enable UserDashboard tests to all run

6 years agoMerge pull request #13162 from francescbassas/patch-16
Joe Murray [Wed, 28 Nov 2018 19:58:53 +0000 (14:58 -0500)]
Merge pull request #13162 from francescbassas/patch-16

Avoid permission checking on getOrganizationNames

6 years agoApi3 profile:submit - fix handling of greeting fields
Coleman Watts [Tue, 27 Nov 2018 19:23:17 +0000 (14:23 -0500)]
Api3 profile:submit - fix handling of greeting fields

6 years agoMerge pull request #13166 from eileenmcnaughton/misc
colemanw [Wed, 28 Nov 2018 13:04:29 +0000 (08:04 -0500)]
Merge pull request #13166 from eileenmcnaughton/misc

Trivial code cleanup

6 years agoMerge pull request #13167 from eileenmcnaughton/checksum
Seamus Lee [Wed, 28 Nov 2018 11:48:41 +0000 (22:48 +1100)]
Merge pull request #13167 from eileenmcnaughton/checksum

[NFC] Extract getUserCheckSum function

6 years ago[NFC] Extract getUserCheckSum function
eileen [Wed, 28 Nov 2018 04:28:34 +0000 (17:28 +1300)]
[NFC] Extract getUserCheckSum function

6 years agoMinor code cleanups.
eileen [Wed, 28 Nov 2018 04:13:17 +0000 (17:13 +1300)]
Minor code cleanups.

Removes an instance where  is instantiated using the old & pattern and
fixes a non-quoted word in a template which causes notices under some configs

6 years ago(dev/core#217) PrevNext - More conservative transition (5.7=>5.8=>5.9)
Tim Otten [Tue, 27 Nov 2018 23:34:13 +0000 (15:34 -0800)]
(dev/core#217) PrevNext - More conservative transition (5.7=>5.8=>5.9)

This revision sets up more conservative transition process for adopting PrevNext drivers.

Before
------

* 5.7.x - Hard-coded to SQL driver.
* 5.8.x - Allow setting to pick driver. If left as `default`, then choose best-available (based on configured services).

After
------

* 5.7.x - Hard-coded to SQL driver.
* 5.8.x - Allow setting to pick driver. If left as `default`, then use SQL driver.
* 5.9.x - Allow setting to pick driver. If left as `default`, then choose best-available (based on configured services).

This essentially mitigates the risk that bugs in the new Redis driver cause regreessions for sites already running Redis.

6 years agoMerge pull request #12665 from totten/master-prevnext-redis
Eileen McNaughton [Wed, 28 Nov 2018 04:03:46 +0000 (17:03 +1300)]
Merge pull request #12665 from totten/master-prevnext-redis

(dev/core#217) PrevNext - Implement Redis. Decouple Query::getCachedContacts().

6 years ago(dev/core#217) PrevNext - Add settings for admin to choose backend
Tim Otten [Tue, 14 Aug 2018 23:08:16 +0000 (16:08 -0700)]
(dev/core#217) PrevNext - Add settings for admin to choose backend

The auto-detection is a good default policy.  However, this is new
functionality.  If some bug gets through the review/RC cycles, then this
option provides an escape path.

6 years ago(dev/core#217) PrevNext - Cleanup parameter name in Sql::markSelection
Tim Otten [Thu, 26 Jul 2018 23:00:54 +0000 (16:00 -0700)]
(dev/core#217) PrevNext - Cleanup parameter name in Sql::markSelection

The new name is prettier and matches the names in `CRM_Core_PrevNextCache_{Interface,Redis}`.

6 years ago(dev/core#217) Implement Redis driver for PrevNext handling
Tim Otten [Mon, 9 Jul 2018 01:02:01 +0000 (18:02 -0700)]
(dev/core#217) Implement Redis driver for PrevNext handling

6 years ago(dev/core#217) Query::getCachedContacts - Use swappable fetch() instead of SQL JOIN
Tim Otten [Tue, 14 Aug 2018 22:12:57 +0000 (15:12 -0700)]
(dev/core#217) Query::getCachedContacts - Use swappable fetch() instead of SQL JOIN

The general context of this code is roughly as follows:

* We've already filled up the prevnext cache with a bunch of contact-IDs.
* The user wants to view a page of 50 contacts.
* We want to lookup full information about 50 specific contacts for this page.

It does makes sense to use `CRM_Contact_BAO_Query` for looking up the "full information"
about contacts. However, the function `Query::getCachedContacts()` is hard-coded to
read from the SQL-based prevnext cache.

Before
------

* In `getCachedContacts()`, it grabbed the full SQL for `CRM_Contact_BAO_Query`
  and munged the query to:
    * Add an extra JOIN on `civicrm_prevnext_cache` (with a constraint on `cacheKey`)
    * Respect pagination (LIMIT/OFFSET)
    * Order results based on their position in the prevnext cache

After
-----

* In `CRM_Core_PrevNextCache_Interface`, the `fetch()` function provides one page-worth
  of contact IDs (in order). The `fetch()` function is tested by `E2E_Core_PrevNextTest`.
* In `getCachedContacts()`, it doesn't know anything about `civicrm_prevnext_cache`
  or `cacheKey` or pagination.  Instead, it just accepts CIDs for one page-worth of
  contacts.  It returns contacts in the same order that was given.

6 years agoAvoid permission checking on getOrganizationNames
francescbassas [Tue, 27 Nov 2018 21:02:47 +0000 (22:02 +0100)]
Avoid permission checking on getOrganizationNames

[Bookkeeping Transactions Report insufficient permissions](https://lab.civicrm.org/dev/core/issues/551)

6 years agoSet currency template variable from contribution pages
eileen [Mon, 26 Nov 2018 08:58:23 +0000 (21:58 +1300)]
Set currency template variable from contribution pages

When we load the PaymentForm the currency is set there and assigned to the template.

However, if the form doesn't load by default (ie because there is no payment processor selected by
default) the currency variable is not assigned to the template.

When the payment form is loaded by
      var dataUrl = '{crmURL p='civicrm/payment/form' h=0 q=formName=

6 years agoMerge pull request #13156 from eileenmcnaughton/please_print
colemanw [Mon, 26 Nov 2018 02:02:27 +0000 (21:02 -0500)]
Merge pull request #13156 from eileenmcnaughton/please_print

dev/core#371 remove please print this page text

6 years agodev/core#371 remove please print this page text
eileen [Sun, 25 Nov 2018 20:42:22 +0000 (09:42 +1300)]
dev/core#371 remove please print this page text

6 years agoMerge pull request #13154 from civicrm/5.8
Eileen McNaughton [Sun, 25 Nov 2018 20:03:36 +0000 (09:03 +1300)]
Merge pull request #13154 from civicrm/5.8

5.8 to master

6 years agoMerge pull request #13153 from colemanw/removejstree
Eileen McNaughton [Sun, 25 Nov 2018 20:03:13 +0000 (09:03 +1300)]
Merge pull request #13153 from colemanw/removejstree

Remove redundant jstree script from search form

6 years agoRemove redundant jstree script from search form
Coleman Watts [Sun, 25 Nov 2018 19:06:04 +0000 (14:06 -0500)]
Remove redundant jstree script from search form

6 years agoMerge pull request #13152 from civicrm/5.8
Eileen McNaughton [Sat, 24 Nov 2018 22:16:53 +0000 (11:16 +1300)]
Merge pull request #13152 from civicrm/5.8

5.8 to master

6 years agoMerge pull request #13150 from eileenmcnaughton/acl
Eileen McNaughton [Sat, 24 Nov 2018 22:16:24 +0000 (11:16 +1300)]
Merge pull request #13150 from eileenmcnaughton/acl

Fix check for financial acls to look for setting rather than sub-key of non-standard civicontribute_settings' setting

6 years agoMerge pull request #13133 from eileenmcnaughton/php72import
Monish Deb [Sat, 24 Nov 2018 10:01:44 +0000 (15:31 +0530)]
Merge pull request #13133 from eileenmcnaughton/php72import

dev/core#406 fix warnings under php 7.2 when importing

6 years agoExtract getContributionBalance function, use that rather than wrapper function from...
eileen [Thu, 22 Nov 2018 21:34:42 +0000 (10:34 +1300)]
Extract getContributionBalance function, use that rather than wrapper function from Contribution Main class

6 years agoMerge pull request #13149 from eileenmcnaughton/no_double_contribution
colemanw [Fri, 23 Nov 2018 00:40:30 +0000 (19:40 -0500)]
Merge pull request #13149 from eileenmcnaughton/no_double_contribution

dev/core#536 Remove duplicate call to contribution summary

6 years agoMerge pull request #13143 from eileenmcnaughton/importtest
Eileen McNaughton [Thu, 22 Nov 2018 21:56:05 +0000 (10:56 +1300)]
Merge pull request #13143 from eileenmcnaughton/importtest

Fix test name because it is not running & doesn't pass :-(

6 years agoFix test name because it is not running & doesn't pass :-(
eileen [Wed, 21 Nov 2018 11:23:16 +0000 (00:23 +1300)]
Fix test name because it is not running & doesn't pass :-(

6 years agoFix check for financial acls to look for setting rather than sub-key of non-standard...
eileen [Thu, 22 Nov 2018 02:25:46 +0000 (15:25 +1300)]
Fix check for financial acls to look for setting rather than sub-key of non-standard civicontribute_settings' setting

6 years agoMerge pull request #13066 from ejegg/php73
Eileen McNaughton [Thu, 22 Nov 2018 04:00:04 +0000 (17:00 +1300)]
Merge pull request #13066 from ejegg/php73

Fix continue / break PHP 7.3 warnings

6 years agoMerge pull request #13146 from eileenmcnaughton/cont_test
Eileen McNaughton [Thu, 22 Nov 2018 02:30:56 +0000 (15:30 +1300)]
Merge pull request #13146 from eileenmcnaughton/cont_test

Unit test set up tweak - Set trxn_id & invoice_id in tests as needed rather than by default.

6 years agoRemove duplicate call to contribution summary
eileen [Tue, 20 Nov 2018 07:31:14 +0000 (20:31 +1300)]
Remove duplicate call to contribution summary

This is an expensive call (we get it at over 10 seconds for high
giving contacts in a large database) and it is quite simply called twice.

Removing these few lines knock out several expensive queries but I have checked
contribution tab, user dashboard, contribution search and advanced search displayed
as contributions and can find no instances where less info is shown.

(in the case of advanced search displayed as contributions it doesn't show before or
after)

6 years agoMerge pull request #13140 from jitendrapurohit/core-540
Eileen McNaughton [Thu, 22 Nov 2018 01:29:45 +0000 (14:29 +1300)]
Merge pull request #13140 from jitendrapurohit/core-540

dev/core#540 - Civicrm Contact Dashboard returns fatal error

6 years agoSet trxn_id & invoice_id in tests as needed rather than by default.
eileen [Wed, 21 Nov 2018 21:22:44 +0000 (10:22 +1300)]
Set trxn_id & invoice_id in tests as needed rather than by default.

This causes work-arounds & flakiness by tests using this fn.
Better to add as required.

6 years agoMerge pull request #13126 from eileenmcnaughton/export_more
Eileen McNaughton [Wed, 21 Nov 2018 21:28:24 +0000 (10:28 +1300)]
Merge pull request #13126 from eileenmcnaughton/export_more

Export code cleanup - only construct one metadata array with all types of metadata

6 years agoMerge pull request #13145 from civicrm/5.8
Eileen McNaughton [Wed, 21 Nov 2018 19:54:13 +0000 (08:54 +1300)]
Merge pull request #13145 from civicrm/5.8

5.8 to master

6 years agoMerge pull request #13137 from eileenmcnaughton/user58
Eileen McNaughton [Wed, 21 Nov 2018 19:52:18 +0000 (08:52 +1300)]
Merge pull request #13137 from eileenmcnaughton/user58

dev/core#534 fix failure of print invoice to display on settings page

6 years agoFix missing Pay now link
eileen [Wed, 21 Nov 2018 10:08:56 +0000 (23:08 +1300)]
Fix missing Pay now link

6 years agoDisable function that doesn't work on jenkins (but does locally) for not
eileen [Wed, 21 Nov 2018 09:52:53 +0000 (22:52 +1300)]
Disable function that doesn't work on jenkins (but does locally) for not

6 years agoRemove static var from env function.
eileen [Wed, 21 Nov 2018 08:21:03 +0000 (21:21 +1300)]
Remove static var from env function.

It is causing a test fail and is only saving us from calling a cached function....

6 years agoTest fixes, better cleanup
eileen [Wed, 21 Nov 2018 07:03:44 +0000 (20:03 +1300)]
Test fixes, better cleanup

6 years agodev/core#540 - Civicrm Contact Dashboard returns fatal error
Jitendra Purohit [Wed, 21 Nov 2018 03:54:56 +0000 (09:24 +0530)]
dev/core#540 - Civicrm Contact Dashboard returns fatal error

6 years agoUse function to determinie if invoicing is enabled which accounts for historical...
eileen [Wed, 21 Nov 2018 00:49:42 +0000 (13:49 +1300)]
Use function to determinie if invoicing is enabled which accounts for historical weirdness

6 years agoUse onToggle feature for setting user_dashboard_options when toggling invoicing,...
eileen [Wed, 21 Nov 2018 00:49:09 +0000 (13:49 +1300)]
Use onToggle feature for setting user_dashboard_options when toggling invoicing, remove from form

6 years agoAdd test for user dashboard
eileen [Wed, 21 Nov 2018 00:47:43 +0000 (13:47 +1300)]
Add test for user dashboard

6 years agoMerge pull request #13135 from civicrm/5.8
Eileen McNaughton [Tue, 20 Nov 2018 05:34:40 +0000 (18:34 +1300)]
Merge pull request #13135 from civicrm/5.8

5.8

6 years agoMerge pull request #13131 from eileenmcnaughton/5.8
Seamus Lee [Tue, 20 Nov 2018 05:30:31 +0000 (16:30 +1100)]
Merge pull request #13131 from eileenmcnaughton/5.8

dev/core#534 Fix intra-rc regression mis-saving of invoicing setting

6 years agoMerge pull request #13132 from eileenmcnaughton/php72
Seamus Lee [Tue, 20 Nov 2018 05:30:05 +0000 (16:30 +1100)]
Merge pull request #13132 from eileenmcnaughton/php72

Fix php 7.2 notice

6 years agodev/core#406 fix warnings under php 7.2 when importing
eileen [Tue, 20 Nov 2018 03:50:06 +0000 (16:50 +1300)]
dev/core#406 fix warnings under php 7.2 when importing

6 years agoFix php 7.2 notice
eileen [Tue, 20 Nov 2018 03:33:02 +0000 (16:33 +1300)]
Fix php 7.2 notice

6 years agoFix saving of invoicing.
eileen [Tue, 20 Nov 2018 03:15:44 +0000 (16:15 +1300)]
Fix saving of invoicing.

Invoicing has setting metadata but this setting is ignored in various places in core in favour of using a hacky method. Don't break when
hackiness ensues

6 years agoMove construction of headers to ExportProcessor
eileen [Mon, 19 Nov 2018 03:13:40 +0000 (16:13 +1300)]
Move construction of headers to ExportProcessor

6 years agoStop setting header rows only to unset them
eileen [Mon, 19 Nov 2018 01:04:57 +0000 (14:04 +1300)]
Stop setting header rows only to unset them

6 years agoMove definition of header rows to ExportProcessor
eileen [Mon, 19 Nov 2018 00:08:09 +0000 (13:08 +1300)]
Move definition of header rows to ExportProcessor

6 years agoMake getHeaderRows more sensible
eileen [Sun, 18 Nov 2018 23:56:47 +0000 (12:56 +1300)]
Make getHeaderRows more sensible

6 years agoMerge pull request #13124 from eileenmcnaughton/export_fgb
Seamus Lee [Tue, 20 Nov 2018 02:31:40 +0000 (13:31 +1100)]
Merge pull request #13124 from eileenmcnaughton/export_fgb

Fix Export when full group by mode is used

6 years agoMerge pull request #13087 from eileenmcnaughton/lybunt
Eileen McNaughton [Tue, 20 Nov 2018 02:22:10 +0000 (15:22 +1300)]
Merge pull request #13087 from eileenmcnaughton/lybunt

Lybunt report - improve developer support for debugging this report

6 years agoMerge pull request #13130 from civicrm/5.8
Eileen McNaughton [Tue, 20 Nov 2018 00:10:05 +0000 (13:10 +1300)]
Merge pull request #13130 from civicrm/5.8

5.8 to master

6 years agoMerge pull request #13128 from colemanw/jstree
Eileen McNaughton [Tue, 20 Nov 2018 00:09:17 +0000 (13:09 +1300)]
Merge pull request #13128 from colemanw/jstree

dev/core#507 - Fix wrong version of jstree in search popop

6 years agodev/core#507 - Fix wrong version of jstree in search popop
Coleman Watts [Mon, 19 Nov 2018 20:22:34 +0000 (15:22 -0500)]
dev/core#507 - Fix wrong version of jstree in search popop

6 years agoExtract switch, fix PHP 7.3 warnings
Elliott Eggleston [Thu, 15 Nov 2018 22:06:51 +0000 (17:06 -0500)]
Extract switch, fix PHP 7.3 warnings

PHP 7.3 warns if a continue statement is used inside a switch, where
it functions as a break statement. This patch extracts the switch
from the loop, and also fixes the fall-through error from
civicrm_campaign to default, moving the civicrm_website case out of
the way.

6 years agoPHP 7.3 continue / break clarification
Elliott Eggleston [Thu, 15 Nov 2018 20:22:22 +0000 (15:22 -0500)]
PHP 7.3 continue / break clarification

PHP 7.3 started warning on 'continue' statements inside switches,
where they act just like 'break' statements. To actually continue
the enclosing loop, it would have to be 'continue 2'. Since that's
a weird syntax and these two cases have nothing after the switch,
I've replaced them here with break.

6 years agoFix a further fatal error when full group by is enabled
eileen [Mon, 19 Nov 2018 02:58:12 +0000 (15:58 +1300)]
Fix a further fatal error when full group by is enabled

6 years agoMerge pull request #13122 from eileenmcnaughton/export_merge
Eileen McNaughton [Mon, 19 Nov 2018 02:03:12 +0000 (15:03 +1300)]
Merge pull request #13122 from eileenmcnaughton/export_merge

Export code cleanup - remove silly function

6 years agoMerge pull request #13121 from pradpnayak/BatchSearchFix
Eileen McNaughton [Mon, 19 Nov 2018 00:54:57 +0000 (13:54 +1300)]
Merge pull request #13121 from pradpnayak/BatchSearchFix

dev/core#532 Batch search fix

6 years agoFix Export when full group by mode is used
eileen [Mon, 19 Nov 2018 00:45:54 +0000 (13:45 +1300)]
Fix Export when full group by mode is used

After upgrading locally to mysql 5.7 I found that the exportIM test
was taking so long locally that I was killing it rather than finding
out how long it would take.

Digging into it I found that we were changing the query so that
attempts to group by contact ID were being nullified when full group by
is enabled. This meant that we were winding up with
7776 rows being retrieved to reflect a grid of permutations, which was
being iterated down to 1 in php.

In general the practice of altering the groupby to meet this new
standard is one that we determined to be
causing problems and we discontinued / rolled back

6 years agoRemove silly manipulateHeaderRows function
eileen [Sat, 17 Nov 2018 02:24:54 +0000 (15:24 +1300)]
Remove silly manipulateHeaderRows function

Export code cleanup -  Extend testing so we can get rid of silly manipulate fn

6 years agoRemove header handling that I think is unreachable
eileen [Sat, 17 Nov 2018 02:19:33 +0000 (15:19 +1300)]
Remove header handling that I think is unreachable

6 years agoMerge pull request #13117 from eileenmcnaughton/export2
Eileen McNaughton [Sun, 18 Nov 2018 21:57:04 +0000 (10:57 +1300)]
Merge pull request #13117 from eileenmcnaughton/export2

Export code clean up - extract build row & getTransformed row off to ExportProcessor

6 years agoMerge pull request #13120 from eileenmcnaughton/less_primary
Eileen McNaughton [Sun, 18 Nov 2018 21:48:11 +0000 (10:48 +1300)]
Merge pull request #13120 from eileenmcnaughton/less_primary

Export class cleanup - remove some unnecessary code

6 years agoMerge pull request #13098 from eileenmcnaughton/monish_pay
Eileen McNaughton [Sun, 18 Nov 2018 20:54:26 +0000 (09:54 +1300)]
Merge pull request #13098 from eileenmcnaughton/monish_pay

dev/core#153: Pending Pay Later /w Custom payment method

6 years agoModified unit test
Pradeep Nayak [Sun, 18 Nov 2018 19:15:30 +0000 (00:45 +0530)]
Modified unit test

6 years agoformat form values for multi-select fields
Pradeep Nayak [Sun, 18 Nov 2018 18:56:19 +0000 (00:26 +0530)]
format form values for multi-select fields

6 years agoQuery building shouldn't be iterated
Pradeep Nayak [Sun, 18 Nov 2018 18:52:44 +0000 (00:22 +0530)]
Query building shouldn't be iterated

6 years agoMerge pull request #13115 from eileenmcnaughton/noah
Eileen McNaughton [Sat, 17 Nov 2018 18:31:50 +0000 (07:31 +1300)]
Merge pull request #13115 from eileenmcnaughton/noah

Minor Contact BAO code cleanup