civicrm-core.git
6 years agoMerge pull request #11725 from tschuettler/fix-field-required
Monish Deb [Tue, 27 Feb 2018 17:12:33 +0000 (22:42 +0530)]
Merge pull request #11725 from tschuettler/fix-field-required

CiviReport - Check for trueish values of the parameter 'required'

6 years agoMerge pull request #11642 from JKingsnorth/CRM-21739
Monish Deb [Tue, 27 Feb 2018 17:11:36 +0000 (22:41 +0530)]
Merge pull request #11642 from JKingsnorth/CRM-21739

[NFC] CRM-21739 Test improvements for mailing getRecipients

6 years agoMerge pull request #11729 from lcdservices/CRM-21810
Monish Deb [Tue, 27 Feb 2018 17:02:49 +0000 (22:32 +0530)]
Merge pull request #11729 from lcdservices/CRM-21810

CRM-21810 changelog panel UI tweaks

6 years agoCRM-21810 changelog panel UI tweaks
Brian Shaughnessy [Tue, 27 Feb 2018 15:51:50 +0000 (10:51 -0500)]
CRM-21810 changelog panel UI tweaks

6 years agoCRM-21739 [NFC] Refactoring for SMS recipient test
JKingsnorth [Tue, 27 Feb 2018 12:22:15 +0000 (12:22 +0000)]
CRM-21739 [NFC] Refactoring for SMS recipient test

6 years agoCRM-21739 Test for getRecipients in/exclude mailing groups
JKingsnorth [Mon, 26 Feb 2018 15:39:39 +0000 (15:39 +0000)]
CRM-21739 Test for getRecipients in/exclude mailing groups

6 years agoCheck for trueish required values
Thomas Schüttler [Tue, 27 Feb 2018 09:35:07 +0000 (10:35 +0100)]
Check for trueish required values

6 years agoMerge pull request #11696 from mydropwizard/phpword-0.14.0
Eileen McNaughton [Mon, 26 Feb 2018 22:53:53 +0000 (11:53 +1300)]
Merge pull request #11696 from mydropwizard/phpword-0.14.0

Update to PHPWord 0.14.0

6 years agoMerge pull request #11723 from mukeshcompucorp/CRM-21805-fix-fields-and-labels-in...
Eileen McNaughton [Mon, 26 Feb 2018 22:45:16 +0000 (11:45 +1300)]
Merge pull request #11723 from mukeshcompucorp/CRM-21805-fix-fields-and-labels-in-find-participants

CRM-21805: Fixed fields and labels in find participants

6 years agoMerge pull request #11571 from magnolia61/CRM-21693_Show_Name_in_OnlinePayNow_UI
colemanw [Mon, 26 Feb 2018 22:43:58 +0000 (17:43 -0500)]
Merge pull request #11571 from magnolia61/CRM-21693_Show_Name_in_OnlinePayNow_UI

Crm 21693 show Display Name in online pay now UI

6 years agoUpdate composer.lock for PHPWord update
David Snopek [Mon, 26 Feb 2018 16:53:44 +0000 (10:53 -0600)]
Update composer.lock for PHPWord update

6 years agoUpdate to PHPWord 0.14.0
David Snopek [Tue, 20 Feb 2018 14:11:55 +0000 (08:11 -0600)]
Update to PHPWord 0.14.0

6 years agoCRM-21805: Fixed fields and labels in find participants
Mukesh Ram [Mon, 26 Feb 2018 12:59:50 +0000 (18:29 +0530)]
CRM-21805: Fixed fields and labels in find participants

6 years agoMerge pull request #11719 from eileenmcnaughton/fatal
colemanw [Mon, 26 Feb 2018 09:44:32 +0000 (04:44 -0500)]
Merge pull request #11719 from eileenmcnaughton/fatal

Throw exception instead of using fatal

6 years agoCRM-21804 improve error handling on duplicate contribution.
eileen [Mon, 26 Feb 2018 02:32:35 +0000 (15:32 +1300)]
CRM-21804 improve error handling on duplicate contribution.

Duplicate contributions are a really not handled well anywhere in the form layer.
The CRM_Core_Error winds up using the fatal template, which has the same end
result for form users as if an exception were thrown, let's switch.

Note that this appears to be the only scenario when an error would
be returned so we can simply drop that handling

6 years agoMerge pull request #11718 from eileenmcnaughton/website
Monish Deb [Mon, 26 Feb 2018 04:15:05 +0000 (09:45 +0530)]
Merge pull request #11718 from eileenmcnaughton/website

CRM-21803 Fix another entity to be standardised & support custom data

6 years agoFix another entity to be standardised & support custom data
eileen [Sun, 25 Feb 2018 22:03:58 +0000 (11:03 +1300)]
Fix another entity to be standardised & support custom data

6 years agoMerge pull request #11688 from eileenmcnaughton/custom
colemanw [Sat, 24 Feb 2018 13:15:28 +0000 (08:15 -0500)]
Merge pull request #11688 from eileenmcnaughton/custom

Fix more entities to support custom fields (via api)

6 years agoMerge pull request #11713 from yashodha/update-year
Seamus Lee [Sat, 24 Feb 2018 09:24:00 +0000 (20:24 +1100)]
Merge pull request #11713 from yashodha/update-year

(NFC) Update copyright header for 2018

6 years agoMerge pull request #11717 from seamuslee001/nfc_renewal_civilint_Fix
Eileen McNaughton [Sat, 24 Feb 2018 07:50:16 +0000 (20:50 +1300)]
Merge pull request #11717 from seamuslee001/nfc_renewal_civilint_Fix

(NFC) MembershipRenewal.php - Fix civilint error

6 years agoMerge pull request #11714 from mukeshcompucorp/CRM-21797-change-structure-of-campaign...
colemanw [Sat, 24 Feb 2018 02:58:06 +0000 (21:58 -0500)]
Merge pull request #11714 from mukeshcompucorp/CRM-21797-change-structure-of-campaign-search-pages

CRM-21797: Fixed structure for campaign search pages

6 years agoMerge pull request #11694 from eileenmcnaughton/website
colemanw [Sat, 24 Feb 2018 02:43:35 +0000 (21:43 -0500)]
Merge pull request #11694 from eileenmcnaughton/website

Move towards standardising website.create function.

6 years agoNFC fix civilint error on MembershipRenewal.php
Seamus Lee [Sat, 24 Feb 2018 01:27:30 +0000 (12:27 +1100)]
NFC fix civilint error on MembershipRenewal.php

6 years agoMove towards standardising website.create function.
eileen [Tue, 20 Feb 2018 03:28:21 +0000 (16:28 +1300)]
Move towards standardising website.create function.

6 years agoCRM-21797: Fixed structure for campaign search pages
Mukesh Ram [Fri, 23 Feb 2018 09:30:42 +0000 (15:00 +0530)]
CRM-21797: Fixed structure for campaign search pages

6 years agofix header
yashodha [Fri, 23 Feb 2018 08:52:57 +0000 (14:22 +0530)]
fix header

6 years agoFix more entities to support custom fields (via api)
eileen [Mon, 19 Feb 2018 02:17:10 +0000 (15:17 +1300)]
Fix more entities to support custom fields (via api)

6 years agoMerge pull request #11154 from agileware/CRM-20421
colemanw [Fri, 23 Feb 2018 04:23:24 +0000 (23:23 -0500)]
Merge pull request #11154 from agileware/CRM-20421

CRM-20421: Inherited memberships are converted to individual memberships when the "parent" for the membership is merged with another contact

6 years agoMerge pull request #11711 from seamuslee001/variable_rename_filter_fields
Tim Otten [Thu, 22 Feb 2018 23:29:12 +0000 (15:29 -0800)]
Merge pull request #11711 from seamuslee001/variable_rename_filter_fields

(NFC) Rename fiterable fields param in _civicrm_api3_basic_array_get …

6 years agoMerge pull request #11709 from totten/master-extget
Seamus Lee [Thu, 22 Feb 2018 22:04:27 +0000 (09:04 +1100)]
Merge pull request #11709 from totten/master-extget

CRM-21792 Extension.get API - Fix regression (4.7.13) in result filtering

6 years ago(NFC) Rename fiterable fields param in _civicrm_api3_basic_array_get to be more expli...
Seamus Lee [Thu, 22 Feb 2018 21:15:14 +0000 (08:15 +1100)]
(NFC) Rename fiterable fields param in _civicrm_api3_basic_array_get to be more explicit about what it is for

6 years agoapi_v3_ExtensionTest::testExtensionGet - Be a little less flaky
Tim Otten [Thu, 22 Feb 2018 20:26:12 +0000 (12:26 -0800)]
api_v3_ExtensionTest::testExtensionGet - Be a little less flaky

The test has a magic number which seems to be based on the number of
extensions in the `drupal-clean` build profile -- which is basically the
smallest number anyone might have.  However, it gives false-negatives if you
have any other extensions around.  Make it a little less flaky.

6 years agoExtension.get API - Only apply special filters once (key/keys/full_name)
Tim Otten [Thu, 22 Feb 2018 20:15:24 +0000 (12:15 -0800)]
Extension.get API - Only apply special filters once (key/keys/full_name)

Filtering extensions by key is a good idea -- so good we have three ways to do it! ;)

All of these fields accept a `string|array<string>` input, which is different from
the typical filtering supported by `_civicrm_api3_basic_array_get()` (which only
matches on values)...  If you happen to choose a basic filter that passes both
filters (i.e.  a simple string-match), then it works.  But if you choose a filter
where they behave differnetly (i.e.  an array), then you get weird results.

6 years agoExtension.get API - Fix regression (4.7.13) in result filtering
Tim Otten [Thu, 22 Feb 2018 16:38:41 +0000 (08:38 -0800)]
Extension.get API - Fix regression (4.7.13) in result filtering

Overview
--------

When one calls the `Extension.get` API, it should support filtering.  For
example, these commands would return only installed extensions or only
uninstalled extensions (respectively):

```
cv api Extension.get status=installed
cv api Extension.get status=uninstalled
```

Before
------

The implementation of `Extension.get` passes a list of all extensions down to
`_civicrm_api3_basic_array_get()` which is supposed to interpret any APIv3
options (such as filter-values/offsets/limits).  However, it confuses the
`return` list (i.e.  the names of any columns *that the user wants to see*) with the
*filterable* list (i.e.  the names of any columns *for which filtering is
permitted*).

After
-----

The implementation of `Extension.get` passes a list of all extensions down to
`_civicrm_api3_basic_array_get()`.  It also passes a fixed list of columns
which one might reasonably want to filter.

It might be nice to support filtering on all fields, but (a) several fields
wouldn't be sensible (because they're nested arrays) and (b) this provides a
smaller surface-area to maintain.

Comments
--------

The doc-block for `_civicrm_api3_basic_array_get()` describes the purpose of this field:

https://github.com/civicrm/civicrm-core/blob/4.7.0/api/v3/utils.php#L2390-L2391

Since ~v4.7.13, this line of code appears to have gone through several revisions, e.g.

 * The regression was originally introduced by 517dfba8b
 * Subsequent partial-fixes were d4c44c7009776f41734239e81525ccb68

CC @lucianov88  @twomice @tschuettler @seamuslee001 for review

6 years agoMerge pull request #11706 from JMAConsulting/CRM-21789
colemanw [Thu, 22 Feb 2018 16:45:51 +0000 (11:45 -0500)]
Merge pull request #11706 from JMAConsulting/CRM-21789

CRM-21789: 'Find Case' group by issue

6 years agoMerge pull request #11681 from jitendrapurohit/CRM-21778
colemanw [Thu, 22 Feb 2018 16:40:31 +0000 (11:40 -0500)]
Merge pull request #11681 from jitendrapurohit/CRM-21778

CRM-21778 - Contact image uploaded from drupal webform don't render o…

6 years agotest failure fix
deb.monish [Thu, 22 Feb 2018 12:44:38 +0000 (18:14 +0530)]
test failure fix

6 years agoMerge pull request #11707 from jitendrapurohit/CRM-21771
Yashodha Chaku [Thu, 22 Feb 2018 11:18:08 +0000 (16:48 +0530)]
Merge pull request #11707 from jitendrapurohit/CRM-21771

CRM-21771: error when viewing event registration with linked contribu…

6 years agoCRM-21771: error when viewing event registration with linked contribution
Jitendra Purohit [Thu, 22 Feb 2018 08:43:57 +0000 (14:13 +0530)]
CRM-21771: error when viewing event registration with linked contribution

6 years agoCRM-21789: 'Find Case' group by issue
deb.monish [Thu, 22 Feb 2018 08:13:41 +0000 (13:43 +0530)]
CRM-21789: 'Find Case' group by issue

6 years agoMerge pull request #11699 from totten/master-i18n-sql
Monish Deb [Thu, 22 Feb 2018 04:12:51 +0000 (09:42 +0530)]
Merge pull request #11699 from totten/master-i18n-sql

(civicrm-setup/1) CRM_Core_I18n - Loosen coupling to DB layer

6 years agoMerge pull request #11705 from totten/master-upgrade-ui-ver
Seamus Lee [Thu, 22 Feb 2018 03:28:55 +0000 (14:28 +1100)]
Merge pull request #11705 from totten/master-upgrade-ui-ver

/civicrm/upgrade - On finish screen, display actual version number

6 years ago/civicrm/upgrade - On finish screen, display actual version number
Tim Otten [Wed, 21 Feb 2018 23:57:15 +0000 (15:57 -0800)]
/civicrm/upgrade - On finish screen, display actual version number

This screen was hard-coded to always display the message "Thank you for
upgrading to 4.7...". This patch makes it dynamic, plugging in the
actual version number.

6 years agoMerge pull request #11701 from samuelsov/tsfix
colemanw [Wed, 21 Feb 2018 17:56:39 +0000 (12:56 -0500)]
Merge pull request #11701 from samuelsov/tsfix

(NFC) remove starting whitespace in ts about installments

6 years agoMerge pull request #11700 from JMAConsulting/CRM-21787
Tim Otten [Wed, 21 Feb 2018 17:27:31 +0000 (09:27 -0800)]
Merge pull request #11700 from JMAConsulting/CRM-21787

CRM-21787 : Simplify CRM_Utils_System::version() to fetch version directly from xml/version.xml

6 years agoMerge pull request #11695 from JMAConsulting/civicrm-setup#11
Tim Otten [Wed, 21 Feb 2018 16:29:40 +0000 (08:29 -0800)]
Merge pull request #11695 from JMAConsulting/civicrm-setup#11

[civicrm-setup#11] Remove templates/CRM/common/version.tpl

6 years ago(NFC) remove starting whitespace in ts
Samuel Vanhove [Wed, 21 Feb 2018 15:11:30 +0000 (10:11 -0500)]
(NFC) remove starting whitespace in ts

6 years agoCRM-21787: Keep up-to-date without running GenCode on all builds
deb.monish [Wed, 21 Feb 2018 07:55:52 +0000 (13:25 +0530)]
CRM-21787: Keep  up-to-date without running GenCode on all builds

6 years agoadd version.tpl in checklist
deb.monish [Wed, 21 Feb 2018 03:14:25 +0000 (08:44 +0530)]
add version.tpl in checklist

6 years agoRemove templates/CRM/common/version.tpl
deb.monish [Tue, 20 Feb 2018 10:33:27 +0000 (16:03 +0530)]
Remove templates/CRM/common/version.tpl

6 years agoadd version.tpl in checklist
deb.monish [Wed, 21 Feb 2018 03:14:25 +0000 (08:44 +0530)]
add version.tpl in checklist

6 years agoMerge pull request #11671 from eileenmcnaughton/nfc
Eileen McNaughton [Tue, 20 Feb 2018 23:50:58 +0000 (12:50 +1300)]
Merge pull request #11671 from eileenmcnaughton/nfc

Deduper - Pass arrays rather than strings to construct URLs

6 years agoMerge pull request #11698 from reneolivo/patch-1
Tim Otten [Tue, 20 Feb 2018 23:42:26 +0000 (15:42 -0800)]
Merge pull request #11698 from reneolivo/patch-1

Fix wrong tag defintion

6 years ago(civicrm-setup/1) CRM_Core_I18n - Loosen coupling to DB layer
Tim Otten [Tue, 20 Feb 2018 22:27:31 +0000 (14:27 -0800)]
(civicrm-setup/1) CRM_Core_I18n - Loosen coupling to DB layer

Overview
--------

The `ts()`/`{ts}` feature from `CRM_Core_I18n` has an option to escape output
(e.g.  `{ts escape="sql"}Activities{/ts}`).  However, SQL encoding is subjective
(depending on the connection details). For `{ts}` to support this feature, it
must have a dependency on the DB subsystem (e.g. it eventually calls `CRM_Core_DAO`).

For https://github.com/civicrm/civicrm-setup/issues/1, we have an issue
where expressions like `{ts escape="sql"}Activities{/ts}` fail during
installation because `CRM_Core_DAO` is not fully available.

This change loosens the coupling, so that we can use `{ts escape="sql"}Activities{/ts}`
without needing `CRM_Core_DAO` per se.

Before
------

`ts`/`CRM_Core_I18n` is tightly coupled to `CRM_Core_DAO`. There is no way
to use `{ts escape=sql}Activities{/ts}` without spinning-up `CRM_Core_DAO`.

After
-----

`ts`/`CRM_Core_I18n` *defaults* to calling `CRM_Core_DAO`.  However, this can
be overriden by manipulating a property.

Comments
--------

* I feel a little dirty keeping any coupling between i18n and the DB.
  However, changing this would mean removing support for the
  `{ts escape=sql}` option, and that would be a clear compatibility-break.
* Arguably, there may be a microsecond-level penalty in using
  `call_user_func($SQL_ESCAPER)` rather than a specific class/function.
  However, it's only incurred if you actually call `{ts escape=sql}`
  while setting `$SQL_ESCAPER`, and that's pretty rare circumstance.
  The typical runtime use-cases for `ts()` are unaffected.

6 years agoFix wrong tag defintion
René Olivo [Tue, 20 Feb 2018 20:03:23 +0000 (16:03 -0400)]
Fix wrong tag defintion

This notification template has a wrong HTML definition which makes it break a bit .

<img src="https://user-images.githubusercontent.com/1642119/36434765-36c7bf66-1636-11e8-84a5-2ffb75ef5eab.png" />

6 years agoMerge pull request #11689 from eileenmcnaughton/groupOrg
colemanw [Tue, 20 Feb 2018 15:54:36 +0000 (10:54 -0500)]
Merge pull request #11689 from eileenmcnaughton/groupOrg

Fix GroupNesting, GroupOrganization, Domain to work with singleValueAlter

6 years agoRemove templates/CRM/common/version.tpl
deb.monish [Tue, 20 Feb 2018 10:33:27 +0000 (16:03 +0530)]
Remove templates/CRM/common/version.tpl

6 years agoMerge pull request #11692 from eileenmcnaughton/form
Eileen McNaughton [Tue, 20 Feb 2018 08:40:33 +0000 (21:40 +1300)]
Merge pull request #11692 from eileenmcnaughton/form

CRM-21391 Convert Activity to use core Task class

6 years agoMerge pull request #11693 from eileenmcnaughton/cont_form
Eileen McNaughton [Tue, 20 Feb 2018 00:48:44 +0000 (13:48 +1300)]
Merge pull request #11693 from eileenmcnaughton/cont_form

CRM-21391 Convert Contribute to use core Task class

6 years agoMerge pull request #11682 from totten/master-i18n-preboot
Eileen McNaughton [Mon, 19 Feb 2018 22:31:24 +0000 (11:31 +1300)]
Merge pull request #11682 from totten/master-i18n-preboot

(civicrm-setup#1) CRM_Core_I18n - Don't require immediate bootstrap

6 years agoPHP doesn't allow abstract static functions.
Matthew Wire [Mon, 19 Feb 2018 14:15:06 +0000 (14:15 +0000)]
PHP doesn't allow abstract static functions.

6 years agoConvert Contribute to use core Task class
Matthew Wire [Tue, 2 Jan 2018 09:04:50 +0000 (16:04 +0700)]
Convert Contribute to use core Task class

6 years agoConvert Activity to use core Task class
Matthew Wire [Tue, 2 Jan 2018 09:02:30 +0000 (16:02 +0700)]
Convert Activity to use core Task class

6 years agoMerge pull request #11690 from mattwire/CRM-21781_dont_fatal_on_contact_view
colemanw [Mon, 19 Feb 2018 16:29:49 +0000 (11:29 -0500)]
Merge pull request #11690 from mattwire/CRM-21781_dont_fatal_on_contact_view

CRM-21781 Don't crash CiviCRM when missing contact ID

6 years agoDon't crash CiviCRM when missing contact ID
Matthew Wire [Mon, 19 Feb 2018 10:03:05 +0000 (10:03 +0000)]
Don't crash CiviCRM when missing contact ID

6 years agoFix GroupNesting, GroupOrganization, Domain to work with singleValueAlter
eileen [Mon, 19 Feb 2018 06:17:51 +0000 (19:17 +1300)]
Fix GroupNesting, GroupOrganization, Domain to work with singleValueAlter

6 years agoMerge pull request #11687 from totten/master-topsort
Eileen McNaughton [Sun, 18 Feb 2018 23:32:20 +0000 (12:32 +1300)]
Merge pull request #11687 from totten/master-topsort

composer.json - De-fork dependency, marcj/topsort

6 years agocomposer.json - De-fork dependency, marcj/topsort
Tim Otten [Sun, 18 Feb 2018 21:27:07 +0000 (13:27 -0800)]
composer.json - De-fork dependency, marcj/topsort

When this dependency was originally added, we needed a few patches (for PHP 5.3 compatibility)
and initially used a forked version of library. Of course, it's undesirable to use a fork
in the long term (e.g. harder to apply upgrades; harder to merge into other build processes).

In the intervening period, upstream has merged the patches for PHP 5.3, and
we've politely asked downstream to get over PHP 5.3, so we're covered on
both ends.  Let's get back on the mainline branch!

6 years agoMerge pull request #11685 from colemanw/4-7-28-up
Eileen McNaughton [Sun, 18 Feb 2018 21:07:29 +0000 (10:07 +1300)]
Merge pull request #11685 from colemanw/4-7-28-up

Ignore errors when upgrade step already took place

6 years agoMerge pull request #11686 from civicrm/4.7.31-rc
Eileen McNaughton [Sun, 18 Feb 2018 21:05:45 +0000 (10:05 +1300)]
Merge pull request #11686 from civicrm/4.7.31-rc

4.7.31 rc

6 years agoMerge pull request #11411 from mattwire/CRM-21558_case_batch_task
colemanw [Sun, 18 Feb 2018 13:13:24 +0000 (08:13 -0500)]
Merge pull request #11411 from mattwire/CRM-21558_case_batch_task

CRM-21558 Add batch update via profile for cases

6 years agoMerge pull request #11676 from seamuslee001/CRM-21759
Monish Deb [Sun, 18 Feb 2018 02:52:41 +0000 (08:22 +0530)]
Merge pull request #11676 from seamuslee001/CRM-21759

CRM-21759 Remove template variable as not needed and causing issues o…

6 years agoMerge pull request #11670 from eileenmcnaughton/warn
colemanw [Sat, 17 Feb 2018 22:07:16 +0000 (17:07 -0500)]
Merge pull request #11670 from eileenmcnaughton/warn

CRM-21766 quash reload warning on dedupe conflicts screen

6 years agoMerge pull request #11608 from eileenmcnaughton/mailing_custom
colemanw [Sat, 17 Feb 2018 22:01:55 +0000 (17:01 -0500)]
Merge pull request #11608 from eileenmcnaughton/mailing_custom

CRM-21140 extend support for custom data to Mailing api

6 years agoMerge pull request #11496 from magnolia61/CRM-21639-NoIndex_when_event_is_not_public
colemanw [Sat, 17 Feb 2018 21:59:54 +0000 (16:59 -0500)]
Merge pull request #11496 from magnolia61/CRM-21639-NoIndex_when_event_is_not_public

CRM-21639 NOINDEX Event Info page when event is non-public or in the past

6 years agoIgnore errors when upgrade step already took place
Coleman Watts [Sat, 17 Feb 2018 18:16:29 +0000 (13:16 -0500)]
Ignore errors when upgrade step already took place

6 years agoMerge pull request #11665 from JMAConsulting/CRM-21760-rc
colemanw [Fri, 16 Feb 2018 19:04:23 +0000 (14:04 -0500)]
Merge pull request #11665 from JMAConsulting/CRM-21760-rc

CRM-21760: Manager Name is missing in 'Find Cases' search list

6 years agoRemove unused var
colemanw [Fri, 16 Feb 2018 19:03:59 +0000 (14:03 -0500)]
Remove unused var

6 years agoMerge pull request #11677 from totten/master-xml-install
Monish Deb [Fri, 16 Feb 2018 14:09:06 +0000 (19:39 +0530)]
Merge pull request #11677 from totten/master-xml-install

(civicrm-setup#1) Facilitate more direct installation

6 years agoMerge pull request #11678 from mukeshcompucorp/CRM-21770-change-position-of-help...
colemanw [Fri, 16 Feb 2018 13:15:23 +0000 (08:15 -0500)]
Merge pull request #11678 from mukeshcompucorp/CRM-21770-change-position-of-help-div-in-export-participant

CRM-21770: Change position of help div

6 years ago(civicrm-setup#1) CRM_Core_I18n - Don't require immediate bootstrap
Tim Otten [Fri, 16 Feb 2018 11:45:29 +0000 (03:45 -0800)]
(civicrm-setup#1) CRM_Core_I18n - Don't require immediate bootstrap

For civicrm/civicrm-setup#1, the general goal is to allow installing the
database schema without needing to run `GenCode`.

The current draft is crashing because the SQL does translation using `ts()`.
But if you try to use `ts()` in a pre-boot environment, it will attempt to
boot automatically so that it can read `$config->customTranslateFunction.

This is a chicken-egg situation.  We haven't yet reached the phase where the
installer can boot up Civi...  because we don't have the SQL...  but the SQL
can't be generated (translated) because Civi hasn't been booted.

The aim of this patch is to loosen the coupling between `ts()`
and `CRM_Core_Config` so that `ts()` can be used on its own.

> Aside: You might ask how this works today -- basically, `GenCode` does a
> database-less-boot, which placates `ts()`.  However, the `civicrm-setup`
> will eventually need to do full-boot, and AFAIK we don't have any
> situations where one transitions from database-less-boot to full-boot; I
> have a gut fear that such a transition would be its own slipper slope.

6 years agoMerge pull request #11252 from mattwire/CRM-21405_outboundsms_mobile_notprimary
Monish Deb [Fri, 16 Feb 2018 10:35:51 +0000 (16:05 +0530)]
Merge pull request #11252 from mattwire/CRM-21405_outboundsms_mobile_notprimary

CRM-21405 Allow "Outbound SMS" when Mobile is not primary phone number

6 years agoCRM-21778 - Contact image uploaded from drupal webform don't render on summary page
Jitendra Purohit [Fri, 16 Feb 2018 09:39:19 +0000 (15:09 +0530)]
CRM-21778 - Contact image uploaded from drupal webform don't render on summary page

6 years agoAllow "Outbound SMS" when Mobile is not primary phone number
Matthew Wire [Wed, 8 Nov 2017 11:24:16 +0000 (11:24 +0000)]
Allow "Outbound SMS" when Mobile is not primary phone number

6 years agoMerge pull request #11675 from totten/master-phonecaps
Monish Deb [Fri, 16 Feb 2018 08:53:58 +0000 (14:23 +0530)]
Merge pull request #11675 from totten/master-phonecaps

Add/Edit Contact - Fix inconsistent capitalization

6 years agoCRM-21770: Change position of help div
Mukesh Ram [Fri, 16 Feb 2018 04:49:24 +0000 (10:19 +0530)]
CRM-21770: Change position of help div

6 years agoxml/GenCode.php - Only allow CLI execution
Tim Otten [Thu, 15 Feb 2018 21:19:54 +0000 (13:19 -0800)]
xml/GenCode.php - Only allow CLI execution

If we're going to bundle the `xml` folder so that it can be used by the
installer, then we don't this particular file to be web-accessible.

6 years agodistmaker - Include xml schema in tarballs
Tim Otten [Thu, 15 Feb 2018 21:16:36 +0000 (13:16 -0800)]
distmaker - Include xml schema in tarballs

6 years agoCRM_Core_CodeGen_Specification - Allow use from civicrm-setup
Tim Otten [Thu, 15 Feb 2018 21:11:37 +0000 (13:11 -0800)]
CRM_Core_CodeGen_Specification - Allow use from civicrm-setup

For https://github.com/civicrm/civicrm-setup/issues/1, this change allows
`civicrm-setup` to read the XML metadata in the same way as GenCode -- which
helps us to install the current schema without any intermediate files.

6 years agoCRM-21759 Remove template variable as not needed and causing issues on Joomla in...
Seamus Lee [Thu, 15 Feb 2018 20:54:52 +0000 (07:54 +1100)]
CRM-21759 Remove template variable as not needed and causing issues on Joomla in 4.7.30

6 years agoAdd/Edit Contact - Fix inconsistent capitalization
Tim Otten [Thu, 15 Feb 2018 18:05:04 +0000 (10:05 -0800)]
Add/Edit Contact - Fix inconsistent capitalization

In this context, there are several links: "Add another phone number", "Add
another IM", "Add another website". They should all be capitalized according
the same rules (e.g. standard sentence case).

6 years agoMerge pull request #11667 from JMAConsulting/CRM-21765
Tim Otten [Thu, 15 Feb 2018 17:19:30 +0000 (09:19 -0800)]
Merge pull request #11667 from JMAConsulting/CRM-21765

CRM-21765: Commit files to git which are static but are generated from CodeGen like DAO files

6 years agoMerge pull request #11585 from mukeshcompucorp/fix-page-structure
colemanw [Thu, 15 Feb 2018 14:18:57 +0000 (09:18 -0500)]
Merge pull request #11585 from mukeshcompucorp/fix-page-structure

CRM-21708: Fixed page structure by adding/removing classes

6 years agoCRM-21639 NOINDEX Event Info page when event is non-public
Richard van Oosterhout [Tue, 9 Jan 2018 11:42:19 +0000 (12:42 +0100)]
CRM-21639 NOINDEX Event Info page when event is non-public

6 years ago[NFC] pass arrays rather than strings to construct urls in dedupe code
eileen [Thu, 15 Feb 2018 04:51:42 +0000 (17:51 +1300)]
[NFC] pass arrays rather than strings to construct urls in dedupe code

When we pass a query it is urlencoded and any quotes in the string are not subsequently htmlentity encoded plus
I think the url construction is generally cleaner

6 years agoCRM-21765: Commit files to git which are static but are generated from CodeGen like...
deb.monish [Wed, 14 Feb 2018 17:54:42 +0000 (23:24 +0530)]
CRM-21765: Commit files to git which are static but are generated from CodeGen like DAO files

6 years agoCRM-21766 quash reload warning
eileen [Thu, 15 Feb 2018 01:23:16 +0000 (14:23 +1300)]
CRM-21766 quash reload warning

6 years agoMerge pull request #11622 from omarabuhussein/CRM-21733-membership-override-improvments
Eileen McNaughton [Wed, 14 Feb 2018 20:40:21 +0000 (09:40 +1300)]
Merge pull request #11622 from omarabuhussein/CRM-21733-membership-override-improvments

CRM-21733: Adding the ability to override membership until specific date

6 years agoMerge pull request #11498 from magnolia61/CRM-21639_NOINDEX_Print_Preview_pages
colemanw [Wed, 14 Feb 2018 18:01:39 +0000 (13:01 -0500)]
Merge pull request #11498 from magnolia61/CRM-21639_NOINDEX_Print_Preview_pages

CRM-21639_NOINDEX_Print_preview_pages

6 years agoCRM-21760: Manager Name is missing in 'Find Cases' search list
deb.monish [Sun, 11 Feb 2018 18:40:12 +0000 (00:10 +0530)]
CRM-21760: Manager Name is missing in 'Find Cases' search list