civicrm-core.git
8 years agoCRM-18744 - Remember quicksearch field selection
Coleman Watts [Fri, 3 Jun 2016 22:16:41 +0000 (16:16 -0600)]
CRM-18744 - Remember quicksearch field selection

8 years agoMerge pull request #8482 from JKingsnorth/CRM-18739
Yashodha Chaku [Fri, 3 Jun 2016 11:39:57 +0000 (17:09 +0530)]
Merge pull request #8482 from JKingsnorth/CRM-18739

CRM-18739: Display currency for canceled contribution amount

8 years agoMerge pull request #8481 from yashodha/CRM-18699
Yashodha Chaku [Fri, 3 Jun 2016 11:17:19 +0000 (16:47 +0530)]
Merge pull request #8481 from yashodha/CRM-18699

CRM-18699: fix generated data for the typo

8 years agoMerge pull request #8430 from yashodha/CRM-18655
Yashodha Chaku [Fri, 3 Jun 2016 11:06:40 +0000 (16:36 +0530)]
Merge pull request #8430 from yashodha/CRM-18655

CRM-18655: Selected id's not escaped properly

8 years agoMerge pull request #8451 from yashodha/CRM-18139
Yashodha Chaku [Fri, 3 Jun 2016 10:51:04 +0000 (16:21 +0530)]
Merge pull request #8451 from yashodha/CRM-18139

CRM-18139: Notification needed when using Batch Update of Participant…

8 years agoCRM-18739: Display currency for canceled contribution amount
JKingsnorth [Fri, 3 Jun 2016 10:50:31 +0000 (11:50 +0100)]
CRM-18739: Display currency for canceled contribution amount

8 years agoCRM-18699: fix generated data for the typo
yashodha [Fri, 3 Jun 2016 08:36:58 +0000 (14:06 +0530)]
CRM-18699: fix generated data for the typo

----------------------------------------
* CRM-18699: Wake Island is misspelled
  https://issues.civicrm.org/jira/browse/CRM-18699

8 years agoMerge pull request #8477 from mpnordland/master
Yashodha Chaku [Fri, 3 Jun 2016 08:34:27 +0000 (14:04 +0530)]
Merge pull request #8477 from mpnordland/master

CRM-18699 Fixed Wake Island spelling

8 years agoCRM-18699 fix in 4.7.9 now, better where statment
Micah Nordland [Thu, 2 Jun 2016 15:25:50 +0000 (11:25 -0400)]
CRM-18699 fix in 4.7.9 now, better where statment

8 years agoMerge pull request #8328 from mlutfy/master-crm18524
Yashodha Chaku [Thu, 2 Jun 2016 13:05:24 +0000 (18:35 +0530)]
Merge pull request #8328 from mlutfy/master-crm18524

CRM-18524: Fix db error when exporting contributions (phone_type_id is not a real ID field).

8 years agoMerge remote-tracking branch 'origin/4.7.8-rc' into 4.7.8-rc-master-2016-06-02-00...
Tim Otten [Thu, 2 Jun 2016 06:34:46 +0000 (00:34 -0600)]
Merge remote-tracking branch 'origin/4.7.8-rc' into 4.7.8-rc-master-2016-06-02-00-34-42

8 years agoCRM-18699 Fixed Wake Island spelling
Micah Nordland [Wed, 1 Jun 2016 16:33:58 +0000 (12:33 -0400)]
CRM-18699 Fixed Wake Island spelling

8 years agoMerge pull request #8438 from yashodha/CRM-18659
Yashodha Chaku [Wed, 1 Jun 2016 12:52:09 +0000 (18:22 +0530)]
Merge pull request #8438 from yashodha/CRM-18659

CRM-18659: inappropriate place for upgrade script

8 years agoMerge pull request #8452 from jitendrapurohit/CRM-18677
colemanw [Fri, 27 May 2016 22:26:52 +0000 (18:26 -0400)]
Merge pull request #8452 from jitendrapurohit/CRM-18677

CRM-18677 - Bugs with multivalued custom data displayed Inline.

8 years agoMerge pull request #8441 from rajbdilip/CRM-17887_2
Yashodha Chaku [Fri, 27 May 2016 07:11:50 +0000 (12:41 +0530)]
Merge pull request #8441 from rajbdilip/CRM-17887_2

CRM-17887 - Add a new setting `Financial Batch date`

8 years agoMerge pull request #8445 from eileenmcnaughton/merge_rc
Tim Otten [Thu, 26 May 2016 23:38:00 +0000 (16:38 -0700)]
Merge pull request #8445 from eileenmcnaughton/merge_rc

CRM-18673 fix merge handling of identifal addresses

8 years agoMerge pull request #8458 from tommybobo/select2css-fix
colemanw [Thu, 26 May 2016 19:11:02 +0000 (15:11 -0400)]
Merge pull request #8458 from tommybobo/select2css-fix

CRM-18691 Select2 Height being squashed when defult is blank

8 years agoCRM-18691 Select2 Height being squashed when defult is blank
Tommy Bobo [Thu, 26 May 2016 18:53:51 +0000 (14:53 -0400)]
CRM-18691 Select2 Height being squashed when defult is blank

8 years agoMerge pull request #8457 from yashodha/CRM-18676
Kurund Jalmi [Thu, 26 May 2016 11:07:36 +0000 (16:37 +0530)]
Merge pull request #8457 from yashodha/CRM-18676

CRM-18676: Incorrect status for pay later free membership

8 years agoCRM-18676: Incorrect status for pay later free membership
yashodha [Thu, 26 May 2016 09:45:00 +0000 (15:15 +0530)]
CRM-18676: Incorrect status for pay later free membership

----------------------------------------
* CRM-18676: Incorrect status for pay later free membership
  https://issues.civicrm.org/jira/browse/CRM-18676

8 years agoCRM-18676: Incorrect status for pay later free membership
yashodha [Thu, 26 May 2016 09:04:29 +0000 (14:34 +0530)]
CRM-18676: Incorrect status for pay later free membership

----------------------------------------
* CRM-18676: Incorrect status for pay later free membership
  https://issues.civicrm.org/jira/browse/CRM-18676

8 years agoMerge pull request #8436 from civicrm/eileenmcnaughton-patch-1
Tim Otten [Thu, 26 May 2016 06:47:18 +0000 (23:47 -0700)]
Merge pull request #8436 from civicrm/eileenmcnaughton-patch-1

Declaring required as false on timestamp fields causes allow null in â€¦

8 years agoCRM-17887 - Add a new setting `Financial Batch date`
Dilip Raj Baral [Mon, 23 May 2016 06:10:22 +0000 (11:40 +0530)]
CRM-17887 - Add a new setting `Financial Batch date`

https://issues.civicrm.org/jira/browse/CRM-17887

He's likely referencing the setting at Administer > Localization > Date Formats, Complete Date fields. Unfortunately, those settings don't include a convenient one for this purpose, since by default they include text names of months, etc. So, added a new field exclusively for Financial Batch.

8 years agoCRM-18677 - Bugs with multivalued custom data displayed Inline.
jitendrapurohit [Wed, 25 May 2016 12:50:39 +0000 (18:20 +0530)]
CRM-18677 - Bugs with multivalued custom data displayed Inline.

8 years agostring fixes
yashodha [Wed, 25 May 2016 11:44:52 +0000 (17:14 +0530)]
string fixes

8 years agoCRM-18139: Notification needed when using Batch Update of Participants via Profile...
yashodha [Wed, 25 May 2016 10:58:59 +0000 (16:28 +0530)]
CRM-18139: Notification needed when using Batch Update of Participants via Profile (currently only when using Change Participant Status function)

----------------------------------------
* CRM-18139: Notification needed when using Batch Update of Participants via Profile (currently only when using Change Participant Status function)
  https://issues.civicrm.org/jira/browse/CRM-18139

8 years agoCRM-18139: Notification needed when using Batch Update of Participants via Profile...
yashodha [Wed, 25 May 2016 08:45:43 +0000 (14:15 +0530)]
CRM-18139: Notification needed when using Batch Update of Participants via Profile (currently only when using Change Participant Status function)

----------------------------------------
* CRM-18139: Notification needed when using Batch Update of Participants via Profile (currently only when using Change Participant Status function)
  https://issues.civicrm.org/jira/browse/CRM-18139

8 years agoMerge pull request #8446 from totten/mollux-CRM-18510
Tim Otten [Wed, 25 May 2016 06:29:45 +0000 (23:29 -0700)]
Merge pull request #8446 from totten/mollux-CRM-18510

CRM-18510 - Fix regression when searching for location types

8 years agoMerge pull request #8443 from colemanw/CRM-17607
Monish Deb [Wed, 25 May 2016 05:08:07 +0000 (10:38 +0530)]
Merge pull request #8443 from colemanw/CRM-17607

CRM-17607 - Add docx, odt, html document export functionality

8 years agoCRM-17607 - Fix document showing up as activity type
Coleman Watts [Mon, 7 Mar 2016 02:08:36 +0000 (21:08 -0500)]
CRM-17607 - Fix document showing up as activity type

8 years agoCRM-17607 - Support multiple document formats for export
Coleman Watts [Wed, 24 Feb 2016 14:09:59 +0000 (09:09 -0500)]
CRM-17607 - Support multiple document formats for export

8 years agoCRM-17607 - Change PDF activity type label
Coleman Watts [Wed, 17 Feb 2016 21:52:48 +0000 (16:52 -0500)]
CRM-17607 - Change PDF activity type label

8 years agoCRM_Contact_BAO_Query - Extract method `prepareOrderBy()` (via PHPStorm)
Tim Otten [Wed, 25 May 2016 01:41:32 +0000 (18:41 -0700)]
CRM_Contact_BAO_Query - Extract method `prepareOrderBy()` (via PHPStorm)

The fixes on `searchQuery` are making a bad function even harder to read.
In keeping with https://wiki.civicrm.org/confluence/display/CRM/Toxic+Code+Protocol , we
need to some cleanup at the same time.

This was generated using PHPStorm's automated refactoring, "Extract Method".

8 years agoCRM_Contact_BAO_QueryTest - Update assertion on ORDER BY to use backtick
Tim Otten [Wed, 25 May 2016 01:40:34 +0000 (18:40 -0700)]
CRM_Contact_BAO_QueryTest - Update assertion on ORDER BY to use backtick

Order by clauses are now properly escaped.

8 years agoCRM_Contact_BAO_Query::searchQuery - Preserve $order until last minute (EVIL)
Tim Otten [Wed, 25 May 2016 01:01:18 +0000 (18:01 -0700)]
CRM_Contact_BAO_Query::searchQuery - Preserve $order until last minute (EVIL)

Building on https://gist.github.com/mollux/7ffeb63f55ba0ba6180968d6d36f4745

This function does a lot of string-analysis on `$order`, and proper escaping
breaks this. However, the CRM_Utils_Type::escape() is quite clever about
validating and applying escaping.

8 years agoCRM-18673 fix merge handling of identical addresses
eileen [Wed, 25 May 2016 00:21:28 +0000 (12:21 +1200)]
CRM-18673 fix merge handling of identical addresses

8 years agoCRM-17607 - Add phpoffice/phpword library
Coleman Watts [Sat, 5 Mar 2016 00:32:24 +0000 (19:32 -0500)]
CRM-17607 - Add phpoffice/phpword library

8 years agoFixed tests for loosened MysqlColumnNameOrAlias validation.
Mattias Michaux [Tue, 24 May 2016 22:13:34 +0000 (00:13 +0200)]
Fixed tests for loosened MysqlColumnNameOrAlias validation.

8 years agoFixed wrong dash.
Mattias Michaux [Tue, 24 May 2016 22:04:38 +0000 (00:04 +0200)]
Fixed wrong dash.

8 years agoLoosen the MysqlColumnNameOrAlias validation.
Mattias Michaux [Tue, 24 May 2016 21:51:41 +0000 (23:51 +0200)]
Loosen the MysqlColumnNameOrAlias validation.

8 years agoCRM-18659: inappropriate place for upgrade script
yashodha [Tue, 24 May 2016 08:53:15 +0000 (14:23 +0530)]
CRM-18659: inappropriate place for upgrade script

----------------------------------------
* CRM-18659: inappropriate place for upgrade script
  https://issues.civicrm.org/jira/browse/CRM-18659

8 years agoMerge pull request #8437 from eileenmcnaughton/dedupe_regression
Eileen McNaughton [Tue, 24 May 2016 07:59:23 +0000 (19:59 +1200)]
Merge pull request #8437 from eileenmcnaughton/dedupe_regression

Dedupe regression

8 years agoReadded escaping to CRM_Utils_Sort and fixed str_replace in CRM_Contact_BAO_Query...
Mattias Michaux [Tue, 24 May 2016 05:29:06 +0000 (07:29 +0200)]
Readded escaping to CRM_Utils_Sort and fixed str_replace in CRM_Contact_BAO_Query->searchQuery()

8 years agoCRM-18667 Dedupe regression bug (4.7.8rc) merge contacts action from task list fails...
eileen [Tue, 24 May 2016 00:01:47 +0000 (12:01 +1200)]
CRM-18667 Dedupe regression bug (4.7.8rc) merge contacts action from task list fails with an error

8 years agoDeclaring required as false on timestamp fields causes allow null in new installs
Eileen McNaughton [Mon, 23 May 2016 22:51:05 +0000 (10:51 +1200)]
Declaring required as false on timestamp fields causes allow null in new installs

Really this is kind of a GenCode bug - but this works...

8 years agoMerge pull request #8434 from totten/master-regen-zipcodes
Eileen McNaughton [Mon, 23 May 2016 21:51:50 +0000 (09:51 +1200)]
Merge pull request #8434 from totten/master-regen-zipcodes

(NFC) bin/regen.sh - Drop-create table `zipcodes`

8 years agobin/regen.sh - Drop-create table `zipcodes`
Tim Otten [Mon, 23 May 2016 20:31:07 +0000 (13:31 -0700)]
bin/regen.sh - Drop-create table `zipcodes`

The original `regen.sh` script drops the table `zipcodes` after creating it.
That works fine in normal execution (when `regen.sh` finishes without
erorr).  But if there is an error, then the table gets left in the DB -- and
creates a conflict when you try re-run `regen.sh`.

This patch does a 'drop-create' so that subsequent runs will work despite a
previous error.

8 years agoSet version to 4.7.9
Tim Otten [Mon, 23 May 2016 19:32:45 +0000 (12:32 -0700)]
Set version to 4.7.9

8 years agoCRM-18655: Selected id's not escaped properly
yashodha [Mon, 23 May 2016 10:42:29 +0000 (16:12 +0530)]
CRM-18655: Selected id's not escaped properly

----------------------------------------
* CRM-18655: Selected id's not escaped properly
  https://issues.civicrm.org/jira/browse/CRM-18655

8 years agoMerge pull request #7586 from nielosz/configure-recent
Tim Otten [Sun, 22 May 2016 01:39:24 +0000 (18:39 -0700)]
Merge pull request #7586 from nielosz/configure-recent

[ready-for-core-team-review] Add settings to configure recently viewed items stack (Recent.php)

8 years agoMerge pull request #8419 from totten/master-dompdf
Tim Otten [Sat, 21 May 2016 04:18:30 +0000 (21:18 -0700)]
Merge pull request #8419 from totten/master-dompdf

CRM-16898 - Restore TreeBuilder. Replace debug call.

8 years agoCRM-16898 - Replace debug code in html5lib
Tim Otten [Sat, 21 May 2016 03:58:26 +0000 (20:58 -0700)]
CRM-16898 - Replace debug code in html5lib

8 years agoRevert "CRM-16898. Remove debugging in html5lib."
Tim Otten [Sat, 21 May 2016 03:49:51 +0000 (20:49 -0700)]
Revert "CRM-16898. Remove debugging in html5lib."

This reverts commit 693cb3279584278ccbb3eaa1394999c7a69d7bf6.

8 years agoMerge pull request #8298 from colemanw/CRM-18286
Tim Otten [Sat, 21 May 2016 03:25:52 +0000 (20:25 -0700)]
Merge pull request #8298 from colemanw/CRM-18286

CRM-18286 - Use localStorage to remember datatable page length

8 years agoMerge pull request #7825 from torrance/editable-button-fix-master
Tim Otten [Sat, 21 May 2016 02:47:41 +0000 (19:47 -0700)]
Merge pull request #7825 from torrance/editable-button-fix-master

Ensure editable buttons don't sit underneath other page elements.

8 years agoMerge pull request #8370 from eileenmcnaughton/groups
Tim Otten [Sat, 21 May 2016 02:16:32 +0000 (19:16 -0700)]
Merge pull request #8370 from eileenmcnaughton/groups

CRM-16642 group refresh code

8 years agoMerge pull request #8417 from seamuslee001/CRM-18504-47
Eileen McNaughton [Sat, 21 May 2016 01:52:24 +0000 (13:52 +1200)]
Merge pull request #8417 from seamuslee001/CRM-18504-47

CRM-18504 Add test for custom group that extends multiple subtype

8 years agoUpdate sql/civicrm_generated.mysql
Tim Otten [Sat, 21 May 2016 00:58:55 +0000 (17:58 -0700)]
Update sql/civicrm_generated.mysql

8 years agoCRM-16642 - Simplify list of smart-group options
Tim Otten [Sat, 21 May 2016 00:40:56 +0000 (17:40 -0700)]
CRM-16642 - Simplify list of smart-group options

Using an option-group takes a lot of work.  Also, it wasn't handling
consistently labels+descriptions (upgrade-vs-new install), and it isn't
really supported in the metadata for Setting API.  And fundamentally this
list is not really editable by users.

8 years agoMerge pull request #8415 from monishdeb/CRM-18159
Monish Deb [Fri, 20 May 2016 14:57:13 +0000 (20:27 +0530)]
Merge pull request #8415 from monishdeb/CRM-18159

CRM-18159: Mailings does not have an ACL restriction in place

8 years agoMerge pull request #7587 from totten/master-jobproc-2m
Monish Deb [Fri, 20 May 2016 14:55:19 +0000 (20:25 +0530)]
Merge pull request #7587 from totten/master-jobproc-2m

CRM-17629 - JobProcessMailingTest - Test w/mailerBatchLimit & 2x mailings

8 years agoMerge pull request #8416 from monishdeb/CRM-18322
Monish Deb [Fri, 20 May 2016 13:49:20 +0000 (19:19 +0530)]
Merge pull request #8416 from monishdeb/CRM-18322

CRM-18322: notice fix on participant search

8 years agoRevert unintentionally deletion
Niels Heinemann [Fri, 20 May 2016 13:19:44 +0000 (15:19 +0200)]
Revert unintentionally deletion

8 years agoReflect style guidelines
Niels Heinemann [Fri, 20 May 2016 13:02:30 +0000 (15:02 +0200)]
Reflect style guidelines

8 years agoValidate user input on stack size
Niels Heinemann [Fri, 20 May 2016 12:29:42 +0000 (14:29 +0200)]
Validate user input on stack size

8 years agoReflect civi style guidelines
Niels Heinemann [Thu, 14 Jan 2016 09:03:02 +0000 (10:03 +0100)]
Reflect civi style guidelines

8 years agoAdd configuration options to adjust the behavior of recent items stack: 1.) Define...
Niels Heinemann [Tue, 12 Jan 2016 15:22:39 +0000 (16:22 +0100)]
Add configuration options to adjust the behavior of recent items stack: 1.) Define stack size, 2.) Decide which components may store items in stack

8 years agoConvert test to having multiple custom groups separated by VALUE_SEPARATOR
Seamus Lee [Fri, 20 May 2016 11:31:12 +0000 (11:31 +0000)]
Convert test to having multiple custom groups separated by VALUE_SEPARATOR

8 years agoFix undefined veriable
Seamus Lee [Fri, 20 May 2016 11:15:55 +0000 (11:15 +0000)]
Fix undefined veriable

8 years agoadditional fixes
deb.monish [Fri, 20 May 2016 09:57:00 +0000 (15:27 +0530)]
additional fixes

8 years agoCRM-18159 fixed styles issues and moved buildAcl to CRM_ACL_BAO_ACL
Jaap Jansma [Thu, 12 May 2016 18:23:29 +0000 (20:23 +0200)]
CRM-18159 fixed styles issues and moved buildAcl to CRM_ACL_BAO_ACL

8 years agoFixed CRM-18159: master branch and sending test mail to group did not include an...
Jaap Jansma [Fri, 15 Apr 2016 13:01:36 +0000 (15:01 +0200)]
Fixed CRM-18159: master branch and  sending test mail to group did not include an acl yet.

8 years agoAttempt to add test for custom group that extends multiple subtype
Seamus Lee [Fri, 20 May 2016 10:40:22 +0000 (10:40 +0000)]
Attempt to add test for custom group that extends multiple subtype

8 years agoCRM-18322: notice fix on participant search
deb.monish [Fri, 20 May 2016 10:39:46 +0000 (16:09 +0530)]
CRM-18322: notice fix on participant search

8 years agoFix deprecated settings call
Niels Heinemann [Thu, 18 Feb 2016 11:49:30 +0000 (12:49 +0100)]
Fix deprecated settings call

8 years agoReflect civi style guidelines
Niels Heinemann [Thu, 14 Jan 2016 09:03:02 +0000 (10:03 +0100)]
Reflect civi style guidelines

8 years agoRm debug out
Niels Heinemann [Tue, 12 Jan 2016 18:56:47 +0000 (19:56 +0100)]
Rm debug out

8 years agoAdd configuration options to adjust the behavior of recent items stack: 1.) Define...
Niels Heinemann [Tue, 12 Jan 2016 15:22:39 +0000 (16:22 +0100)]
Add configuration options to adjust the behavior of recent items stack: 1.) Define stack size, 2.) Decide which components may store items in stack

8 years agoMerge pull request #8366 from kenwest/CRM-18528-b
Monish Deb [Fri, 20 May 2016 06:21:57 +0000 (11:51 +0530)]
Merge pull request #8366 from kenwest/CRM-18528-b

CRM-18528 Manage Groups search ignores filters

8 years agoMerge pull request #8349 from rajbdilip/CRM-18324
Yashodha Chaku [Fri, 20 May 2016 05:18:01 +0000 (10:48 +0530)]
Merge pull request #8349 from rajbdilip/CRM-18324

CRM-18324 - Fix tax divison by zero error on Event Dashboard

8 years ago CRM-18568 remove flawed tests.
eileenmcnaugton [Fri, 20 May 2016 04:37:34 +0000 (16:37 +1200)]
 CRM-18568 remove flawed tests.

 After fixing the api to create option groups as enabled parts of this
 test started to fail as it became clear they were only appearing to pass
 (somewhat intermittantly) due to them bypassing checks due to the set up
 issue. This commit disables those parts for now. State province & country
 are
 subject to a caching bug & LIKE on pseudoconstants has issues described
 in CRM-18568

\1a

8 years agoMerge pull request #8413 from totten/master-ymdhis
Eileen McNaughton [Fri, 20 May 2016 04:12:03 +0000 (16:12 +1200)]
Merge pull request #8413 from totten/master-ymdhis

Change 12-hour `Ymdhis` to 24-hour `YmdHis`

8 years agosql/GenerateReportData.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`
Tim Otten [Fri, 20 May 2016 00:54:32 +0000 (17:54 -0700)]
sql/GenerateReportData.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`

8 years agosql/GenerateData.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`
Tim Otten [Fri, 20 May 2016 00:54:32 +0000 (17:54 -0700)]
sql/GenerateData.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`

8 years agoCivi/Core/SettingsBag.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`
Tim Otten [Fri, 20 May 2016 00:54:32 +0000 (17:54 -0700)]
Civi/Core/SettingsBag.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`

8 years agoCRM/Utils/Mail/Incoming.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`
Tim Otten [Fri, 20 May 2016 00:54:32 +0000 (17:54 -0700)]
CRM/Utils/Mail/Incoming.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`

8 years agoCRM/Core/BAO/File.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`
Tim Otten [Fri, 20 May 2016 00:54:32 +0000 (17:54 -0700)]
CRM/Core/BAO/File.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`

8 years agoCRM/Core/BAO/CustomGroup.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`
Tim Otten [Fri, 20 May 2016 00:54:32 +0000 (17:54 -0700)]
CRM/Core/BAO/CustomGroup.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`

8 years agoCRM/Core/BAO/CustomField.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`
Tim Otten [Fri, 20 May 2016 00:54:32 +0000 (17:54 -0700)]
CRM/Core/BAO/CustomField.php - Change 12-hour `Ymdhis` to 24-hour `YmdHis`

8 years agoCRM-16642 - Compute timestamps using 24-hour clock
Tim Otten [Fri, 20 May 2016 00:48:28 +0000 (17:48 -0700)]
CRM-16642 - Compute timestamps using 24-hour clock

`Ymdhis` is silly here.  Use `YmdHis`.  This was causing test results to
vary based on they were run.

8 years agoCRM-16642 - Rename `refreshCache` to `flushCache`
Tim Otten [Thu, 19 May 2016 23:09:23 +0000 (16:09 -0700)]
CRM-16642 - Rename `refreshCache` to `flushCache`

The old name is misleading about the outcome -- it does not end up producing
a 'fresh' cache.  It produces an empty cache.

8 years agoCRM-16642 add further tests
eileen [Tue, 17 May 2016 04:26:03 +0000 (16:26 +1200)]
CRM-16642 add further tests

Change-Id: I0804620359bf594d100ffcf74c638b94b012c584

8 years agotidy up constant ref
eileen [Tue, 17 May 2016 03:56:16 +0000 (15:56 +1200)]
tidy up constant ref

Change-Id: Ie05c915f9a1841a6faf5654965399b5ed0bf62b6

8 years agoAdd tests for Ensure OptionGroup exists fn & fix optionValueExists to accept ID
eileen [Tue, 17 May 2016 01:05:23 +0000 (13:05 +1200)]
Add tests for Ensure OptionGroup exists fn & fix optionValueExists to accept ID

The option_group_id field accepts name or id so use that.

8 years agoCRM-18516 clarify that cache_date & refresh_date can be NULL (ie. when they have...
eileen [Mon, 16 May 2016 23:42:55 +0000 (11:42 +1200)]
CRM-18516 clarify that cache_date & refresh_date can be NULL (ie. when they have not been build).

Arguably refresh_date should be set to 'now' at this point but this doesn't change anything and that logic might be teased out more when we turn out eyes to the rebuild scripts

8 years agoFix install portion of new option Group
eileenmcnaugton [Mon, 16 May 2016 06:16:23 +0000 (18:16 +1200)]
Fix install portion of new option Group

8 years agoFirst caching test:
eileenmcnaugton [Mon, 16 May 2016 04:54:55 +0000 (16:54 +1200)]
First caching test:

Change-Id: I2bc8de77ff063605b64042a2ed4dc6d5175e6f5d

8 years agoPreliminary tidy up on test class
eileenmcnaugton [Mon, 16 May 2016 03:51:05 +0000 (15:51 +1200)]
Preliminary tidy up on test class

8 years agoCRM-18516 add job for clearing of caches, separated from the rebuild job
eileenmcnaugton [Mon, 16 May 2016 02:06:56 +0000 (14:06 +1200)]
CRM-18516 add job for clearing of caches, separated from the rebuild job

8 years agoCRM-16642 Switch to opportunisticCacheRefresh calls.
eileenmcnaugton [Mon, 16 May 2016 01:44:58 +0000 (13:44 +1200)]
CRM-16642 Switch to opportunisticCacheRefresh calls.

There is one call left to the function called 'remove' which needs a little more consideration