civicrm-core.git
7 years agoMinor alter to regex
Seamus Lee [Mon, 17 Apr 2017 21:42:32 +0000 (07:42 +1000)]
Minor alter to regex

7 years agoCRM-20427 add more tests in
Seamus Lee [Mon, 17 Apr 2017 21:28:43 +0000 (07:28 +1000)]
CRM-20427 add more tests in

7 years agoAdded object type selector to panel rule to prevent broad disabling of all objects...
Tobias Lounsbury [Mon, 17 Apr 2017 20:16:12 +0000 (13:16 -0700)]
Added object type selector to panel rule to prevent broad disabling of all objects with class panel on civicrm pages.

7 years agoUpdate CONTRIBUTING.md
colemanw [Mon, 17 Apr 2017 18:50:01 +0000 (14:50 -0400)]
Update CONTRIBUTING.md

7 years agoCRM-20427 Fix regex issue with I18n query rewrite
Seamus Lee [Sun, 16 Apr 2017 23:52:39 +0000 (09:52 +1000)]
CRM-20427 Fix regex issue with I18n query rewrite

7 years agoAdd tests of I18n rewiteQuery to test regex
Seamus Lee [Sun, 16 Apr 2017 23:29:59 +0000 (09:29 +1000)]
Add tests of I18n rewiteQuery to test regex

7 years agoMerge pull request #10109 from eileenmcnaughton/ayd
Eileen McNaughton [Sun, 16 Apr 2017 23:18:13 +0000 (11:18 +1200)]
Merge pull request #10109 from eileenmcnaughton/ayd

CRM-20312 index reconciliation

7 years agoCRM-20312 - Add a few more action buttons to system status screen
Coleman Watts [Sun, 16 Apr 2017 19:44:07 +0000 (15:44 -0400)]
CRM-20312 - Add a few more action buttons to system status screen

7 years agoCRM-20312 - Perform actions from within system status screen
Coleman Watts [Sun, 16 Apr 2017 16:41:33 +0000 (12:41 -0400)]
CRM-20312 - Perform actions from within system status screen

7 years agoCRM-20312 add a little more detail as to how to update indexes
eileen [Sun, 16 Apr 2017 04:55:06 +0000 (16:55 +1200)]
CRM-20312 add a little more detail as to how to update indexes

7 years agoCRM-20312 add api wrapper for updating indexes
Aidan Saunders [Fri, 14 Oct 2016 21:20:14 +0000 (22:20 +0100)]
CRM-20312 add api wrapper for updating indexes

7 years agoMerge pull request #10170 from seamuslee001/CRM-20436
Monish Deb [Sun, 16 Apr 2017 17:22:37 +0000 (22:52 +0530)]
Merge pull request #10170 from seamuslee001/CRM-20436

CRM-20436 Make method updateKenyanProvinces Static

7 years agoadditional changes and added unit test
deb.monish [Thu, 13 Apr 2017 12:18:10 +0000 (17:48 +0530)]
additional changes and added unit test

7 years agoCRM-20436 Make method updateKenyanProvinces Static
Seamus Lee [Sun, 16 Apr 2017 09:49:41 +0000 (19:49 +1000)]
CRM-20436 Make method updateKenyanProvinces Static

7 years agoCRM-20308 added method getReceiptFrom to set FROM in sendActivityCopy - send email...
Erik Hommel [Tue, 4 Apr 2017 07:17:43 +0000 (09:17 +0200)]
CRM-20308 added method getReceiptFrom to set FROM in sendActivityCopy - send email to assignee

7 years agoMerge pull request #10169 from seamuslee001/new_indexes
Eileen McNaughton [Sun, 16 Apr 2017 05:32:02 +0000 (17:32 +1200)]
Merge pull request #10169 from seamuslee001/new_indexes

CRM-20313,CRM-19357,CRM-20204,CRM-19383

7 years agoCRM-20313,CRM-19357: Add index to civicrm_activity.status_id and unique index to...
Joe Murray [Tue, 21 Mar 2017 20:38:00 +0000 (16:38 -0400)]
CRM-20313,CRM-19357: Add index to civicrm_activity.status_id and unique index to civicrm_entity_financial_account table

7 years agoCRM-20204,CRM-19383 Add in Indexes to civicrm_activity.activity_date_time and civicrm...
Seamus Lee [Sun, 16 Apr 2017 04:10:07 +0000 (14:10 +1000)]
CRM-20204,CRM-19383 Add in Indexes to civicrm_activity.activity_date_time and civicrm_event_queue.hash

7 years agoMerge pull request #10166 from aydun/CRM-19464-upgrade
Eileen McNaughton [Sun, 16 Apr 2017 00:36:17 +0000 (12:36 +1200)]
Merge pull request #10166 from aydun/CRM-19464-upgrade

CRM-19464 sql upgrade

7 years agoMerge pull request #10163 from JohnFF/bugfix/fix_static_warning
Eileen McNaughton [Sun, 16 Apr 2017 00:35:54 +0000 (12:35 +1200)]
Merge pull request #10163 from JohnFF/bugfix/fix_static_warning

Fixed static call of non static method.

7 years agoMerge pull request #10150 from eileenmcnaughton/friend
Eileen McNaughton [Sat, 15 Apr 2017 23:59:23 +0000 (11:59 +1200)]
Merge pull request #10150 from eileenmcnaughton/friend

CRM-20328 remove call to duplicated code sequence.

7 years agoMerge pull request #9857 from aydun/CRM-19464
Eileen McNaughton [Sat, 15 Apr 2017 21:46:03 +0000 (09:46 +1200)]
Merge pull request #9857 from aydun/CRM-19464

CRM-19464  Make 'Supplemental Address 3' usable

7 years agoCRM-20435: Conservative replacement of SQL-based activityContact creation with DAO...
Frank J. Gómez [Sat, 15 Apr 2017 20:14:42 +0000 (16:14 -0400)]
CRM-20435: Conservative replacement of SQL-based activityContact creation with DAO-based approach.

7 years agoLocalize description
Aidan Saunders [Sat, 15 Apr 2017 11:42:59 +0000 (12:42 +0100)]
Localize description

7 years agoMerge pull request #10160 from JohnFF/bugfix/silent_sql_file_error
Tim Otten [Fri, 14 Apr 2017 21:30:24 +0000 (14:30 -0700)]
Merge pull request #10160 from JohnFF/bugfix/silent_sql_file_error

Make sourceSQLFile throw an error when it can't find a file.

7 years agoMerge pull request #10162 from yashodha/CRM-20429
colemanw [Fri, 14 Apr 2017 21:04:08 +0000 (17:04 -0400)]
Merge pull request #10162 from yashodha/CRM-20429

CRM-20429 - Deleting an activity with target contacts > 50 results in…

7 years agoCRM-19464 sql upgrade
Aidan Saunders [Fri, 14 Apr 2017 20:49:32 +0000 (21:49 +0100)]
CRM-19464 sql upgrade

7 years agoCRM-19464 Enable use of 'Supplemental Address 3'
Aidan Saunders [Fri, 17 Feb 2017 23:27:32 +0000 (23:27 +0000)]
CRM-19464 Enable use of 'Supplemental Address 3'

In some situations, the address format is too limited.  The 'Supplemental Address 3'
already exists in the schema but was not exposed to the GUI.

This touches many files but the changes are fairly simple.  Wherever 'Supplemental Address 2'
existed, there is now a 'Supplemental Address 3' as well.

7 years agoFixed static call of non static method. Assume the method was meant to be static...
John Kirk [Fri, 14 Apr 2017 06:27:29 +0000 (06:27 +0000)]
Fixed static call of non static method. Assume the method was meant to be static as there's nothing in there requiring it to be dynamic.

7 years agoCRM-20429 - Deleting an activity with target contacts > 50 results in error
yashodha [Fri, 14 Apr 2017 06:17:59 +0000 (11:47 +0530)]
CRM-20429 - Deleting an activity with target contacts > 50 results in error

7 years agoMerge pull request #10148 from yashodha/CRM-20417
Eileen McNaughton [Fri, 14 Apr 2017 04:55:26 +0000 (16:55 +1200)]
Merge pull request #10148 from yashodha/CRM-20417

CRM-20417 - translate strings

7 years agoMake sourceSQLFile throw an error when it can't find a file - previously it just...
John Kirk [Thu, 13 Apr 2017 22:11:11 +0000 (22:11 +0000)]
Make sourceSQLFile throw an error when it can't find a file - previously it just failed silently.

7 years agoCiviEventInspector - Document fields in an event-definition.
Tim Otten [Fri, 14 Apr 2017 03:57:02 +0000 (20:57 -0700)]
CiviEventInspector - Document fields in an event-definition.

7 years agoCiviEventInspector - Include stub for hooks (when available)
Tim Otten [Fri, 14 Apr 2017 03:55:51 +0000 (20:55 -0700)]
CiviEventInspector - Include stub for hooks (when available)

7 years agoRename hook_civicrm_hooks to hook_civicrm_eventDefs
Tim Otten [Fri, 14 Apr 2017 02:28:14 +0000 (19:28 -0700)]
Rename hook_civicrm_hooks to hook_civicrm_eventDefs

7 years agoCiviEventInspector - Include metadata about some non-hook events
Tim Otten [Fri, 14 Apr 2017 02:25:44 +0000 (19:25 -0700)]
CiviEventInspector - Include metadata about some non-hook events

7 years agoCiviEventInspector - Prefer "event" nomenclature instead of "hook"
Tim Otten [Fri, 14 Apr 2017 02:05:57 +0000 (19:05 -0700)]
CiviEventInspector - Prefer "event" nomenclature instead of "hook"

Events are a superset of hooks.

7 years agoRename CRM_Utils_Hook_Inspector to Civi\Core\CiviEventInspector
Tim Otten [Fri, 14 Apr 2017 01:51:02 +0000 (18:51 -0700)]
Rename CRM_Utils_Hook_Inspector to Civi\Core\CiviEventInspector

7 years agoCRM_Utils_Hook::hooks - Prettify
Tim Otten [Fri, 14 Apr 2017 01:46:00 +0000 (18:46 -0700)]
CRM_Utils_Hook::hooks - Prettify

7 years agoCRM_Utils_Hook_Inspector - Add util for displaying hook metadata
Tim Otten [Thu, 13 Apr 2017 23:51:37 +0000 (16:51 -0700)]
CRM_Utils_Hook_Inspector - Add util for displaying hook metadata

This is meant to facilitate better code-generators and
documentation-generators. Key features:

 * Adds a new class, `CRM_Utils_Hook_Inspector`.
 * Adds a new hook, `hook_civicrm_hooks`. Extensions may use this to document their hooks.
 * Implements the hook in core (to report on `civicrm-core` hooks)
 * If you follow the practice of declaring static hook stubs (like
   `civicrm-core` does), then use `addStaticStubs()` to assimilate of them.

7 years agoAPIExplorer::formatDocBlock() - Make public. Normalize whitespace.
Tim Otten [Thu, 13 Apr 2017 23:48:32 +0000 (16:48 -0700)]
APIExplorer::formatDocBlock() - Make public. Normalize whitespace.

This will make the function more useful for the hook inspector.

7 years agoMerge pull request #10112 from JMAConsulting/CRM-20384
colemanw [Fri, 14 Apr 2017 01:23:19 +0000 (21:23 -0400)]
Merge pull request #10112 from JMAConsulting/CRM-20384

CRM-20384, Added Contribution ID column and Filter to Book Keeping report

7 years agoCRM-20420 - PDFLetterCommon::createActivities() - Combine calls
Tim Otten [Thu, 13 Apr 2017 21:07:00 +0000 (14:07 -0700)]
CRM-20420 - PDFLetterCommon::createActivities() - Combine calls

Combine the calls to CRM_Activity_BAO_Activity::create() and
CRM_Activity_BAO_ActivityContact::create() into one call.

Remove unnecessary `$activityContacts`.

7 years agoCRM-20384, added function to get Organization Name associated with Financial Account.
Pradeep Nayak [Wed, 12 Apr 2017 20:38:59 +0000 (02:08 +0530)]
CRM-20384, added function to get Organization Name associated with Financial Account.

----------------------------------------
* CRM-20384: Bookkeeping report add contrib ID, filter by financial account owner (IIDA-85)
  https://issues.civicrm.org/jira/browse/CRM-20384

7 years agoCRM-20384, Added Contribution ID column and Filter
Pradeep Nayak [Wed, 5 Apr 2017 11:12:30 +0000 (16:42 +0530)]
CRM-20384, Added Contribution ID column and Filter
Added option to display and Filter by Financial Account Owner

----------------------------------------
* CRM-20384: bookkeeping transaction report
  https://issues.civicrm.org/jira/browse/CRM-20384

7 years agoCRM-20420 - Extract utility class, CRM_Utils_ConsoleTee
Tim Otten [Thu, 13 Apr 2017 18:19:26 +0000 (11:19 -0700)]
CRM-20420 - Extract utility class, CRM_Utils_ConsoleTee

7 years agoCRM-20420 - PDFLetterCommon::postProcess - Improve precondition check
Tim Otten [Thu, 13 Apr 2017 17:20:31 +0000 (10:20 -0700)]
CRM-20420 - PDFLetterCommon::postProcess - Improve precondition check

It's not valid to apply the policy `combined-attached` unless you have
exactly 1 activity.  The previous code would silently degrade if the
precondition wasn't met. The revision makes the failure clear.

7 years agoCRM-20420 - Update sundry comments/docblocks
Tim Otten [Thu, 13 Apr 2017 16:49:25 +0000 (09:49 -0700)]
CRM-20420 - Update sundry comments/docblocks

7 years agoCRM-20420 - PDFLetterCommon::getMimeType() - Fix typo
Tim Otten [Thu, 13 Apr 2017 16:41:34 +0000 (09:41 -0700)]
CRM-20420 - PDFLetterCommon::getMimeType() - Fix typo

7 years agoCRM-20420 - Core.settings.php - Fix copy/pasted version#
Tim Otten [Thu, 13 Apr 2017 16:31:36 +0000 (09:31 -0700)]
CRM-20420 - Core.settings.php - Fix copy/pasted version#

The setting was written by copying and editing a similar one, but one of the
fields (`add => 4.3`) was stale.

7 years agoCRM-20420 - PDFLetterCommon - Record attachments (in mode "combined-attached")
Tim Otten [Thu, 13 Apr 2017 05:07:37 +0000 (22:07 -0700)]
CRM-20420 - PDFLetterCommon - Record attachments (in mode "combined-attached")

If the setting `recordGeneratedLetters` is `combined-attached`, then we
should capture the content of the generated file and save it to an
attachment.

Note: There are several different ways generating files (eg HTML=>PDF,
HTML=>docx/ODT, or docx/ODT template file).  Ideally, these would support
common set of options for directing output (to a file, string, or console).
In fact, some do, and all the underlying libraries do...  but the
middle-logic only handles the console consistently.  We use output buffering
(ob_start()) to capture the content and save it to a file.

7 years agoCRM-20420 - CRM_Utils_PDF_Document::printDocuments - Normalize $fileName
Tim Otten [Thu, 13 Apr 2017 03:25:22 +0000 (20:25 -0700)]
CRM-20420 - CRM_Utils_PDF_Document::printDocuments - Normalize $fileName

Normalize semantics of `$fileName` to align with
`CRM_Utils_PDF_Document::html2doc` and `CRM_Utils_PDF_Utils::html2pdf`.

7 years agoMerge pull request #10144 from eileenmcnaughton/iida8
Eileen McNaughton [Thu, 13 Apr 2017 04:08:39 +0000 (16:08 +1200)]
Merge pull request #10144 from eileenmcnaughton/iida8

CRM-20413 fix to setting wrong payment_instrument_id, by passing resp…

7 years agoMerge pull request #10127 from WeMoveEU/CRM-20389
Eileen McNaughton [Thu, 13 Apr 2017 03:08:47 +0000 (15:08 +1200)]
Merge pull request #10127 from WeMoveEU/CRM-20389

CRM-20389 ignore mailing_type when cloning

7 years agoCRM-20420 - Add docblocks
Tim Otten [Thu, 13 Apr 2017 02:06:07 +0000 (19:06 -0700)]
CRM-20420 - Add docblocks

7 years agoCRM-20413 fix to setting wrong payment_instrument_id, by passing responsibility to...
eileen [Tue, 11 Apr 2017 14:43:08 +0000 (02:43 +1200)]
CRM-20413 fix to setting wrong payment_instrument_id, by passing responsibility to the processor.

This also reflects work towards allowing payment_instrument specific fields on the payment form - ie. check, credit_card_type, pan_truncation.

This idea is to finish the code allowing pay-later to be the manual payment processor indexed with a 0 on all payment forms, and have the
form render with appropriate fields. Note that I got this working on multiple forms, this commit reflects the smallest piece I could
break off that is complete within itself, and resolves an issue

I tested that it was still possible to enter checks on the offline contribution as well as membership & additional payment forms, and the
check number still shows up.

I also tested front end contribution credit card & pay later & front end event forms

7 years agoCRM-20359 Extended the use of contribution tokens to include custom fields using...
Edsel Roque Lopez [Wed, 12 Apr 2017 21:36:40 +0000 (03:06 +0530)]
CRM-20359 Extended the use of contribution tokens to include custom fields using API (#10082)

* CRM-20359 Extended the use of contribution tokens to include custom fields using API

----------------------------------------
* CRM-20359: Support contribution.custom_nn tokens for Thank You letters - print or email
  https://issues.civicrm.org/jira/browse/CRM-20359

* extended testBuildContributionArray unit test

* Fix missing comma

7 years agoCRM-20420 - Display `recordGeneratedLetters` setting in GUI
Tim Otten [Wed, 12 Apr 2017 21:25:11 +0000 (14:25 -0700)]
CRM-20420 - Display `recordGeneratedLetters` setting in GUI

7 years agoCRM-20420 - Generate combined or separated activities, per recordGeneratedLetters
Tim Otten [Wed, 12 Apr 2017 07:11:42 +0000 (00:11 -0700)]
CRM-20420 - Generate combined or separated activities, per recordGeneratedLetters

When a user uses "Print/Merge Document" to generate a PDF or Word doc,
they may designate multiple contacts to include in the PDF/Doc. By
setting `recordGeneratedLetters`, they can specify whether to:

 * Create one activity for each contact. (This is the traditional behavior,
   but when you retain the fully-generated PDF documents, it wouldn't
   be a good idea to copy the PDF to all those activities.)
 * Create a single activity associated with all the contacts.

7 years agoCRM-20420 - Define setting "recordGeneratedLetters"
Tim Otten [Wed, 12 Apr 2017 05:39:50 +0000 (22:39 -0700)]
CRM-20420 - Define setting "recordGeneratedLetters"

7 years agoCRM-20420 - PDFLetterCommon::createActivities() - Simplify. Address comment.
Tim Otten [Wed, 12 Apr 2017 05:42:22 +0000 (22:42 -0700)]
CRM-20420 - PDFLetterCommon::createActivities() - Simplify. Address comment.

The comment asks why the code appears to use of `$contactIds` and
`$form->contactIds` interchangeably.  If you grep for calls to
`createActivities()`, all 3-ish callpaths do set `$contactIds` based on
`$form->contactIds` -- so they are the same.

```
// Look for calls to createActivities()
$ grep -r ::createActivities CRM/ Civi/ api/
CRM/Contact/Form/Task/PDFLetterCommon.php:      self::createActivities($form, $html_message, $form->_contactIds);
CRM/Member/Form/Task/PDFLetterCommon.php:    self::createActivities($form, $html_message, $contactIDs);
CRM/Contribute/Form/Task/PDFLetterCommon.php:    self::createActivities($form, $html_message, $form->_contactIds);

// Look for calls to createActivities via CRM/Member/Form/Task/PDFLetterCommon

$ rgrep -r postProcessMembers\( CRM/ Civi/ api/
CRM/Member/Form/Task/PDFLetter.php:    CRM_Member_Form_Task_PDFLetterCommon::postProcessMembers(
CRM/Member/Form/Task/PDFLetterCommon.php:  public static function postProcessMembers(&$form, $membershipIDs, $skipOnHold, $skipDeceased, $contactIDs) {
```

7 years agoMerge pull request #10092 from jitendrapurohit/CRM-20339
Monish Deb [Wed, 12 Apr 2017 12:22:19 +0000 (17:52 +0530)]
Merge pull request #10092 from jitendrapurohit/CRM-20339

CRM-20339: Fix custom data edit on Relationship

7 years agoCRM-20328 remove call to duplicated code sequence.
eileen [Tue, 28 Mar 2017 21:40:15 +0000 (10:40 +1300)]
CRM-20328 remove call to duplicated code sequence.

On looking  is actually getting an ID so I renamed it

7 years agoMerge pull request #10143 from eileenmcnaughton/iida7
Eileen McNaughton [Wed, 12 Apr 2017 10:10:22 +0000 (22:10 +1200)]
Merge pull request #10143 from eileenmcnaughton/iida7

Towards CRM-20392 (IIDA-108) extract submit function

7 years agoCRM-20417 - translate strings
yashodha [Wed, 12 Apr 2017 09:15:29 +0000 (14:45 +0530)]
CRM-20417 - translate strings

7 years agominor fix
deb.monish [Wed, 12 Apr 2017 09:15:26 +0000 (14:45 +0530)]
minor fix

7 years agoRemove e-notice causing declaration.
eileen [Tue, 11 Apr 2017 11:43:18 +0000 (23:43 +1200)]
Remove e-notice causing declaration.

Since this is a deprecated name which doesn't work I have just removed it

7 years agoTowards CRM-20392 form cleanup, shared setting of ->mode
eileen [Tue, 11 Apr 2017 11:53:16 +0000 (23:53 +1200)]
Towards CRM-20392 form cleanup, shared setting of ->mode

7 years agoTowards CRM-20392 (IIDA-108) extract submit function
Pradeep Nayak [Tue, 11 Apr 2017 11:14:02 +0000 (23:14 +1200)]
Towards CRM-20392 (IIDA-108) extract submit function

Towards CRM-20392 enotice fixes

7 years agoMerge pull request #10130 from JMAConsulting/codeCleanup
Eileen McNaughton [Wed, 12 Apr 2017 08:48:28 +0000 (20:48 +1200)]
Merge pull request #10130 from JMAConsulting/codeCleanup

Used Api to get financial account for an entity defined in civicrm_en…

7 years agoMerge pull request #10081 from jitendrapurohit/CRM-20361
Monish Deb [Wed, 12 Apr 2017 08:43:13 +0000 (14:13 +0530)]
Merge pull request #10081 from jitendrapurohit/CRM-20361

CRM-20361: Populate tokens when Scheduled Reminders are set to Record Activity for Automated Email

7 years agoUsed Api to get financial account for an entity defined in civicrm_entity_financial_a...
Pradeep Nayak [Fri, 7 Apr 2017 21:25:26 +0000 (02:55 +0530)]
Used Api to get financial account for an entity defined in civicrm_entity_financial_account table

7 years agoMerge pull request #10147 from KarinG/CRM-20393-dmaster
Eileen McNaughton [Wed, 12 Apr 2017 02:42:22 +0000 (14:42 +1200)]
Merge pull request #10147 from KarinG/CRM-20393-dmaster

CRM-20393 - fix for check if the user already submitted transaction

7 years agoNo need to truncate x_invoice_num.
KarinG [Wed, 12 Apr 2017 01:06:32 +0000 (19:06 -0600)]
No need to truncate x_invoice_num.

7 years agoMerge pull request #10129 from JMAConsulting/CRM-20392
Eileen McNaughton [Wed, 12 Apr 2017 00:13:09 +0000 (12:13 +1200)]
Merge pull request #10129 from JMAConsulting/CRM-20392

CRM-20392, Code cleanup

7 years agoMerge pull request #10135 from seamuslee001/CRM-20410
Eileen McNaughton [Tue, 11 Apr 2017 23:27:03 +0000 (11:27 +1200)]
Merge pull request #10135 from seamuslee001/CRM-20410

CRM-20410 Reformat CRM_SMS_BAO_Provider to use standard create function style rather than the split

7 years agoMerge pull request #10145 from eileenmcnaughton/test-fail
Eileen McNaughton [Tue, 11 Apr 2017 22:36:35 +0000 (10:36 +1200)]
Merge pull request #10145 from eileenmcnaughton/test-fail

Fix test regression by correctly setting timestamp in test method

7 years agoFix test regression by correctly setting timestamp in test method
eileen [Tue, 11 Apr 2017 22:31:01 +0000 (10:31 +1200)]
Fix test regression by correctly setting timestamp in test method

7 years agoTry replacing static with DAO
Seamus Lee [Tue, 11 Apr 2017 21:36:00 +0000 (07:36 +1000)]
Try replacing static with DAO

7 years agoMerge pull request #10139 from JMAConsulting/CRM-20391
Eileen McNaughton [Tue, 11 Apr 2017 20:41:58 +0000 (08:41 +1200)]
Merge pull request #10139 from JMAConsulting/CRM-20391

CRM-20391 Added pan trucation to search

7 years agoMerge pull request #10115 from jmcclelland/CRM-20388
Eileen McNaughton [Tue, 11 Apr 2017 20:33:06 +0000 (08:33 +1200)]
Merge pull request #10115 from jmcclelland/CRM-20388

CRM-20388 - ensure connection errors are properly reported to user.

7 years agoMerge pull request #9848 from JMAConsulting/CRM-8526
Eileen McNaughton [Tue, 11 Apr 2017 20:10:16 +0000 (08:10 +1200)]
Merge pull request #9848 from JMAConsulting/CRM-8526

CRM-8526 [ready for core team review] Added support for contribution tokens in emails sent via search results (Find contribution results and Advanced search when results are listed as contributions)

7 years agoMerge pull request #10142 from JMAConsulting/IIDA-58
colemanw [Tue, 11 Apr 2017 15:31:16 +0000 (11:31 -0400)]
Merge pull request #10142 from JMAConsulting/IIDA-58

CRM-20022 Minor fix to change group by label

7 years agoCRM-8526 Added contribution tokens to list
Edsel [Thu, 16 Feb 2017 10:20:41 +0000 (15:50 +0530)]
CRM-8526 Added contribution tokens to list

----------------------------------------
* CRM-8526: Support [contribution.custom_nn] tokens in templates
  https://issues.civicrm.org/jira/browse/CRM-8526

CRM-8526 Added support for contribution tokens in find contributions search results

7 years agoCRM-20022 Minor fix to change group by label
Edsel [Tue, 11 Apr 2017 12:58:35 +0000 (18:28 +0530)]
CRM-20022 Minor fix to change group by label

----------------------------------------
* CRM-20022: Add Batch Title to Columns, Grouping tabs on Contribution Summary report
  https://issues.civicrm.org/jira/browse/CRM-20022

7 years agoCRM-20392, Code cleanup
Pradeep Nayak [Fri, 7 Apr 2017 20:16:47 +0000 (01:46 +0530)]
CRM-20392, Code cleanup

----------------------------------------
* CRM-20392: Credit card payment not recorded when contribution is partially paid
  https://issues.civicrm.org/jira/browse/CRM-20392

7 years agoCRM-20391 Added card number to search
Edsel [Tue, 11 Apr 2017 08:47:42 +0000 (14:17 +0530)]
CRM-20391 Added card number to search

----------------------------------------
* CRM-20391: Add card number field on search form
  https://issues.civicrm.org/jira/browse/CRM-20391

7 years agoMerge pull request #10138 from totten/master-hook-fix
Eileen McNaughton [Tue, 11 Apr 2017 10:37:35 +0000 (22:37 +1200)]
Merge pull request #10138 from totten/master-hook-fix

CRM-19813 - Only dispatch through EventDispatcher after booting

7 years agoReformat hard code list as per suggestion from Tim
Seamus Lee [Tue, 11 Apr 2017 09:06:47 +0000 (19:06 +1000)]
Reformat hard code list as per suggestion from Tim

7 years agoMerge pull request #10137 from eileenmcnaughton/iida2
Monish Deb [Tue, 11 Apr 2017 09:03:04 +0000 (14:33 +0530)]
Merge pull request #10137 from eileenmcnaughton/iida2

Towards CRM-20392 fix receive_date to use date_picker

7 years agoSwitch to API calls and hard code execption list
Seamus Lee [Tue, 11 Apr 2017 05:09:06 +0000 (15:09 +1000)]
Switch to API calls and hard code execption list

7 years agoMinor code cleanup
Seamus Lee [Tue, 11 Apr 2017 01:32:11 +0000 (11:32 +1000)]
Minor code cleanup

Minor fix

7 years agoCRM-20410 Reformat CRM_SMS_BAO_Provider to use standard create function style rather...
Seamus Lee [Tue, 11 Apr 2017 00:43:44 +0000 (10:43 +1000)]
CRM-20410 Reformat CRM_SMS_BAO_Provider to use standard create function style rather than the split

Fix posthook

7 years agoMerge pull request #10136 from eileenmcnaughton/iida
Eileen McNaughton [Tue, 11 Apr 2017 08:53:00 +0000 (20:53 +1200)]
Merge pull request #10136 from eileenmcnaughton/iida

Towards CRM-20392 (IIDA-108), code cleanup, removed cruft code

7 years agoCRM-19813 - Only dispatch through EventDispatcher after booting
Tim Otten [Tue, 11 Apr 2017 08:00:32 +0000 (01:00 -0700)]
CRM-19813 - Only dispatch through EventDispatcher after booting

After merging #9949, some screens (like the contact-result list or "View
Contact") reported warnings like:

```
Notice: Undefined index: in CRM_Core_BAO_Country::countryLimit() (line 90 of /home/foo/buildkit/build/dmaster/sites/all/modules/civicrm/CRM/Core/BAO/Country.php).
Notice: Undefined index: in CRM_Core_BAO_Country::provinceLimit() (line 62 of /home/foo/buildkit/build/dmaster/sites/all/modules/civicrm/CRM/Core/BAO/Country.php).
```

Bisecting the git history revealed that it stemmed from switching
`hook_civicrm_entityTypes` to go through EventDispatcher.

https://github.com/civicrm/civicrm-core/pull/9949/commits/fb1d9ad2f5116245ba3488a26f8e0b065f328006#diff-8869a8f3c6318eb0580ce2aa04b713bfL1835

This hook is apparently similar to `hook_civicrm_container` in that both
fires pre-boot.  If we attempt to dispatch it through the container in a
pre-boot environment, something initializes incorrectly.

This change proposes a general rule:
 * If you fire a hook before the container or EventDispatcher is available...
 * Then don't try to use the container or EventDispatcher.

7 years agoTowards CRM-20392 (IIDA-108), code cleanup, removed cruft code
Pradeep Nayak [Mon, 3 Apr 2017 22:16:45 +0000 (10:16 +1200)]
Towards CRM-20392 (IIDA-108), code cleanup, removed cruft code

7 years agoTowards CRM-20392 fix receive_date to use date_picker
eileen [Tue, 11 Apr 2017 06:24:15 +0000 (18:24 +1200)]
Towards CRM-20392 fix receive_date to use date_picker

This might not have been necessary in the end - https://github.com/civicrm/civicrm-packages/pull/178
seems like the fix for the breakage, but we should be making this change on
every form we touch in order to get rid of code complexity.

7 years agoMerge pull request #9949 from totten/master-hook-ev2
Eileen McNaughton [Tue, 11 Apr 2017 02:06:25 +0000 (14:06 +1200)]
Merge pull request #9949 from totten/master-hook-ev2

CRM-19813 - Unify Symfony Events and hooks

7 years agoMerge pull request #9796 from seamuslee001/CRM-19961
Eileen McNaughton [Tue, 11 Apr 2017 00:45:47 +0000 (12:45 +1200)]
Merge pull request #9796 from seamuslee001/CRM-19961

CRM-19961 Make civicrm_sms_provider able to be domain specific

7 years agoMerge pull request #10132 from seamuslee001/CRM-20402
Eileen McNaughton [Mon, 10 Apr 2017 23:58:24 +0000 (11:58 +1200)]
Merge pull request #10132 from seamuslee001/CRM-20402

CRM-20402 Improve handling of spam bounces that get classified as syntax bounces