civicrm-core.git
7 years agoMerge pull request #10559 from civicrm/4.7.21-rc
Eileen McNaughton [Sun, 25 Jun 2017 22:30:19 +0000 (10:30 +1200)]
Merge pull request #10559 from civicrm/4.7.21-rc

4.7.21 rc

7 years agoMerge pull request #10556 from devarun/4.7.21-rc
Eileen McNaughton [Sun, 25 Jun 2017 22:28:42 +0000 (10:28 +1200)]
Merge pull request #10556 from devarun/4.7.21-rc

CRM-20644: Column names on Advanced search results displayed on contacts are out of order.

7 years agoMerge pull request #10536 from yashodha/CRM-20753
Eileen McNaughton [Sun, 25 Jun 2017 06:32:50 +0000 (18:32 +1200)]
Merge pull request #10536 from yashodha/CRM-20753

CRM-20753 - Net amount doesn't respect localization

7 years agoCRM-20644: Column names on Advanced search results displayed on contacts are out...
devarun [Sat, 24 Jun 2017 14:22:23 +0000 (19:52 +0530)]
CRM-20644: Column names on Advanced search results displayed on contacts are out of order.

7 years agoMerge pull request #10545 from totten/master-ui-bootstrap
Tim Otten [Fri, 23 Jun 2017 21:23:43 +0000 (14:23 -0700)]
Merge pull request #10545 from totten/master-ui-bootstrap

CRM-20756 - Add Angular `ui.bootstrap` library

7 years agoMerge pull request #10541 from JMAConsulting/CRM-20411
colemanw [Fri, 23 Jun 2017 15:22:00 +0000 (11:22 -0400)]
Merge pull request #10541 from JMAConsulting/CRM-20411

CRM-20411: mailing tab listing: MySQL 5.7 group by error

7 years agoMerge pull request #10498 from JMAConsulting/CRM-20722
colemanw [Fri, 23 Jun 2017 15:19:50 +0000 (11:19 -0400)]
Merge pull request #10498 from JMAConsulting/CRM-20722

CRM-20722: 'Lock wait timeout exceeded' error triggered on smart group cache rebuild

7 years agoMerge pull request #10407 from JMAConsulting/CRM-19653
colemanw [Fri, 23 Jun 2017 14:03:54 +0000 (10:03 -0400)]
Merge pull request #10407 from JMAConsulting/CRM-19653

CRM-19653: Custom field checkboxes migrated incorrectly on merge (part deux)

7 years agoMerge pull request #10298 from colemanw/CRM-20387
colemanw [Fri, 23 Jun 2017 13:59:16 +0000 (09:59 -0400)]
Merge pull request #10298 from colemanw/CRM-20387

CRM-20387 - Add invoice_number field for human readable contribution invoice

7 years agoMerge pull request #10549 from jitendrapurohit/CRM-20761
Monish Deb [Fri, 23 Jun 2017 13:10:45 +0000 (18:40 +0530)]
Merge pull request #10549 from jitendrapurohit/CRM-20761

CRM-20761 : Formrule error when priceset is selected on contribution page

7 years agoCRM-20387 - Add invoice_number field for human readable contribution invoice
Coleman Watts [Wed, 3 May 2017 21:15:28 +0000 (17:15 -0400)]
CRM-20387 - Add invoice_number field for human readable contribution invoice

7 years agoMerge pull request #10547 from eileenmcnaughton/extract
Eileen McNaughton [Fri, 23 Jun 2017 03:05:08 +0000 (15:05 +1200)]
Merge pull request #10547 from eileenmcnaughton/extract

[NFC] Extract submit in mapFields to start adding unit testing (towards CRM-20759)

7 years agoExtract submit in mapFields to start adding unit testin (CRM-20759)
eileen [Thu, 22 Jun 2017 08:35:02 +0000 (20:35 +1200)]
Extract submit in mapFields to start adding unit testin (CRM-20759)

7 years agoMerge pull request #10544 from eileenmcnaughton/deprecated
colemanw [Thu, 22 Jun 2017 14:27:22 +0000 (10:27 -0400)]
Merge pull request #10544 from eileenmcnaughton/deprecated

CRM-20758 remove call to deprecated function & add test

7 years agoCRM-20761: Formrule error when priceset is selected on contribution page
Jitendra Purohit [Thu, 22 Jun 2017 14:00:40 +0000 (19:30 +0530)]
CRM-20761: Formrule error when priceset is selected on contribution page

7 years agoCRM-20758 remove one more deprecated call
eileen [Thu, 22 Jun 2017 08:35:02 +0000 (20:35 +1200)]
CRM-20758 remove one more deprecated call

7 years agoMerge pull request #10542 from seamuslee001/CRM-20720
Eileen McNaughton [Thu, 22 Jun 2017 08:15:57 +0000 (20:15 +1200)]
Merge pull request #10542 from seamuslee001/CRM-20720

CRM-20720 CRM-20757 Fix issue where Price Options were not being sort…

7 years agoCRM-20756 - Add Angular `ui.bootstrap` library
Tim Otten [Thu, 22 Jun 2017 06:29:53 +0000 (23:29 -0700)]
CRM-20756 - Add Angular `ui.bootstrap` library

This adds the library
[ui.bootstrap](https://angular-ui.github.io/bootstrap/), which makes it
easier to include the functional elements of Bootstrap in AngularJS pages.

In the past, adding this was problematic, but now the situation has
improved:

1.  civicrm-core has upgraded to AngularJS 1.5.  (In the past, civicrm-core
used AngularJS 1.3, which was incompatible.)

2.  civicrm-core allows optional AngularJS modules.  (In the past, all
modules were loaded unconditionally, which could result in loading
new/unnecessary code for legacy users.  Now, you can opt-out of this
behavior with `basePages=>array()`.)

7 years agoMerge pull request #10274 from eileenmcnaughton/activity2
Eileen McNaughton [Thu, 22 Jun 2017 06:09:52 +0000 (18:09 +1200)]
Merge pull request #10274 from eileenmcnaughton/activity2

CRM-19821 performance improvement on the activity search

7 years agoCRM-19821 turn action links into relative links.
eileen [Mon, 19 Jun 2017 07:57:52 +0000 (19:57 +1200)]
CRM-19821 turn action links into relative links.

This is to fix the test in the first instance but discussed with Seamus & Monish & both
felt that relative links are more correct

7 years agoCRM-19821 unit test
eileen [Mon, 22 May 2017 21:51:01 +0000 (09:51 +1200)]
CRM-19821 unit test

7 years agoCRM-19821 performance improvement on the activity search.
eileen [Fri, 28 Apr 2017 03:51:16 +0000 (15:51 +1200)]
CRM-19821 performance improvement on the activity search.

This commit removes 2 bad joins from the activity search
- priority_id - this is just removed from the returnProperties as it is not rendered
- activity_status_id - this is handled as a pseudoconstant rather than the bad join

activity_type_id is partially handled, however, there is a component_id filter
that needs to be fixed before the bad join on this
field can be removed.

7 years agoCRM-20758 remove call to deprecated function & add test
eileen [Thu, 22 Jun 2017 03:48:15 +0000 (15:48 +1200)]
CRM-20758 remove call to deprecated function & add test

7 years agoCRM-20720 CRM-20757 Fix issue where Price Options were not being sorted by weight
Seamus Lee [Wed, 21 Jun 2017 21:55:29 +0000 (07:55 +1000)]
CRM-20720 CRM-20757 Fix issue where Price Options were not being sorted by weight

7 years agoCRM-20411: mailing tab listing: MySQL 5.7 group by error
deb.monish [Wed, 21 Jun 2017 20:30:21 +0000 (02:00 +0530)]
CRM-20411: mailing tab listing: MySQL 5.7 group by error

7 years agoMerge pull request #10306 from aydun/CRM-20525
Eileen McNaughton [Wed, 21 Jun 2017 19:55:00 +0000 (07:55 +1200)]
Merge pull request #10306 from aydun/CRM-20525

CRM-20525 Fix version of mail sent for pay later mails from webform

7 years agoMerge pull request #9777 from jitendrapurohit/CRM-19745fix
Monish Deb [Wed, 21 Jun 2017 19:12:32 +0000 (00:42 +0530)]
Merge pull request #9777 from jitendrapurohit/CRM-19745fix

CRM-19745: Image URL field doesn't show up on CiviEvent Additional Pa…

7 years agoMerge branch '4.7.21-rc' into master
Coleman Watts [Wed, 21 Jun 2017 19:11:31 +0000 (15:11 -0400)]
Merge branch '4.7.21-rc' into master

7 years agoMerge pull request #10540 from colemanw/CRM-20091
colemanw [Wed, 21 Jun 2017 19:11:03 +0000 (15:11 -0400)]
Merge pull request #10540 from colemanw/CRM-20091

CRM-20091 - Fix return value in api.customValue.gettree

7 years agoCRM-20091 - Fix return value in api.customValue.gettree
Coleman Watts [Wed, 21 Jun 2017 17:34:36 +0000 (13:34 -0400)]
CRM-20091 - Fix return value in api.customValue.gettree

7 years agoCRM-20753 - Net amount doesn't respect localization
yashodha [Wed, 21 Jun 2017 06:41:49 +0000 (12:11 +0530)]
CRM-20753 - Net amount doesn't respect localization

7 years agoCRM-19745: Image URL field doesn't show up on CiviEvent Additional Participants Profile
jitendrapurohit [Fri, 3 Feb 2017 12:05:15 +0000 (17:35 +0530)]
CRM-19745: Image URL field doesn't show up on CiviEvent Additional Participants Profile

7 years agoMerge pull request #10534 from seamuslee001/CRM-20670
Tim Otten [Wed, 21 Jun 2017 05:31:28 +0000 (22:31 -0700)]
Merge pull request #10534 from seamuslee001/CRM-20670

CRM-20670 (NFC) Style alter as per Eileen

7 years agoMerge pull request #10515 from yashodha/CRM-20741
Yashodha Chaku [Wed, 21 Jun 2017 04:23:36 +0000 (09:53 +0530)]
Merge pull request #10515 from yashodha/CRM-20741

CRM-20741 - Cancellation message shown as error

7 years agoCRM-20670 (NFC) Style alter as per Eileen
Seamus Lee [Wed, 21 Jun 2017 02:34:30 +0000 (12:34 +1000)]
CRM-20670 (NFC) Style alter as per Eileen

7 years agoMerge pull request #10455 from JO0st/CRM-20670
Eileen McNaughton [Wed, 21 Jun 2017 02:14:37 +0000 (14:14 +1200)]
Merge pull request #10455 from JO0st/CRM-20670

    CRM-20670 fix editing membership types with a lot of members

7 years agoMerge pull request #10487 from mfb/CRM-20713
Eileen McNaughton [Tue, 20 Jun 2017 22:29:12 +0000 (10:29 +1200)]
Merge pull request #10487 from mfb/CRM-20713

CRM-20713 - CiviMail - do not set mode = 'sms' if sms_provider_id = 'null'

7 years agoMerge pull request #10449 from jmcclelland/CRM-20666
Mathieu Lu [Tue, 20 Jun 2017 15:38:08 +0000 (11:38 -0400)]
Merge pull request #10449 from jmcclelland/CRM-20666

CRM-20666 - allow filenames up to 255 characters

7 years agofixes editing membership type for membershiptypes with a lot of members
Joost [Thu, 1 Jun 2017 09:55:51 +0000 (11:55 +0200)]
fixes editing membership type for membershiptypes with a lot of members

7 years agoMerge pull request #10532 from monishdeb/CRM-20488_soft_credit_organization
Monish Deb [Tue, 20 Jun 2017 07:29:38 +0000 (12:59 +0530)]
Merge pull request #10532 from monishdeb/CRM-20488_soft_credit_organization

CRM-20488: remove unused variable _honoreeProfileType

7 years agoCRM-20488: remove unused variable _honoreeProfileType
deb.monish [Tue, 20 Jun 2017 06:05:40 +0000 (11:35 +0530)]
CRM-20488: remove unused variable _honoreeProfileType

7 years agoMerge pull request #10528 from tschuettler/CRM-20746
Eileen McNaughton [Tue, 20 Jun 2017 05:01:55 +0000 (17:01 +1200)]
Merge pull request #10528 from tschuettler/CRM-20746

CRM-20746 - CiviMail - Use body_text for text part of resubscription …

7 years agoCRM-16395: Installation with localized default settings (4) (#10518)
Mathieu Lu [Tue, 20 Jun 2017 02:49:50 +0000 (22:49 -0400)]
CRM-16395: Installation with localized default settings (4) (#10518)

CRM-16395: Installation with localized default settings

This makes it possible to have a file in "civicrm/l10n/xx_YY/settings.default.json" with default settings that correspond to the locale during installation (ex: default country, currency, date formats, etc).

7 years agoMerge pull request #10432 from francescbassas/patch-11
Mathieu Lu [Tue, 20 Jun 2017 00:44:41 +0000 (20:44 -0400)]
Merge pull request #10432 from francescbassas/patch-11

CRM-20650 Translate strings

7 years agoMerge pull request #10424 from twomice/CRM-20401_subscription_urls
Eileen McNaughton [Mon, 19 Jun 2017 22:35:03 +0000 (10:35 +1200)]
Merge pull request #10424 from twomice/CRM-20401_subscription_urls

Fix CRM-20401: use native CiviCRM recurring links

7 years agoMerge pull request #10530 from davejenx/CRM-20443-master
Eileen McNaughton [Mon, 19 Jun 2017 22:27:13 +0000 (10:27 +1200)]
Merge pull request #10530 from davejenx/CRM-20443-master

CRM-20443 - SQL syntax error creating logging triggers if column name…

7 years agoMerge pull request #10419 from twomice/CRM-20488_soft_credit_organization
Monish Deb [Mon, 19 Jun 2017 20:16:25 +0000 (01:46 +0530)]
Merge pull request #10419 from twomice/CRM-20488_soft_credit_organization

Fix CRM-20488: remove restrictions on soft credit contact type.

7 years agoMerge pull request #10447 from JMAConsulting/CRM-19478
Monish Deb [Mon, 19 Jun 2017 19:40:47 +0000 (01:10 +0530)]
Merge pull request #10447 from JMAConsulting/CRM-19478

CRM-19478: Handle p=null oddity for Paypal Pro Recurring payments

7 years agominor fix
deb.monish [Mon, 19 Jun 2017 19:20:34 +0000 (00:50 +0530)]
minor fix

7 years agoAdditional for CRM-20488: remove useless preProcess() method.
Allen Shaw [Tue, 13 Jun 2017 15:54:00 +0000 (10:54 -0500)]
Additional for CRM-20488: remove useless preProcess() method.

7 years agoFix CRM-20488: remove restrictions on soft credit contact type.
Allen Shaw [Fri, 26 May 2017 00:51:07 +0000 (19:51 -0500)]
Fix CRM-20488: remove restrictions on soft credit contact type.

7 years agoMerge pull request #10524 from jitendrapurohit/CRM-20745
Monish Deb [Mon, 19 Jun 2017 18:59:57 +0000 (00:29 +0530)]
Merge pull request #10524 from jitendrapurohit/CRM-20745

CRM-20745: Post date of recur not respected in credit card pledge pay…

7 years agoMerge pull request #10521 from JMAConsulting/CRM-20495
Monish Deb [Mon, 19 Jun 2017 18:40:52 +0000 (00:10 +0530)]
Merge pull request #10521 from JMAConsulting/CRM-20495

CRM-20495 : 'Contribution amounts section' checkbox setting on contribution pages always shows as checked

7 years agoMerge pull request #10457 from jitendrapurohit/CRM-20675
Monish Deb [Mon, 19 Jun 2017 18:11:24 +0000 (23:41 +0530)]
Merge pull request #10457 from jitendrapurohit/CRM-20675

CRM-20675: Fix incorrect renewal activity created when membership upd…

7 years agoMinor fix at unit test
Monish Deb [Mon, 19 Jun 2017 17:29:04 +0000 (22:59 +0530)]
Minor fix at unit test

7 years agoCRM-20443 - SQL syntax error creating logging triggers if column name is reserved...
Dave Jenkins [Mon, 19 Jun 2017 17:02:14 +0000 (18:02 +0100)]
CRM-20443 - SQL syntax error creating logging triggers if column name is reserved word - 4.7 version

7 years agoMerge pull request #10467 from JMAConsulting/CRM-20682
Monish Deb [Mon, 19 Jun 2017 16:49:10 +0000 (22:19 +0530)]
Merge pull request #10467 from JMAConsulting/CRM-20682

CRM-20682: Include human readable contribution's custom field label in token widget for Thankyou letter

7 years agoCRM-20746 - CiviMail - Use body_text for text part of resubscription confirmation...
Thomas Schüttler [Mon, 19 Jun 2017 10:38:26 +0000 (12:38 +0200)]
CRM-20746 - CiviMail - Use body_text for text part of resubscription confirmation mails

----------------------------------------
* CRM-20746: CiviMail - text part of resubscribe confirmation mail contains html
  https://issues.civicrm.org/jira/browse/CRM-20746

7 years agoAdd test
Jitendra Purohit [Mon, 19 Jun 2017 09:51:50 +0000 (15:21 +0530)]
Add test

7 years agoMerge pull request #10526 from civicrm/4.7.21-rc
Eileen McNaughton [Mon, 19 Jun 2017 01:41:51 +0000 (13:41 +1200)]
Merge pull request #10526 from civicrm/4.7.21-rc

4.7.21 rc

7 years agoMerge pull request #10523 from seamuslee001/animated_image
Eileen McNaughton [Mon, 19 Jun 2017 00:18:56 +0000 (12:18 +1200)]
Merge pull request #10523 from seamuslee001/animated_image

(NFC) re add in animated-overlay.gif is no longer provided by jquery-ui

7 years agoMerge pull request #10525 from seamuslee001/contribution_test_rigger_fix
Eileen McNaughton [Sun, 18 Jun 2017 23:26:36 +0000 (11:26 +1200)]
Merge pull request #10525 from seamuslee001/contribution_test_rigger_fix

(NFC) Fix clearing messages to ensure test accuracy

7 years ago(NFC) Fix clearing messages to ensure test accuracy
Seamus Lee [Sun, 18 Jun 2017 22:07:30 +0000 (08:07 +1000)]
(NFC) Fix clearing messages to ensure test accuracy

7 years agoCRM-20745: Post date of recur not respected in credit card pledge payment
Jitendra Purohit [Sun, 18 Jun 2017 08:13:13 +0000 (13:43 +0530)]
CRM-20745: Post date of recur not respected in credit card pledge payment

7 years agoMerge pull request #10522 from colemanw/CRM-20743
colemanw [Sun, 18 Jun 2017 02:43:05 +0000 (22:43 -0400)]
Merge pull request #10522 from colemanw/CRM-20743

CRM-20743 - Check tag permissions in UI and BAO

7 years agoApply mlutfy changes
francescbassas [Sat, 17 Jun 2017 23:31:54 +0000 (01:31 +0200)]
Apply mlutfy changes

7 years ago(NFC) re add in animated-overlay.gif is no longer provided by jquery-ui
Seamus Lee [Sat, 17 Jun 2017 23:31:44 +0000 (09:31 +1000)]
(NFC) re add in animated-overlay.gif is no longer provided by jquery-ui

7 years agoApply mlutfy changes
francescbassas [Sat, 17 Jun 2017 23:30:37 +0000 (01:30 +0200)]
Apply mlutfy changes

7 years agoRemove stray semicolon
Coleman Watts [Sat, 17 Jun 2017 22:25:47 +0000 (18:25 -0400)]
Remove stray semicolon

7 years agoCRM-20743 - Check tag permissions in form layer
Coleman Watts [Sat, 17 Jun 2017 22:22:01 +0000 (18:22 -0400)]
CRM-20743 - Check tag permissions in form layer

7 years agoMerge pull request #10429 from JMAConsulting/CRM-20622
colemanw [Sat, 17 Jun 2017 22:19:29 +0000 (18:19 -0400)]
Merge pull request #10429 from JMAConsulting/CRM-20622

CRM-20622 , CRM-20673 : tags and groups panel layout/styling

7 years agoQA fixes
deb.monish [Sat, 17 Jun 2017 20:24:13 +0000 (01:54 +0530)]
QA fixes

7 years agoCRM-20743 - Check tag permissions in UI and BAO
Coleman Watts [Sat, 17 Jun 2017 18:43:40 +0000 (14:43 -0400)]
CRM-20743 - Check tag permissions in UI and BAO

7 years agoCRM-20673: Tag and group edit form: implement Select2 for tags
deb.monish [Wed, 14 Jun 2017 20:09:46 +0000 (01:39 +0530)]
CRM-20673: Tag and group edit form: implement Select2 for tags

7 years agoCRM-20622: contact edit: tags and groups panel layout/styling
deb.monish [Sun, 28 May 2017 10:08:03 +0000 (15:38 +0530)]
CRM-20622: contact edit: tags and groups panel layout/styling

7 years agoCRM-20495 : 'Contribution amounts section' checkbox setting on contribution pages...
deb.monish [Sat, 17 Jun 2017 15:17:37 +0000 (20:47 +0530)]
CRM-20495 : 'Contribution amounts section' checkbox setting on contribution pages always shows as checked

7 years agoMerge pull request #10441 from JMAConsulting/CRM-20621
Monish Deb [Sat, 17 Jun 2017 10:59:17 +0000 (16:29 +0530)]
Merge pull request #10441 from JMAConsulting/CRM-20621

CRM-20621 : manage tags: the tag usage count is not accurate

7 years agoSet version to 4.7.22
CiviCRM [Sat, 17 Jun 2017 06:41:23 +0000 (06:41 +0000)]
Set version to 4.7.22

7 years agoMerge pull request #10085 from totten/master-assets
Tim Otten [Sat, 17 Jun 2017 06:06:27 +0000 (23:06 -0700)]
Merge pull request #10085 from totten/master-assets

CRM-20600 - AngularJS - Allowing hooking and static-caching

7 years agoCRM-20600 - AssetBuiler - Add separate setting, `assetCache`
Tim Otten [Sat, 17 Jun 2017 05:16:15 +0000 (22:16 -0700)]
CRM-20600 - AssetBuiler - Add separate setting, `assetCache`

The default value (`auto`) behaves the same as the current behavior: enable
caching in production mode, disable caching in debug mode.

But it also allows you to enable/disable caching independent of the
prod/debug mode.

7 years agoMerge pull request #9790 from fliespl/patch-3
Mathieu Lu [Sat, 17 Jun 2017 03:42:51 +0000 (23:42 -0400)]
Merge pull request #9790 from fliespl/patch-3

CRM-19896 - customTranslateFunction not mapped

7 years agoMerge pull request #10519 from johanv/attribution_chirojeugd
Mathieu Lu [Sat, 17 Jun 2017 02:18:42 +0000 (22:18 -0400)]
Merge pull request #10519 from johanv/attribution_chirojeugd

(NFC) Attribution Chirojeugd Vlaanderen

7 years agoCRM-20600, CRM-20112 - AngularLoader - Add helper for base-pages and injections
Tim Otten [Thu, 25 May 2017 03:43:07 +0000 (20:43 -0700)]
CRM-20600, CRM-20112 - AngularLoader - Add helper for base-pages and injections

This commit extracts the `Civi\Angular\Page\Main::registerResources()` and
creates a new utility-class, `AngularLoader`.  The `AngularLoader` can be
used in new Angular base-pages, e.g.

```php
class Example extends CRM_Core_Page {
  public function run() {
    $loader = new \Civi\Angular\AngularLoader();
    $loader->setPageName('civicrm/foo/bar');
    $loader->setModules(array('crmApp', '...'));
    $loader->load();
    return parent::run();
  }
}
```

The `AngularLoader` only loads the resources or assets (JS/CSS/HTML files).
To start Angular, you'll need to call `ng-app` or `angular.bootstrap(...)`.
One way to do this is to define a page-template:

```html
<!-- Example.tpl -->
<div ng-app="crmApp">
  <div ng-view></div>
</div>
```

Or you can reuse the existing template:

```php
  public function getTemplateFileName() {
    return 'Civi/Angular/Page/Main.tpl';
  }
```

Note: This is framed as a utility-class which loads the Angular resource
files.  It's not a page-class/base-class.  This approach allows us to call
the utility from other situations -- e.g.  inject AngularJS onto an
pre-existing page via hook.  Doing that may or may not be wise, but the
class-hierarchy shouldn't be the issue.

7 years agoCRM-20600 - Civi\Angular\Manager - Add resolveDependencies(), resolveDefaultModules()
Tim Otten [Thu, 25 May 2017 03:40:04 +0000 (20:40 -0700)]
CRM-20600 - Civi\Angular\Manager - Add resolveDependencies(), resolveDefaultModules()

7 years agoCRM-20600 - CRM_Core_Resources - Add hook for settings data
Tim Otten [Sat, 20 May 2017 00:24:58 +0000 (17:24 -0700)]
CRM-20600 - CRM_Core_Resources - Add hook for settings data

7 years agoCRM-20600 - Civi\Angular\Manager - Add hook for modifying partials and dependencies
Tim Otten [Tue, 16 May 2017 09:46:33 +0000 (02:46 -0700)]
CRM-20600 - Civi\Angular\Manager - Add hook for modifying partials and dependencies

7 years agoCRM-20600 - Civi\Angular\ChangeSet - Implement a utility for modifying HTML snippets...
Tim Otten [Tue, 16 May 2017 06:43:57 +0000 (23:43 -0700)]
CRM-20600 - Civi\Angular\ChangeSet - Implement a utility for modifying HTML snippets via phpQuery

7 years agoCRM-20600 - composer.json - Add phpQuery
Tim Otten [Fri, 31 Mar 2017 19:55:45 +0000 (12:55 -0700)]
CRM-20600 - composer.json - Add phpQuery

7 years agoCRM-20600 - Angular deps - Add missing/implicit dependencies
Tim Otten [Tue, 23 May 2017 04:42:42 +0000 (21:42 -0700)]
CRM-20600 - Angular deps - Add missing/implicit dependencies

Several modules depended on `crmResource` but didn't declare it.

7 years agoCRM-20600 - Angular deps - Move from *.js to *.php
Tim Otten [Fri, 19 May 2017 04:25:58 +0000 (21:25 -0700)]
CRM-20600 - Angular deps - Move from *.js to *.php

If third-parties are allowed to alter the HTML content, then they may
introduce new dependencies.  This means that they'll need to delcare those
dependencies.

This commit actually moves the declarations for any in-house modules to PHP.

7 years agoCRM-20600 - Angular deps - Allow declaration in PHP code
Tim Otten [Fri, 19 May 2017 04:20:28 +0000 (21:20 -0700)]
CRM-20600 - Angular deps - Allow declaration in PHP code

If third-parties are allowed to alter the HTML content, then they may
introduce new dependencies.  This means that they'll need to delcare those
dependencies.

Tangentially, this will also make it easier to construct more optimized
base-pages (e.g.  "make a base-page with module X plus all its
dependencies").

7 years agoCRM-20600 - civicrm/a - Avoid dirty caches for permissioned modules
Tim Otten [Fri, 19 May 2017 01:52:47 +0000 (18:52 -0700)]
CRM-20600 - civicrm/a - Avoid dirty caches for permissioned modules

The default behavior is to include a `bundleUrl` for a bundle of "all
Angular modules".  However, some Angular modules like `crmMailing` are only
displayed if the current user has permission to access them.  This means
that the list of "all Angular modules" can be different (depending on who
you are; albeit in practice there's a small# of permutations).

This patch ensures that two users who access a different list of modules
will see a different `bundleUrl`.

7 years agoCRM-20600 - Civi\Angular\Manager::getStrings() - Scan raw HTML strings instead of...
Tim Otten [Tue, 16 May 2017 05:29:07 +0000 (22:29 -0700)]
CRM-20600 - Civi\Angular\Manager::getStrings() - Scan raw HTML strings instead of *.html files

Rationale: If the raw HTML can be modified via hook, then the HTML files are
not truly representative of the final output.  (e.g.  a hook might add a new
string to some HTML.)

Note: This patch means that we no longer benefit from the cache in
`CRM_Core_Resources_Strings`.  However, the typical user still pulls data
from a cache because we're using `AssetBuilder` to manage
`angular-modules.json`.

Note: `getStrings()` now requires a call to `getPartials()`, which is
expected to become more expensive (firing a hook).  To avoid building the
partials twice, we introduce a private cache.

7 years agoCRM-20600 - PartialSyntaxTest - Ensure that Angular partials are well-formed
Tim Otten [Sat, 1 Apr 2017 05:07:49 +0000 (22:07 -0700)]
CRM-20600 - PartialSyntaxTest - Ensure that Angular partials are well-formed

7 years agoCRM-20600 - Civi\Angular - Generate modules via AssetBuilder
Tim Otten [Fri, 31 Mar 2017 07:36:35 +0000 (00:36 -0700)]
CRM-20600 - Civi\Angular - Generate modules via AssetBuilder

In the typical use-case, AssetBuilder can avoid an extra CMS+Civi bootstrap
along with any build steps.

7 years agoCRM-20600 - Implement AssetBuilder - See extended docblock in AssetBuilder.php
Tim Otten [Fri, 31 Mar 2017 05:55:47 +0000 (22:55 -0700)]
CRM-20600 - Implement AssetBuilder - See extended docblock in AssetBuilder.php

7 years agoCRM-20600 - Move Angular metadata to civix-style files
Tim Otten [Fri, 19 May 2017 03:39:11 +0000 (20:39 -0700)]
CRM-20600 - Move Angular metadata to civix-style files

This PR moves the metadata about Angular modules out of Civi\Angular\Manager
and into standalone files (`ang/*.ang.php`).  This uses the same structure
as `civix`.  Also, this makes it easier to navigate between the
JS/HTML/CSS/PHP content.

To test that these changes were safe, I ran the following command before and
after this commit:

$ cv ev 'var_dump(Civi::service("angular")->getModules());'

The results were substantively identical.

7 years agoMerge pull request #10520 from seamuslee001/CRM-20744
colemanw [Sat, 17 Jun 2017 01:34:51 +0000 (21:34 -0400)]
Merge pull request #10520 from seamuslee001/CRM-20744

CRM-20744 Use images in the bower_components version of datatables plugin rathe…

7 years agoUse images in the bower_components version of datatables plugin rather than packages
Seamus Lee [Sat, 17 Jun 2017 00:14:12 +0000 (10:14 +1000)]
Use images in the bower_components version of datatables plugin rather than packages

7 years agoMerge pull request #10495 from seamuslee001/CRM-20243-phpword
Tim Otten [Fri, 16 Jun 2017 22:35:26 +0000 (15:35 -0700)]
Merge pull request #10495 from seamuslee001/CRM-20243-phpword

CRM-20243 Remove outdated sample jquery.min.js from phpword package