Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge in civicrm/drupal from Dec 15, 2015 to June 21, 2017 #36

Merged
merged 122 commits into from
Jul 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
2529d1b
CRM-17646 - Refactor out CRM_Core_BAO_CustomField::getDisplayValue
colemanw Dec 15, 2015
960ff7e
Added load_generated_data option when installing CiviCRM.
mollux Dec 22, 2015
53e7171
Merge pull request #338 from mollux/CRM-17742
davecivicrm Dec 22, 2015
fd4d7e5
Update icons
colemanw Dec 23, 2015
5fbb0c7
Return the conf array when calling civicrm-sql-conf so it can be used…
mollux Dec 23, 2015
2404b35
Merge pull request #336 from colemanw/CRM-17646
colemanw Dec 27, 2015
e2daf52
CRM-15768: Correct module version
JKingsnorth Jan 5, 2016
8cc780e
Merge pull request #341 from JKingsnorth/CRM-15768
colemanw Jan 5, 2016
c096bf2
Fix syntax error
laryn Jan 7, 2016
abb0c01
Merge pull request #343 from laryn/patch-3
colemanw Jan 7, 2016
69e21af
Merge pull request #339 from mollux/CRM-17746
Jan 12, 2016
b19195d
CRM-17871: Improve administration forms, add debug mode
JKingsnorth Jan 25, 2016
7f3bb47
Merge pull request #346 from JKingsnorth/CRM-17871
Feb 5, 2016
0544253
CRM-18088: Contribution page ID contextual filter
JKingsnorth Feb 23, 2016
eb7dec4
Merge pull request #355 from JKingsnorth/CRM-18088
Feb 29, 2016
e065804
CRM-18138: Use contact ID from UF match, not CMS email
JKingsnorth Mar 2, 2016
7c499ba
Merge pull request #357 from JKingsnorth/CRM-18138
monishdeb Mar 8, 2016
c9c8b57
Updated role sync to support multiple synchronization methods, added …
spencerbrooks Mar 10, 2016
97ac3ea
Clarified form description text and a few variable names.
spencerbrooks Mar 10, 2016
c668ca6
CRM-16479: Support for image styles (proof of concept)
JKingsnorth Mar 18, 2016
738b08a
Fix field dependency when image module not enabled
JKingsnorth Mar 18, 2016
f09b843
Add update hook for member role sync.
spencerbrooks Mar 22, 2016
5e91af9
CRM-18326. Support displaying currency amounts without currency forma…
xurizaemon Mar 30, 2016
d14e6cd
Merge pull request #366 from fuzionnz/7.x-CRM-18326
Mar 31, 2016
0bab91f
CRM-18377: Fix 'text link' views handlers
JKingsnorth Apr 7, 2016
e5b6bdd
Don't look for Wordpress in a Drupal installation
JKingsnorth Apr 11, 2016
d871fe4
Adds command to sync users to contacts, useful for thousands of users…
AronNovakInovae Apr 7, 2015
338e4d6
implement user sync from drush
Apr 11, 2016
7bfdde0
Merge pull request #372 from JKingsnorth/rm-wordpress
colemanw Apr 11, 2016
108efb3
Merge pull request #360 from spencerbrooks/7.x-master
monishdeb Apr 12, 2016
b68aab9
Merge pull request #373 from jitendrapurohit/267update
monishdeb Apr 12, 2016
ce8b516
Use currency field if available for formatted money display.
torrance Apr 14, 2016
986322a
Merge pull request #374 from fuzionnz/money_handler
torrance Apr 14, 2016
b1277a6
Label fix
JKingsnorth Apr 15, 2016
72f8bd5
Title case labels for consistency
JKingsnorth Apr 15, 2016
0b7f4d4
Merge pull request #370 from JKingsnorth/CRM-18377
monishdeb Apr 15, 2016
ec08228
Fix for CRM-18451
laryn Apr 20, 2016
23d8cdf
Merge pull request #375 from laryn/patch-5
colemanw Apr 20, 2016
8c13f00
Remove pass_by_ref & which causes strict error
eileenmcnaughton Apr 26, 2016
790e7d9
Merge pull request #378 from eileenmcnaughton/pass_ref
totten Apr 27, 2016
bf2c499
Use Civi::paths and reduce hardcoding
JKingsnorth May 9, 2016
6a3a901
CRM-14707 - Add unit-test for Drupal hook invocation
totten Oct 3, 2014
0b9d0ab
Rename tests/phpunit/README.md to TESTING.md
totten Oct 10, 2014
2c4e0c1
TESTING.md - Tweak prose
totten Oct 10, 2014
6ab20c2
CRM-14707 - tests/phpunit/bootstrap.php - Update to use `cv` bootstrap
totten May 11, 2016
1bb8b41
tests/phpunit/CiviDrupal/HookTest.php - Style
totten May 11, 2016
985c9f5
CRM-14707, CRM-16000 - Add basic test for member-role sync
totten May 12, 2016
ef0cbaf
Merge pull request #169 from totten/7.x-master-phpunit-hooktest
totten May 12, 2016
d5eb4b8
Replaced mysql with mysqli.
mollux May 25, 2016
8a9bc72
CRM-18748: Code style cleanup.
xurizaemon Jun 5, 2016
b7794af
CRM-18748: Code style (whitespace only).
xurizaemon Jun 5, 2016
596562c
Merge pull request #385 from fuzionnz/7.x-CRM-18748
colemanw Jun 5, 2016
cc6639c
revert #282 to fix ajax uploads on forms
Jun 10, 2016
d0de5ee
Merge pull request #387 from jitendrapurohit/CRM-16513
monishdeb Jun 22, 2016
4e081f8
Allow civicrm-sql-conf and civicrm-sql-cli command without an install…
mollux Oct 30, 2015
06a41f0
Changed _civi_init to make initializing config configurable.
mollux Jul 8, 2016
bd9762d
Reversed logic of loading config, as most of the commands need a load…
mollux Jul 8, 2016
0b4ba7f
Merge pull request #321 from mollux/CRM-10193
monishdeb Jul 11, 2016
e96c08c
fix headers
Jul 14, 2016
753b10d
Merge pull request #390 from yashodha/fix-header
Jul 15, 2016
772ae6e
Fix variable name in 'drush' update code
kenahoo Jul 19, 2016
a9217b7
Merge pull request #384 from mollux/php7-7.x-master
totten Jul 29, 2016
660106d
CRM-17789 - civicrm.drush.inc - _civicrm_install_db() for PHP 7
totten Jul 30, 2016
84b9efc
Merge pull request #392 from kenahoo/patch-1
totten Aug 18, 2016
42336ea
CRM-19274 Access Instant Messaging in Drupal Views
Aug 30, 2016
d348cfd
CRM-19274 - Drupal Views Integration
Sep 6, 2016
9882f03
Remove error-suppression arroba which keeps errors out of the log as …
universalhandle Sep 7, 2016
19d3630
Use translated labels instead of names
Sep 19, 2016
e4bb36b
Merge pull request #398 from nielosz/use-rel-type-labels
Sep 20, 2016
7ccb999
CRM-19407: cannot install with mysqli if using default port.
mlutfy Sep 23, 2016
ec5d4e6
Merge pull request #399 from mlutfy/7.x-master-crm19407
totten Sep 25, 2016
96d55a5
CRM-19430 Use label for relation type field
konadave Sep 29, 2016
5a0002a
Merge pull request #403 from konadave/CRM-19430-7.x
Sep 30, 2016
55417fb
CRM-14280 - Fix check of nonexistant permission
colemanw Oct 3, 2016
f854dd4
Merge pull request #404 from colemanw/CRM-14280
colemanw Oct 3, 2016
5e4a468
Merge pull request #396 from GinkgoFJG/7.x-master
colemanw Oct 3, 2016
1d33c16
Merge pull request #395 from Vgratioulet/CRM-19274-Instant-Messaging-…
colemanw Oct 4, 2016
71ef497
Merge pull request #364 from JKingsnorth/CRM-16479
colemanw Oct 12, 2016
e9eca96
Updated call to civicrm_views_custom_data_cache as per CRM-18776 (#386)
adixon Oct 12, 2016
c0e1623
CRM-19568 Expose processor ID to views
konadave Oct 26, 2016
7d48e47
Merge pull request #406 from konadave/CRM-19568-7.x
monishdeb Nov 3, 2016
4805a82
CRM-19611 - remove custom fields that are now duplicated in core.
jmcclelland Nov 7, 2016
4816d67
Merge pull request #410 from jmcclelland/CRM-19611
colemanw Nov 7, 2016
f130fcd
CRM-19604: civicrm-ext-list: avoid default API limit of 25 results
mlutfy Nov 9, 2016
0931865
Merge pull request #411 from mlutfy/7.x-master-crm19604
monishdeb Nov 9, 2016
33a0da9
missing files in previous commit
Nov 29, 2016
62584a1
CRM-19759 handles the 'require this relationship' checkbox
Dec 8, 2016
d63a347
CRM-19760 : allow multiple relationships of the same element
Dec 8, 2016
27e6f7d
CRM-19740 Regression in phone number Drupal views integration
Dec 9, 2016
977ca17
Merge pull request #415 from Vgratioulet/CRM-19274-Instant-Messaging-…
monishdeb Dec 20, 2016
b404307
CRM-19545: Revert CRM-18776 to get back missing custom fields
JKingsnorth Dec 22, 2016
e17d279
fix headers
Jan 9, 2017
8975372
fix
Jan 9, 2017
ba91052
Merge pull request #421 from yashodha/header-fix
Jan 9, 2017
3869bfb
CRM-19910: modify sub type filter handler
Jan 24, 2017
d06488f
Merge pull request #417 from JKingsnorth/CRM-19545
eileenmcnaughton Jan 28, 2017
80c1e65
Merge pull request #424 from jitendrapurohit/CRM-19910
monishdeb Feb 3, 2017
ea90be2
CRM-20186 - Expose legal name in views
Feb 27, 2017
9f81903
Merge pull request #429 from yashodha/CRM-20186
eileenmcnaughton Feb 28, 2017
87f944b
CRM-20205 - Expose current employer id to views
Mar 7, 2017
79b60a4
CRM-20319 - Expose relationship permission to views
Mar 22, 2017
09e8734
minor fix
Mar 22, 2017
8b5f672
Silence warnings arising from missing "current field" definitions.
torrance Apr 18, 2017
0f25109
Merge pull request #437 from yashodha/CRM-20319
yashodha Apr 21, 2017
35bdd67
CRM-20462 - Add filter for current employer in views
Apr 21, 2017
05d7917
Do not get custom group tree into cache if we are upgrading
seamuslee001 Apr 29, 2017
1d3ac6f
Only return if we are in upgrade mode
seamuslee001 Apr 30, 2017
262ca60
Merge pull request #444 from seamuslee001/7.x-4.7.19-rc
eileenmcnaughton Apr 30, 2017
84007d6
Merge pull request #445 from civicrm/7.x-4.7.19-rc
totten May 2, 2017
52add32
Merge pull request #440 from yashodha/7.x-CRM-20462
eileenmcnaughton May 4, 2017
4f7a04b
Improve Views checkbox value handling
davejenx May 26, 2017
ac0268d
Merge pull request #448 from davejenx/improve-checkbox-value-handling
totten May 26, 2017
8200e6c
Fix passing null object
colemanw Jun 2, 2017
7a48381
Merge pull request #452 from colemanw/null
colemanw Jun 2, 2017
86664cd
Merge pull request #433 from yashodha/CRM-20205
yashodha Jun 6, 2017
00406a5
CRM-20751: Support Drupal aliases for event links in Views
twomice Jun 20, 2017
cc24159
Revert "CRM-20751: Support Drupal aliases for event links in Views"
twomice Jun 21, 2017
b7d7ee8
Fix CRM-20751: Add Drupal alias support for all Views links.
twomice Jun 21, 2017
f982a2e
Merge pull request #455 from twomice/CRM-20751_drupal_alias_views_event
colemanw Jun 21, 2017
0da3929
CRM-20751 - Handle array query data in civicrm_views_url
colemanw Jun 21, 2017
384a955
Merge pull request #456 from colemanw/CRM-20751
colemanw Jun 21, 2017
54d5315
Merge remote-tracking branch 'drupal/7.x-master' (from Dec 15, 2015 c…
herbdool Jul 8, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This repository contains the CiviCRM-Backdrop integration module. It does NOT
contain tests for core functionality. (For tests of core functionality, see
https://github.com/civicrm/civicrm-core .)

At time of writing, these tests execute within the context of the default
Backdrop database. Consequently, you must be quite careful to write tests
which don't leave a mess in the database.
23 changes: 10 additions & 13 deletions civicrm.config.php.backdrop
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
* return a default value '$confdir/default'.
*
* Example for a fictitious site installed at
* http://www.drupal.org/mysite/test/ the 'settings.php' is
* http://www.backdrop.org/mysite/test/ the 'settings.php' is
* searched in the following directories:
*
* 1. $confdir/www.drupal.org.mysite.test
* 2. $confdir/drupal.org.mysite.test
* 1. $confdir/www.backdrop.org.mysite.test
* 2. $confdir/backdrop.org.mysite.test
* 3. $confdir/org.mysite.test
*
* 4. $confdir/www.drupal.org.mysite
* 5. $confdir/drupal.org.mysite
* 4. $confdir/www.backdrop.org.mysite
* 5. $confdir/backdrop.org.mysite
* 6. $confdir/org.mysite
*
* 7. $confdir/www.drupal.org
* 8. $confdir/drupal.org
* 7. $confdir/www.backdrop.org
* 8. $confdir/backdrop.org
* 9. $confdir/org
*
* 10. $confdir/default
Expand All @@ -43,7 +43,7 @@ function civicrm_conf_init() {
}

/**
* We are within the civicrm module, the drupal root is 2 links
* We are within the civicrm module, the backdrop root is 2 links
* above us, so use that
*/
$currentDir = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
Expand All @@ -64,9 +64,6 @@ function civicrm_conf_init() {
// check to see if this is under sites/all/modules
} else if ( strpos( $currentDir, $moduleDir ) !== false ) {
$confdir = $currentDir . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..';
} else if ( strpos( $currentDir, 'plugins' . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR . 'civicrm' ) !== false ) {
//if its wordpress
$confdir = $currentDir . DIRECTORY_SEPARATOR . '..';
} else {
$confdir = $currentDir . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR;
}
Expand All @@ -81,7 +78,7 @@ function civicrm_conf_init() {
exit( );
}

// since drupal 7, alias could be defined in sites/sites.php
// alias could be defined in sites/sites.php
if ( file_exists( $confdir . "/sites.php" ) ) {
include $confdir . "/sites.php";
} else {
Expand Down Expand Up @@ -115,7 +112,7 @@ function civicrm_conf_init() {

$settingsFile = civicrm_conf_init( ) . '/civicrm.settings.php';
define('CIVICRM_SETTINGS_PATH', $settingsFile);
$error = @include_once( $settingsFile );
$error = include_once( $settingsFile );
if ( $error == false ) {
echo "Could not load the settings file at: {$settingsFile}\n";
exit( );
Expand Down
2 changes: 1 addition & 1 deletion civicrm.info
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = CiviCRM
description = Constituent relationship management system. Allows sites to manage contacts, relationships and groups, and track contact activities, contributions, memberships and events. See the <a href="https://civicrm.org/">CiviCRM website</a> for more information.
version = 4.7
version = 1.x-4.7
package = CiviCRM
backdrop = 1.x
project = civicrm
Expand Down
4 changes: 2 additions & 2 deletions civicrm.install
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
Expand All @@ -28,7 +28,7 @@
/**
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
* @copyright CiviCRM LLC (c) 2004-2017
* $Id$
*
*/
Expand Down
30 changes: 12 additions & 18 deletions civicrm.module
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Backdrop module file.
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2016
* @copyright CiviCRM LLC (c) 2004-2017
*/
require_once 'civicrm_user.inc';

Expand Down Expand Up @@ -240,7 +240,6 @@ function civicrm_initialize() {
if (!defined('CIVICRM_SETTINGS_PATH')) {
define('CIVICRM_SETTINGS_PATH', $settingsFile);
}
$error = include_once ($settingsFile);

// get ready for problems
$docLinkInstall = "https://wiki.civicrm.org/confluence/display/CRMDOC/Installing+CiviCRM+for+Backdrop+CMS";
Expand All @@ -255,7 +254,7 @@ function civicrm_initialize() {
)
);

if ($error == FALSE) {
if (!include_once($settingsFile)) {
$failure = TRUE;
backdrop_set_message("<strong><p class='error'>" .
t("Oops! - The CiviCRM settings file (civicrm.settings.php) was not found in the expected location ") .
Expand All @@ -266,8 +265,7 @@ function civicrm_initialize() {
}

// this does pretty much all of the civicrm initialization
$error = include_once ('CRM/Core/Config.php');
if ($error == FALSE) {
if (!include_once('CRM/Core/Config.php')) {
$failure = TRUE;
backdrop_set_message("<strong><p class='error'>" .
t("Oops! - The path for including CiviCRM code files is not set properly. Most likely there is an error in the <em>civicrm_root</em> setting in your CiviCRM settings file (!1).",
Expand Down Expand Up @@ -396,6 +394,7 @@ function _civicrm_registerClassLoader() {
require_once $home . $path;
CRM_Core_ClassLoader::singleton()->register();
}

/**
* Function to get the contact type.
*
Expand Down Expand Up @@ -458,19 +457,14 @@ function civicrm_invoke() {
// synchronize the backdrop uid with the contacts db
global $user;

/*
* FIXME: hack to bypass synchronize if running upgrade to avoid
* any serious non-recoverable error which might hinder the
* upgrade process.
*/

if (!isset($args[1]) ||
$args[1] != 'upgrade'
) {

CRM_Core_BAO_UFMatch::synchronize($user, FALSE, 'Backdrop',
civicrm_get_ctype('Individual')
);
/**
* Bypass synchronize if running upgrade to avoid any serious
* non-recoverable error which might hinder the upgrade process.
*
* @FIXME
*/
if (!isset($args[1]) || $args[1] != 'upgrade') {
CRM_Core_BAO_UFMatch::synchronize($user, FALSE, 'Backdrop', civicrm_get_ctype('Individual'));
}

// Fix the path for the url alias module.
Expand Down
Loading