civicrm-core.git
4 years agoIssue template - Small tweak
Tim Otten [Thu, 7 Nov 2019 07:15:27 +0000 (23:15 -0800)]
Issue template - Small tweak

4 years agoIssue template - Rename "general-bug-or-issue" to "problem"
Tim Otten [Thu, 7 Nov 2019 07:01:32 +0000 (23:01 -0800)]
Issue template - Rename "general-bug-or-issue" to "problem"

Because... fewer words

4 years agoIssue template - Move error-msg block from "Reproduction steps" to "Current behavior"
Tim Otten [Thu, 7 Nov 2019 06:57:22 +0000 (22:57 -0800)]
Issue template - Move error-msg block from "Reproduction steps" to "Current behavior"

4 years agoIssue template - No screenshot for expected behavior
Tim Otten [Thu, 7 Nov 2019 06:44:04 +0000 (22:44 -0800)]
Issue template - No screenshot for expected behavior

The "Expected Behavior" is specifically what the system does *not* do, so...
it might be hard to give a screenshot of that...

4 years agoIssue template - For triple `, use multiline
Tim Otten [Thu, 7 Nov 2019 06:40:55 +0000 (22:40 -0800)]
Issue template - For triple `, use multiline

4 years agoIssue template - Update "Environment"; combine type+version fields
Tim Otten [Thu, 7 Nov 2019 06:36:27 +0000 (22:36 -0800)]
Issue template - Update "Environment"; combine type+version fields

We want "versions" for everything. Making separate lines for the version just makes it bit
harder to write (you have to remove more things) and to read (you have to skim more lines).

Changes:

* Combine "CMS/CMS Version"
* Combine "Database/Database Version"
* For "Web Server", also include version.
* Add "PHP"

4 years agoUpdate general-bug-or-issue.md
Mikey O'Toole [Thu, 31 Oct 2019 08:41:19 +0000 (08:41 +0000)]
Update general-bug-or-issue.md

4 years agoUpdate and rename general.md to general-bug-or-issue.md
Mikey O'Toole [Thu, 31 Oct 2019 08:40:37 +0000 (08:40 +0000)]
Update and rename general.md to general-bug-or-issue.md

4 years agoUpdate general.md
Mikey O'Toole [Thu, 31 Oct 2019 04:54:15 +0000 (04:54 +0000)]
Update general.md

4 years agoCreate a GitLab general issue template
Mikey O'Toole [Wed, 30 Oct 2019 11:31:18 +0000 (11:31 +0000)]
Create a GitLab general issue template

I had a call with Craig this morning to discuss how to raise issues etc on GitLab for new contributors - it was useful but it made me realise that we can help out people opening issues with one or more sensible templates for issues to guide people on what information to include in their issue.

So here's a general issue template based on the PR template and this issue of @jaapjansma's https://lab.civicrm.org/dev/core/issues/1345

4 years agoMerge pull request #15660 from totten/master-no-persistent
Eileen McNaughton [Wed, 30 Oct 2019 05:52:34 +0000 (18:52 +1300)]
Merge pull request #15660 from totten/master-no-persistent

Remove unused, hidden subsystem for "persistent DB tpl strings"

4 years agoUpgrader - Drop table "civicrm_persistent" (unless it has data)
Tim Otten [Wed, 30 Oct 2019 00:34:40 +0000 (17:34 -0700)]
Upgrader - Drop table "civicrm_persistent" (unless it has data)

4 years agosql/civicrm_generated.mysql - Update
Tim Otten [Wed, 30 Oct 2019 00:45:54 +0000 (17:45 -0700)]
sql/civicrm_generated.mysql - Update

4 years agoDB Tpl Strings - Remove table "civicrm_persistent"
Tim Otten [Wed, 30 Oct 2019 00:34:20 +0000 (17:34 -0700)]
DB Tpl Strings - Remove table "civicrm_persistent"

4 years agoDB Tpl Strings - Remove unused form 'civicrm/admin/tplstrings'
Tim Otten [Wed, 30 Oct 2019 00:29:26 +0000 (17:29 -0700)]
DB Tpl Strings - Remove unused form 'civicrm/admin/tplstrings'

If you grep for this (in v3.2, v5.20, and universe), you will find that the
only usages are self-referential or pro-forma:

- There is / never been a navigation item pointing to the page.
- There is no codepath which *consumes* data produced here.

4 years agoDB Tpl Strings - Remove unused Smarty function crmDBTpl
Tim Otten [Wed, 30 Oct 2019 00:24:05 +0000 (17:24 -0700)]
DB Tpl Strings - Remove unused Smarty function crmDBTpl

I've searched `universe` and haven't found any references to this.  This
appears to be the only code-path which consumes information from
`civicrm_persistent`.

I also went back to spot-check a few SVN branches of CiviCRM (v3.2, v3.3).
It appears that this was added in v3.2 *but never used or documented*.

4 years agoCRM_Upgrade_Incremental_Base - Add helper dropTableIfEmpty()
Tim Otten [Wed, 30 Oct 2019 00:20:46 +0000 (17:20 -0700)]
CRM_Upgrade_Incremental_Base - Add helper dropTableIfEmpty()

4 years agoCRM_Core_DAO - Add helper checkTableHasData()
Tim Otten [Wed, 30 Oct 2019 00:20:18 +0000 (17:20 -0700)]
CRM_Core_DAO - Add helper checkTableHasData()

4 years agoMerge pull request #15653 from eileenmcnaughton/billin_name
Seamus Lee [Tue, 29 Oct 2019 23:37:12 +0000 (10:37 +1100)]
Merge pull request #15653 from eileenmcnaughton/billin_name

dev/core#1344 Simplify email template logic on displaying card inform…

4 years agoMerge pull request #15659 from civicrm/5.19
Eileen McNaughton [Tue, 29 Oct 2019 23:36:07 +0000 (12:36 +1300)]
Merge pull request #15659 from civicrm/5.19

5.19

4 years agoMerge pull request #15657 from demeritcowboy/pledge-search-backport
Eileen McNaughton [Tue, 29 Oct 2019 23:35:51 +0000 (12:35 +1300)]
Merge pull request #15657 from demeritcowboy/pledge-search-backport

dev/core#1348 - pledge search not working backport of 15656

4 years agoMerge pull request #15658 from MikeyMJCO/patch-1
Eileen McNaughton [Tue, 29 Oct 2019 23:35:18 +0000 (12:35 +1300)]
Merge pull request #15658 from MikeyMJCO/patch-1

Delete mkdocs.yml

4 years agoMerge pull request #15655 from demeritcowboy/activity-search-form-values
Seamus Lee [Tue, 29 Oct 2019 22:08:27 +0000 (09:08 +1100)]
Merge pull request #15655 from demeritcowboy/activity-search-form-values

dev/core#1348 - backport of PR 15654

4 years agoMerge pull request #15652 from eileenmcnaughton/schema
Seamus Lee [Tue, 29 Oct 2019 21:49:51 +0000 (08:49 +1100)]
Merge pull request #15652 from eileenmcnaughton/schema

Add uniquenames for mailing_name, mailing_job_status

4 years agoDelete mkdocs.yml
Mikey O'Toole [Tue, 29 Oct 2019 21:48:30 +0000 (21:48 +0000)]
Delete mkdocs.yml

We may as well remove the old mkdocs.yml file as it's not used.

4 years agopledge search not working
DemeritCowboy [Tue, 29 Oct 2019 21:44:00 +0000 (17:44 -0400)]
pledge search not working

4 years agoactivity search not working at all
DemeritCowboy [Tue, 29 Oct 2019 21:08:31 +0000 (17:08 -0400)]
activity search not working at all

4 years agodev/core#1344 Simplify email template logic on displaying card information
eileen [Tue, 29 Oct 2019 20:19:33 +0000 (09:19 +1300)]
dev/core#1344 Simplify email template logic on displaying card information

Same deal as https://github.com/civicrm/civicrm-core/pull/15646

4 years agoAdd uniquenames for mailing_name, mailing_job_status
eileen [Tue, 29 Oct 2019 19:28:14 +0000 (08:28 +1300)]
Add uniquenames for mailing_name, mailing_job_status

This is in support of https://github.com/civicrm/civicrm-core/pull/15369

Where the names in the search do not match the 'real names' we have 2 techniques

1) where adding a unique name to the schema gives a match we do that - here that is
the case for mailing_name
2) otherwise we ensure the schema has a unique name if appropriate &
rename the field in the upgrade scriptt

In this case when we look at CRM_Mailing_BAO_Query we don't see mailing_name
as present (only mailing_id which should be an entity reference field). However it
is used in the confusingly-not-related Mailing search so lets rename this
one at the same time.

4 years agoMerge pull request #15646 from eileenmcnaughton/add_pay
Seamus Lee [Tue, 29 Oct 2019 19:15:10 +0000 (06:15 +1100)]
Merge pull request #15646 from eileenmcnaughton/add_pay

dev/core#1344 Simplify email template logic on displaying billing detail

4 years agoMerge pull request #15626 from demeritcowboy/case-pdf-merge-order
Seamus Lee [Tue, 29 Oct 2019 19:11:48 +0000 (06:11 +1100)]
Merge pull request #15626 from demeritcowboy/case-pdf-merge-order

dev/core#893 - fix misfiled case print/merge pdfs (alternate to PR 15609/15364)

4 years agoMerge pull request #14763 from eileenmcnaughton/payment_3
Eileen McNaughton [Tue, 29 Oct 2019 19:07:20 +0000 (08:07 +1300)]
Merge pull request #14763 from eileenmcnaughton/payment_3

dev/financial#34 Fix line allocation in Payment.create

4 years agoMerge pull request #15648 from seamuslee001/relationship_date_cleanup_fixes
Eileen McNaughton [Tue, 29 Oct 2019 04:38:28 +0000 (17:38 +1300)]
Merge pull request #15648 from seamuslee001/relationship_date_cleanup_fixes

Cleanup following smart group conversions and fix the old name of the…

4 years agoCleanup following smart group conversions and fix the old name of the relationship...
Seamus Lee [Tue, 29 Oct 2019 01:33:00 +0000 (12:33 +1100)]
Cleanup following smart group conversions and fix the old name of the relationship date relative fields for conversion and add a unit test

4 years agoMerge pull request #15647 from demeritcowboy/regen-upper-lower
Seamus Lee [Tue, 29 Oct 2019 01:45:03 +0000 (12:45 +1100)]
Merge pull request #15647 from demeritcowboy/regen-upper-lower

Allow regen.sh to work with either upper/lower case for CMS name to match elsewhere

4 years agoMerge pull request #15637 from eileenmcnaughton/relationdates
Seamus Lee [Tue, 29 Oct 2019 01:19:19 +0000 (12:19 +1100)]
Merge pull request #15637 from eileenmcnaughton/relationdates

Convert relationship start & end dates to datepicker

4 years agowork with either upper/lower to match elsewhere
demeritcowboy [Tue, 29 Oct 2019 00:10:03 +0000 (20:10 -0400)]
work with either upper/lower to match elsewhere

4 years agoConvert relationship_start_date & relationship_end_date to datepicker
eileen [Mon, 28 Oct 2019 05:02:59 +0000 (18:02 +1300)]
Convert relationship_start_date & relationship_end_date to datepicker

This seems to work OK - look forwards to seeing you kick the tyres on it & see if you find any issues

4 years agoMerge pull request #15635 from eileenmcnaughton/contact_date
Seamus Lee [Mon, 28 Oct 2019 21:47:34 +0000 (08:47 +1100)]
Merge pull request #15635 from eileenmcnaughton/contact_date

dev/core#561 Convert birth_date & deceased_date to datepicker

4 years agoConvert birth_date & deceased_date to datepicker
eileen [Mon, 28 Oct 2019 04:13:07 +0000 (17:13 +1300)]
Convert birth_date & deceased_date to datepicker

4 years agoMerge pull request #15636 from eileenmcnaughton/relationship_date
Seamus Lee [Mon, 28 Oct 2019 20:40:48 +0000 (07:40 +1100)]
Merge pull request #15636 from eileenmcnaughton/relationship_date

Add unique name for relationship start & end dates

4 years agodev/core#1344 Simplify email template logic on displaying billing detail
eileen [Mon, 28 Oct 2019 20:26:51 +0000 (09:26 +1300)]
dev/core#1344 Simplify email template logic on displaying billing detail

Per https://lab.civicrm.org/dev/core/issues/1344 we currently use complex & fragile logic whereas we can simply display
what we have gathered. Since email templates are already being upgraded this release it feels like a good
opportunity to clean these up too.

This just includes one template - but I'll rip through the rest if this gets merged & people agree

4 years agoMerge pull request #15643 from omarabuhussein/fixing-optionvalues-xml-processing
Eileen McNaughton [Mon, 28 Oct 2019 19:35:43 +0000 (08:35 +1300)]
Merge pull request #15643 from omarabuhussein/fixing-optionvalues-xml-processing

Fixing a fatal error when installing extensions with Option Values defined in XML

4 years agoMerge pull request #15630 from eileenmcnaughton/pay_fail
Eileen McNaughton [Mon, 28 Oct 2019 19:34:22 +0000 (08:34 +1300)]
Merge pull request #15630 from eileenmcnaughton/pay_fail

Fix cancel payment action to reverse financial items related to cancelled payment

4 years agoMerge pull request #15644 from civicrm/5.19
Eileen McNaughton [Mon, 28 Oct 2019 19:33:08 +0000 (08:33 +1300)]
Merge pull request #15644 from civicrm/5.19

5.19 to master

4 years agoMerge pull request #15642 from MiyaNoctem/dev-core-1093-backport-fix-to-v5.19-rc
Eileen McNaughton [Mon, 28 Oct 2019 19:32:36 +0000 (08:32 +1300)]
Merge pull request #15642 from MiyaNoctem/dev-core-1093-backport-fix-to-v5.19-rc

dev/core#1093: Bckport Fix to v.5.19 to Add Custom Fields to Logging Tables

4 years agoFixing a fatal error when installing extensions with Option Values
Omar abu hussein [Mon, 28 Oct 2019 15:55:35 +0000 (15:55 +0000)]
Fixing a fatal error when installing extensions with Option Values
defined in XML

If an Extension has an option value defined in an XML file and the
option value belongs to an option group that is already defined in Civi
But in the XML (e.g activity_type option group) then installing the
extension will result in a fatal error with the following message :

"A fatal error was triggered: One of parameters (value: ) is not of the type Integer"

The error happen because CiviCRM fails to find the option group in the
XML file so it look for it in the database, but the code that look for
it pass the option group name as a SimpleXML object (since SimpleXML
does not return scalar values and rather objects of Type SimpleXML) and
because of that the code won't be able to find the value which will
result in executing a query that expect an integer but rather a NULL
pass to it which result in the fatal error.

I fixed it by casting the option group name inside the SimpleXML object
to string.

4 years agodev/core#1093: Add Custom Fields to Logging Tables
Camilo Rodríguez [Thu, 24 Oct 2019 18:34:54 +0000 (13:34 -0500)]
dev/core#1093: Add Custom Fields to Logging Tables

BulkSave method was adding fields to custom group table, but not to custom
group logging table. If these tables were updated on installation, before all
the schema is synced bewtween main and logging tables, fatal errors would be
thrown, as triggers tried to insert info into log tables missing required
fields.

Fixed by building log table after all fields are added to main table, and
before rebuilding triggers.

4 years agoMerge pull request #15639 from eileenmcnaughton/pay
Eileen McNaughton [Mon, 28 Oct 2019 11:32:51 +0000 (00:32 +1300)]
Merge pull request #15639 from eileenmcnaughton/pay

dev/financial#77 ++ Make contribution_id mandatory for PaymentProcessor.pay, pass invoiceID

4 years agodev/financial#77 ++ Make contribution_id mandatory for PaymentProcessor.pay, pass...
eileen [Mon, 28 Oct 2019 10:05:18 +0000 (23:05 +1300)]
dev/financial#77 ++ Make contribution_id mandatory for PaymentProcessor.pay, pass incoieID

Replaces https://github.com/civicrm/civicrm-core/pull/15477 & also resolves https://lab.civicrm.org/dev/financial/issues/77

by requiring contribution_id for PaymentProcessor.pay as a way to ensure that it is only called after the order is created
per our preferred flow (people could still get past this but it feels like they would at least know they werre
hacking our process & take responsibility for any issues if it breaks or we suddenly start enforcing that
it is a valid contribution.

This also sets some of the recommended variables. Note that I had to use a few more lines to ensure we were always setting
contactID, contributionRecurID to an integer. I do think this stricter approach is better but it wound up
more verbose

4 years agoMerge pull request #15375 from ixiam/dev_issue#1282
Eileen McNaughton [Mon, 28 Oct 2019 09:22:20 +0000 (22:22 +1300)]
Merge pull request #15375 from ixiam/dev_issue#1282

dev/core#1282 Takes care of customfields of type multiselect that were not being rendered

4 years agoMerge pull request #15541 from ixiam/dev_issue#1324
Eileen McNaughton [Mon, 28 Oct 2019 08:08:12 +0000 (21:08 +1300)]
Merge pull request #15541 from ixiam/dev_issue#1324

Adds missing join on the customtable of address customfields while exposed as profile

4 years agoAdd unique name for relationship start & end dates
eileen [Mon, 28 Oct 2019 04:23:06 +0000 (17:23 +1300)]
Add unique name for relationship start & end dates

Preliminary to fixing for datepicker

4 years agoMerge pull request #15634 from eileenmcnaughton/mailing_date
Eileen McNaughton [Mon, 28 Oct 2019 05:12:42 +0000 (18:12 +1300)]
Merge pull request #15634 from eileenmcnaughton/mailing_date

Improve metadata support for table civicrm_mailing_job in search

4 years agoMerge pull request #15633 from seamuslee001/dev_core_561_mailing
Seamus Lee [Mon, 28 Oct 2019 04:32:25 +0000 (15:32 +1100)]
Merge pull request #15633 from seamuslee001/dev_core_561_mailing

dev/core#561 Convert mailing date search field to using datepicker

4 years agoMerge pull request #15631 from eileenmcnaughton/fix_it
Seamus Lee [Mon, 28 Oct 2019 04:04:25 +0000 (15:04 +1100)]
Merge pull request #15631 from eileenmcnaughton/fix_it

[REF] Further deconstruction of updateFinancialAccounts

4 years agoPass dbFieldName to dbFieldName parameter
eileen [Mon, 28 Oct 2019 03:45:15 +0000 (16:45 +1300)]
Pass dbFieldName to dbFieldName parameter

4 years agoImprove metadata support for table civicrm_mailing_job in search
eileen [Mon, 28 Oct 2019 02:56:17 +0000 (15:56 +1300)]
Improve metadata support for table civicrm_mailing_job in search

This makes the civicrm_mailing_job_start_date field available as
metadata and cleans up the code specifying how
civicrm_mailing_job gets joined in.

It turns out the code design has a pretty sensible methodology for ensuring that required
tables are added but unaware of this the tables
got configured all over the place in the where clause
functions.

4 years agodev/core#561 Convert mailing date search field to using datepicker
Seamus Lee [Mon, 28 Oct 2019 02:14:46 +0000 (13:14 +1100)]
dev/core#561 Convert mailing date search field to using datepicker

Some more cleanup and also open tab if specified in the URL

4 years agoMerge pull request #15629 from eileenmcnaughton/mailing_form
Seamus Lee [Sun, 27 Oct 2019 23:49:44 +0000 (10:49 +1100)]
Merge pull request #15629 from eileenmcnaughton/mailing_form

Change parent class on mailing_form

4 years agoMerge pull request #15627 from eileenmcnaughton/nfc
Seamus Lee [Sun, 27 Oct 2019 23:14:15 +0000 (10:14 +1100)]
Merge pull request #15627 from eileenmcnaughton/nfc

[NFC] reformat BAO_Case file

4 years agoFurther deconstruction of updateFinancialAccounts
eileen [Sun, 27 Oct 2019 23:08:01 +0000 (12:08 +1300)]
Further deconstruction of updateFinancialAccounts

updateFinancialAccounts is only called from one place with the context of 'changedStatus'. When called this
way the function updateFinancialAccountsOnContributionStatusChange is called & that 'tells'
the calling function whether to call the rest of this function.

Since this handling is specific to one place from which the function is called we can move that logic
back to the place that calls it & further simplify the updateFinancialAccounts function
which has been a bit of a haven of chaos

4 years agoFix cancel payment action to reverse financial items related to cancelled payment
eileen [Sun, 27 Oct 2019 22:54:53 +0000 (11:54 +1300)]
Fix cancel payment action to reverse financial items related to cancelled payment

The unit test to test & ensure this was failing to pick up that the records were not being created because it iterated
through the created rows & checked they were right but there was no check to ensure the rows were created :-(

This still leaves a gap I think for refunds not tied to a specific payment but that can be a later step

4 years agoMerge pull request #15601 from eileenmcnaughton/items
Seamus Lee [Sun, 27 Oct 2019 22:48:42 +0000 (09:48 +1100)]
Merge pull request #15601 from eileenmcnaughton/items

[REF] simplify definition of isARefund

4 years agoMerge pull request #15628 from eileenmcnaughton/mailing
Seamus Lee [Sun, 27 Oct 2019 22:48:23 +0000 (09:48 +1100)]
Merge pull request #15628 from eileenmcnaughton/mailing

[NFC] Add date information to MailingJob Schema

4 years agoAdd call to getSearchFieldMetadata
eileen [Sun, 27 Oct 2019 22:17:13 +0000 (11:17 +1300)]
Add call to getSearchFieldMetadata

4 years agoChange parent class on mailing_form
eileen [Sun, 27 Oct 2019 21:49:48 +0000 (10:49 +1300)]
Change parent class on mailing_form

4 years ago[REF] simplify definition of isARefund
eileen [Thu, 24 Oct 2019 23:24:28 +0000 (12:24 +1300)]
[REF] simplify definition of isARefund

4 years agoAdd date information to MailingJob Schema
eileen [Sun, 27 Oct 2019 21:42:20 +0000 (10:42 +1300)]
Add date information to MailingJob Schema

4 years agoMerge pull request #15625 from seamuslee001/e2e_cache_debugging
Seamus Lee [Sun, 27 Oct 2019 21:44:14 +0000 (08:44 +1100)]
Merge pull request #15625 from seamuslee001/e2e_cache_debugging

[NFC] Add in debugging to try and resolve E2E Cache intermitant test …

4 years ago[NFC] reformat BAO_Case file
eileen [Sun, 27 Oct 2019 21:38:52 +0000 (10:38 +1300)]
[NFC] reformat BAO_Case file

4 years agoExceptions
eileen [Sun, 27 Oct 2019 21:35:48 +0000 (10:35 +1300)]
Exceptions

4 years agoUpdate ArrayDecoratorTest.php
Tim Otten [Sun, 27 Oct 2019 20:07:26 +0000 (13:07 -0700)]
Update ArrayDecoratorTest.php

4 years agofix misfiled pdf merges
DemeritCowboy [Sun, 27 Oct 2019 12:18:35 +0000 (08:18 -0400)]
fix misfiled pdf merges

4 years agoMerge pull request #15613 from eileenmcnaughton/lines_extract
Matthew Wire [Sun, 27 Oct 2019 12:50:00 +0000 (12:50 +0000)]
Merge pull request #15613 from eileenmcnaughton/lines_extract

[REF] extract chunk of code that creates the financial items for a given line.

4 years agoExtract code to calculate how much of a line item has been paid
eileen [Sat, 26 Oct 2019 22:02:51 +0000 (11:02 +1300)]
Extract code to calculate how much of a line item has been paid

4 years agodev/financial#34 Fix line allocation in Payment.create
eileen [Tue, 9 Jul 2019 09:47:25 +0000 (21:47 +1200)]
dev/financial#34 Fix line allocation in Payment.create

Cast result of getContributionBalance to float to match comment block.

Without this it is possible for it to return 'null' which is not useful / in keeping. I did a bit of an audit &
did not find places where this would cause an === comparison to fail

4 years ago[NFC] Add in debugging to try and resolve E2E Cache intermitant test failures
Seamus Lee [Sun, 27 Oct 2019 03:02:40 +0000 (14:02 +1100)]
[NFC] Add in debugging to try and resolve E2E Cache intermitant test failures

4 years agoMerge pull request #15620 from eileenmcnaughton/order
Seamus Lee [Sun, 27 Oct 2019 02:45:14 +0000 (13:45 +1100)]
Merge pull request #15620 from eileenmcnaughton/order

Fix test setup Function to use order api

4 years agoMerge pull request #15623 from seamuslee001/type_check_exceptions
Seamus Lee [Sun, 27 Oct 2019 02:42:28 +0000 (13:42 +1100)]
Merge pull request #15623 from seamuslee001/type_check_exceptions

dev/core#560 [REF] Throw exceptions for invalid type errors when aborting

4 years agoMerge pull request #15621 from eileenmcnaughton/float
Seamus Lee [Sun, 27 Oct 2019 02:13:55 +0000 (13:13 +1100)]
Merge pull request #15621 from eileenmcnaughton/float

Cast result of getContributionBalance to float to match comment block.

4 years agoFix test setup Function to use order api
eileen [Sat, 26 Oct 2019 23:35:28 +0000 (12:35 +1300)]
Fix test setup Function to use order api

After ongoing issues resolving https://github.com/civicrm/civicrm-core/pull/14763 I have concluded the underlying
issue on the failing tests is the test setup. Specifically the use of 'partial_amount_to_pay' does not
create the correct underlying entities - it 'sort of' creates a payment without linking it to
the financial items.

These parameters are part of our first attempt at partial payments. I am removing them from the test here but
will deprecate later from other places in the code

4 years ago[REF] Throw execptions for invalid type erorrs when aborting
Seamus Lee [Sun, 27 Oct 2019 00:57:53 +0000 (11:57 +1100)]
[REF] Throw execptions for invalid type erorrs when aborting

4 years agoMerge pull request #15622 from eileenmcnaughton/deprecate_bad
Seamus Lee [Sun, 27 Oct 2019 00:44:58 +0000 (11:44 +1100)]
Merge pull request #15622 from eileenmcnaughton/deprecate_bad

Change test to use preferred methods, fix revealed money bug

4 years agoChange test to use preferred methods, fix revealed money bug
eileen [Sat, 26 Oct 2019 23:56:01 +0000 (12:56 +1300)]
Change test to use preferred methods, fix revealed money bug

In switching this test over I found that Payment.create does not handle cleaning money - which it should to bring it
into line with Contribution.create api

4 years agoCast result of getContributionBalance to float to match comment block.
eileen [Sat, 26 Oct 2019 21:43:56 +0000 (10:43 +1300)]
Cast result of getContributionBalance to float to match comment block.

Without this it is possible for it to return 'null' which is not useful / in keeping. I did a bit of an audit &
did not find places where this would cause an === comparison to fail

4 years agoMerge pull request #15619 from seamuslee001/fix_force_case_form_date
Eileen McNaughton [Sat, 26 Oct 2019 21:25:04 +0000 (10:25 +1300)]
Merge pull request #15619 from seamuslee001/fix_force_case_form_date

Ensure that using case_start_date_high and case_start_date_low etc in…

4 years agoMerge pull request #15513 from magnolia61/Display_name_in_some_workflow_templates
Seamus Lee [Sat, 26 Oct 2019 20:23:00 +0000 (07:23 +1100)]
Merge pull request #15513 from magnolia61/Display_name_in_some_workflow_templates

dev/core#1320 Include displayname in subjects to prevent grouping in email clients

4 years agoEnsure that using case_start_date_high and case_start_date_low etc in url variables...
Seamus Lee [Sat, 26 Oct 2019 19:28:44 +0000 (06:28 +1100)]
Ensure that using case_start_date_high and case_start_date_low etc in url variables works in force=1 mode

4 years agoMerge pull request #15618 from eileenmcnaughton/case_from_to
Seamus Lee [Sat, 26 Oct 2019 19:26:35 +0000 (06:26 +1100)]
Merge pull request #15618 from eileenmcnaughton/case_from_to

Case datepicker field conversion - Follow up cleanup

4 years agoInclude Displayname in some workflow templates
Richard van Oosterhout [Tue, 15 Oct 2019 06:15:07 +0000 (08:15 +0200)]
Include Displayname in some workflow templates

4 years agoMerge pull request #15614 from seamuslee001/convert_case_date_jcalendar
Eileen McNaughton [Sat, 26 Oct 2019 10:04:02 +0000 (23:04 +1300)]
Merge pull request #15614 from seamuslee001/convert_case_date_jcalendar

dev/core#561 Convert Case date fields on search forms from jcalendar …

4 years agoMerge pull request #15616 from eileenmcnaughton/qill
Seamus Lee [Sat, 26 Oct 2019 09:34:49 +0000 (20:34 +1100)]
Merge pull request #15616 from eileenmcnaughton/qill

Minimal fix for new enotice on case.subject

4 years agodev/core#561 Convert Case date fields on search forms from jcalendar to datepicker
Seamus Lee [Sat, 26 Oct 2019 00:07:52 +0000 (11:07 +1100)]
dev/core#561 Convert Case date fields on search forms from jcalendar to datepicker

Swap to using buildDateRangeQuery function

Fix notice error and generically handle cases where we have specified to use the LIKE operator for strings

4 years agoMerge pull request #15580 from jaapjansma/dev_1205
Eileen McNaughton [Sat, 26 Oct 2019 06:15:07 +0000 (19:15 +1300)]
Merge pull request #15580 from jaapjansma/dev_1205

Issue 1205: allow custom fields of type file for entities

4 years agoMerge pull request #15615 from colemanw/explorerFix
Eileen McNaughton [Sat, 26 Oct 2019 06:11:30 +0000 (19:11 +1300)]
Merge pull request #15615 from colemanw/explorerFix

Api4 explorer: Fix variable leaking to global scope

4 years agoMinimal fix for new enotice on case.subject
eileen [Sat, 26 Oct 2019 03:09:53 +0000 (16:09 +1300)]
Minimal fix for new enotice on case.subject

The new enotice is caused by treating it as a LIKE string rather than a strict match (which is generally
a good thing)

4 years agoFollow up cleanup
eileen [Sat, 26 Oct 2019 02:54:58 +0000 (15:54 +1300)]
Follow up cleanup

4 years agoApi4 explorer: Fix variable leaking to global scope
Coleman Watts [Sat, 26 Oct 2019 01:56:06 +0000 (21:56 -0400)]
Api4 explorer: Fix variable leaking to global scope

4 years agoMerge pull request #15370 from JMAConsulting/core-692-2
Eileen McNaughton [Sat, 26 Oct 2019 00:35:28 +0000 (13:35 +1300)]
Merge pull request #15370 from JMAConsulting/core-692-2

Core/dev#692 : Support search arguments to Case Search form