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

Issue #110 bring up to date with 7.x-master #113

Open
wants to merge 177 commits into
base: 1.x-master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
9a6cd1b
CRM-20541 - Use drupal_static() instead of static
totten May 18, 2017
6e13de4
CRM-19976: Fix for Drush: cannot disable civicrm debug
kainuk Jun 25, 2017
36165b7
CRM-20822 - Expose tag parent id in views
yashodha Jul 6, 2017
9b18bdd
CRM-20822 - Expose tag parent name in views
yashodha Jul 6, 2017
bba4daa
Merge pull request #457 from kainuk/CRM-19976
eileenmcnaughton Jul 10, 2017
f7ed137
Merge pull request #447 from totten/7.x-master-20541
eileenmcnaughton Jul 10, 2017
9e532d5
CRM-20153 show event pages for pcp
deepak-srivastava Jul 13, 2017
cbeb2ac
CRM-20937 - update to most recent templates used in core.
jmcclelland Jul 21, 2017
d74f0ad
Lint civicrm.install
seamuslee001 Jul 29, 2017
6cb5538
Lint civicrm.module
seamuslee001 Jul 29, 2017
428460e
CRM-21016: Allow Drupal views to be used for Notes related to contrib…
monishdeb Aug 7, 2017
f11f79e
Merge pull request #468 from monishdeb/CRM-21016
colemanw Aug 8, 2017
4a368f0
Add Contributions relevant to the Participant record.
JohnFF Aug 10, 2017
42dfc4f
Merge pull request #469 from JohnFF/feature/CRM-21056
eileenmcnaughton Aug 10, 2017
5f74c04
Fixed CRM-20292: removed permission checks for custom data caching in…
JohnFF Aug 27, 2017
91c959c
Lint civicrm.drush.inc
seamuslee001 Aug 27, 2017
329480a
Merge pull request #473 from seamuslee001/civilint_drush
totten Aug 28, 2017
e2056e2
(NFC) Civilint Some views files and HookTest file
seamuslee001 Aug 28, 2017
9896b36
Lint Civitheme module
seamuslee001 Aug 28, 2017
2f7d453
(NFC) Lint civicrm.config.php.drupal
seamuslee001 Aug 28, 2017
7ce0e0a
CiviCRM / Drupal Rules: Show all groups.
xurizaemon Sep 6, 2017
81cca7b
Merge pull request #478 from fuzionnz/CRM-21156-rules_show_all_groups…
colemanw Sep 7, 2017
ffcb8f4
Lint CiviCRM Rules module
seamuslee001 Aug 28, 2017
df9c6c9
NFC Civilint civicrm_group_roles module
seamuslee001 Sep 14, 2017
da4df6a
NFC Civilint civicrm_member_roles
seamuslee001 Sep 14, 2017
f4d0091
NFC Civilint civicrm_contact_ref module
seamuslee001 Sep 14, 2017
03b9583
Merge pull request #481 from seamuslee001/civilint_contact_ref
eileenmcnaughton Sep 15, 2017
3112463
Merge pull request #480 from seamuslee001/civilint_member_roles
eileenmcnaughton Sep 15, 2017
2af105d
Merge pull request #476 from seamuslee001/civilint_views
eileenmcnaughton Sep 15, 2017
cf12296
Merge pull request #474 from seamuslee001/config_lint
totten Sep 15, 2017
b4d00fa
Civilint views components files
seamuslee001 Sep 16, 2017
82f535b
Civilint views plugins files
seamuslee001 Sep 16, 2017
a5da0f1
Civilint civicrm_handler_field_website.inc
seamuslee001 Sep 16, 2017
bab2a09
Run Civilint against first half of civicrm_handler_field files
seamuslee001 Sep 16, 2017
e9656a8
Civilint 2nd half of civicrm_handler_field files
seamuslee001 Sep 16, 2017
8f6c743
Run Civilint against the rest of views_handler and views plugin files
seamuslee001 Sep 16, 2017
fe47de6
Civilint civicrm_og_sync module
seamuslee001 Sep 17, 2017
ba7a36e
Merge pull request #484 from seamuslee001/civilint-field-website-handler
eileenmcnaughton Sep 17, 2017
ba50ea8
Merge pull request #475 from seamuslee001/civitheme_lint
eileenmcnaughton Sep 18, 2017
bb8cc34
Merge pull request #483 from seamuslee001/civilint-views-puglins
eileenmcnaughton Sep 18, 2017
74514dd
Merge pull request #485 from seamuslee001/civilint-handler-part1
eileenmcnaughton Sep 18, 2017
bd996ce
CRM-20592 - remove location options from website field
samuelsov May 17, 2017
7ae87f3
Merge pull request #479 from seamuslee001/civilint_group_roles
totten Sep 18, 2017
175f3c9
Civilint civicrm_user.inc
seamuslee001 Sep 18, 2017
582e4ce
Remove CiviTest.module.sample as been replaced with the CiviCRM Dev Docs
seamuslee001 Sep 18, 2017
5b58c08
Merge pull request #492 from seamuslee001/remove_civitest_sample
eileenmcnaughton Sep 18, 2017
a4d9bee
Merge pull request #477 from seamuslee001/civilint_civicrm_rules
eileenmcnaughton Sep 18, 2017
c28e549
Merge pull request #490 from seamuslee001/civilint_user_inc
eileenmcnaughton Sep 18, 2017
6e5680a
Merge pull request #464 from jmcclelland/CRM-20937
eileenmcnaughton Sep 18, 2017
34af3c3
Merge pull request #489 from seamuslee001/civicrm_og_sync_civilint
eileenmcnaughton Sep 19, 2017
0ea42d0
Run Civilint against civicrm_engage module
seamuslee001 Sep 19, 2017
c0f4e3c
Need to include fields in order by in select distinct to work
beto-aveiga Sep 25, 2017
d35432e
Merge pull request #494 from powdevel/7.x-master
colemanw Oct 9, 2017
e1b64ee
add missing 's' to variable - CRM-19995
olivierh65 Oct 14, 2017
6b2cb45
Merge pull request #500 from olivierh65/7.x-master
colemanw Oct 15, 2017
5491865
Merge pull request #487 from seamuslee001/ciivlint-handler-part3
totten Oct 28, 2017
aa4f702
Merge pull request #493 from seamuslee001/engage_lint
colemanw Oct 29, 2017
39a04b5
Run civilint against civicrm_handler_filter_state_multi.inc
seamuslee001 Sep 16, 2017
6e9ad2a
Cleanup comments and js
colemanw Oct 30, 2017
297de8c
Merge pull request #488 from seamuslee001/state_multi_views_civilint
colemanw Oct 30, 2017
28a05e1
Merge pull request #486 from seamuslee001/civilint-handler-part2
colemanw Oct 30, 2017
e3f1020
Merge pull request #482 from seamuslee001/civilint-views-components
colemanw Oct 30, 2017
801b2a8
CRM-21371 - An api error when calling drush cvapi should be treated a…
eileenmcnaughton Oct 31, 2017
9cba06d
Merge pull request #503 from eileenmcnaughton/7.x-master
mlutfy Oct 31, 2017
57f48ce
Merge pull request #472 from JohnFF/bugfix/CRM-20292
eileenmcnaughton Nov 13, 2017
1631c58
CRM-20783 : Get currency from civi if not included in view fields
Jun 28, 2017
57a37e4
CRM-20734: Populate state if country is selected by default on page load
Nov 21, 2017
8f56584
Merge pull request #506 from jitendrapurohit/CRM-20734
colemanw Nov 21, 2017
4e79359
Merge pull request #446 from samuelsov/CRM-20592
eileenmcnaughton Dec 2, 2017
875cfe7
Merge pull request #463 from deepak-srivastava/CRM-20153
jackrabbithanna Dec 9, 2017
40acc30
Merge pull request #467 from seamuslee001/civilint
jackrabbithanna Dec 9, 2017
0af856a
Merge pull request #458 from jitendrapurohit/CRM-20783
jackrabbithanna Dec 9, 2017
959c038
CRM-21226: Add view filter handler for contact reference custom field
Jan 2, 2018
6c718b1
Update civicrm_handler_field_contact_image.inc
yurg Feb 5, 2018
f951265
Add created_id to Views integration
MegaphoneJon Feb 9, 2018
9ba43b4
crm-16541 Allow extra options to be passed to mysqldump. Include --ro…
herbdool Feb 10, 2018
71121e0
Merge pull request #520 from herbdool/crm16541
jackrabbithanna Feb 10, 2018
670b59c
Merge pull request #519 from MegaphoneJon/event-created-id
jackrabbithanna Feb 10, 2018
eb72b1d
Merge pull request #508 from jitendrapurohit/CRM-21226
jackrabbithanna Feb 10, 2018
9e6db31
Merge pull request #516 from yurg/patch-5
jackrabbithanna Feb 10, 2018
45558c4
Merge pull request #459 from yashodha/CRM-20822
jackrabbithanna Feb 11, 2018
f5af960
header fixes
yashodha Feb 26, 2018
378ece9
Merge pull request #522 from yashodha/header-fix
seamuslee001 Feb 26, 2018
d290be9
Add activity created_date, modified_date and original_id fields to views
mattwire Mar 19, 2018
c388b3a
Fix style warnings
mattwire Mar 19, 2018
1ba183f
Merge pull request #526 from mattwire/style_warnings
jackrabbithanna Mar 19, 2018
a390c12
Merge pull request #525 from mattwire/7.x-activity_fields
jackrabbithanna Mar 21, 2018
14a4ae6
(NFC) Update version in header
totten Apr 19, 2018
30ff917
Merge pull request #530 from totten/7.x-master-header
totten Apr 19, 2018
31108c1
dev/core/#152 - AdvMulti-Select cleanup
colemanw Jun 5, 2018
a6a3276
Merge pull request #531 from colemanw/dev/core/#152
colemanw Jun 6, 2018
184d69f
Fix Views custom field handler not displaying select value labels.
anemirovsky Jun 15, 2018
583ae83
NFC Code style fix
JKingsnorth Jul 23, 2018
1af2682
Merge pull request #532 from giant-rabbit/fix-views-custom-field-handler
eileenmcnaughton Jul 26, 2018
7fcce8b
Drupal Views CiviCRM: Allow Participant record to be used from Event.
JohnFF Aug 12, 2018
80d0f5d
Merge pull request #539 from JohnFF/feature/view_event_participant_re…
colemanw Aug 12, 2018
9567c70
Don't render an empty mailto link for empty email addresses
JKingsnorth Aug 17, 2018
19863d9
PHP 7.1 incompatibility error fix
Aug 31, 2018
216f661
dev/core#381 - Clear session vars while retriving the files with id a…
Sep 11, 2018
2ee7538
dev/drupal#31 - CiviMember Role sync is no longer syncing Pending mem…
Sep 27, 2018
be2b599
Add a drush command to rebuild SQL triggers
ejegg Oct 5, 2018
d4d2509
Merge pull request #545 from ejegg/7.x-master
eileenmcnaughton Oct 9, 2018
fabd188
CRM-20298: Money fields will display filters appropriate for dealing …
universalhandle Mar 17, 2017
73333cd
Merge pull request #435 from GinkgoFJG/CRM-20298-views-money
seamuslee001 Oct 9, 2018
a114788
civicrm_handler_field_link_pcp: avoid PHP notice
mlutfy Oct 26, 2018
7312b11
Merge pull request #537 from JKingsnorth/code-style-fix
mlutfy Oct 26, 2018
b8f1b15
Merge pull request #547 from mlutfy/fix-pcp-notice
seamuslee001 Oct 26, 2018
8cef9f7
CRM-17667 Drush process mail queue (7.x)
JKingsnorth Oct 29, 2018
b2d1cf9
Merge pull request #354 from JKingsnorth/CRM-17667
mlutfy Oct 29, 2018
91d9321
CIVICRM-984: Make "Add CiviCRM Tag to Contact" action list tags, not …
agileware-fj Oct 29, 2018
5b00ee9
CIVICRM-984: Update indentation and spacing from feedback.
agileware-fj Nov 9, 2018
eaa467f
Merge pull request #543 from jitendrapurohit/dev-31
eileenmcnaughton Nov 11, 2018
13c4937
CIVICRM-984: Satisfy Checkstyle CommaLastItem warnings.
agileware-fj Nov 11, 2018
5969a58
Make address Supplemental line 3 available to views
aydun Dec 4, 2018
e087756
set proper path for civicrm.settings.php when civicrm under profiles/…
sluc23 Dec 11, 2018
d1e4e77
Update Copywrite header to change to 2019
seamuslee001 Dec 13, 2018
c5d1e9b
Merge pull request #553 from seamuslee001/copywrite_header_update
seamuslee001 Dec 13, 2018
25976fc
Merge pull request #555 from civicrm/7.x-5.9
eileenmcnaughton Dec 13, 2018
5be627f
Merge pull request #541 from tmannell/7.x-master
eileenmcnaughton Jan 7, 2019
52bb0cf
Merge pull request #542 from jitendrapurohit/drupal-381
colemanw Jan 12, 2019
a94c7c4
PHP 7.1 incompatibility error fix
Aug 31, 2018
38cee49
Merge pull request #551 from aydun/7.x-master
mlutfy Feb 15, 2019
b823e97
Merge pull request #561 from mlutfy/7.x-5.10-edit
eileenmcnaughton Feb 15, 2019
6d4d172
Merge pull request #562 from civicrm/7.x-5.11
eileenmcnaughton Feb 15, 2019
589f525
security/core#26 Add File Hash checing for file urls generated in Dru…
seamuslee001 Jan 22, 2019
743cc6e
Update the civicrm_handler_field_file to be about non custom fields a…
seamuslee001 Feb 16, 2019
a9f68e8
Merge pull request #565 from seamuslee001/7.x-5.11
totten Mar 6, 2019
3e8fb43
Merge pull request #1 from civicrm/1.x-master
herbdool Mar 11, 2019
eb3ef97
Bump php version to match core requirements
colemanw Apr 2, 2019
d1d2fed
Update 7.x Drupal code to be that of the new coder style
seamuslee001 Apr 11, 2019
b8c0944
Merge pull request #571 from seamuslee001/new_coder_style
totten Apr 11, 2019
c61e965
Enable contribution views to filter on empty Receipt and Thank You dates
aydun Apr 11, 2019
6f2d4bc
Merge pull request #572 from civicrm/7.x-5.13
seamuslee001 Apr 11, 2019
ee5ffc4
Lint .inc files in Drupal module folder to match newer coder standard
seamuslee001 Apr 11, 2019
9b3d58e
(NFC) Get phpcs to ignore the use of eval in this file as it is required
seamuslee001 Apr 11, 2019
20afb91
Merge pull request #575 from seamuslee001/ignore_eval
seamuslee001 Apr 11, 2019
257db9f
Merge pull request #574 from seamuslee001/lint_inc
seamuslee001 Apr 11, 2019
fa3eb4a
(NFC) Update for compliance with next phpcs standard
totten Apr 12, 2019
d7c3e21
Merge pull request #577 from totten/7.x-5.13-phpcs
totten Apr 12, 2019
cc74273
Merge pull request #576 from civicrm/7.x-5.13
seamuslee001 Apr 12, 2019
5459700
Issue 48: make it next_sched_contribution_date
herbdool Apr 22, 2019
def8862
Merge pull request #578 from herbdool/issue-48
seamuslee001 Apr 22, 2019
b5e3b8b
CRM-20006 Standard groups relationships in views
seamuslee001 Dec 2, 2017
6fa55b7
Include new CiviCRM Group title field in filters
seamuslee001 Feb 10, 2018
6b655dd
Merge pull request #540 from JKingsnorth/patch-3
seamuslee001 Apr 22, 2019
534c7a6
Merge pull request #573 from aydun/empty_dates
seamuslee001 Apr 22, 2019
3bd0ba5
Merge pull request #567 from civicrm/phpver
seamuslee001 Apr 22, 2019
c0901e6
Merge pull request #507 from seamuslee001/CRM-20006
eileenmcnaughton Apr 22, 2019
e622e07
Update civicrmtheme module to use new isFrontEndPage function on user…
seamuslee001 Jul 25, 2019
aa79d8e
Merge pull request #581 from seamuslee001/feature/frontpage_function
eileenmcnaughton Jul 25, 2019
47582b7
providing clear indication that module is deprecated.
jmcclelland Jul 26, 2019
509fec7
Merge pull request #552 from ixiam/dev-profiles_path
mlutfy Jul 31, 2019
1b62302
(dev/drupal#79) Fail more gracefully when upgrading on PHP 5.x
totten Aug 20, 2019
99717ac
Merge pull request #583 from totten/7.x-5.17-php-min
totten Aug 21, 2019
f115bb4
Merge pull request #582 from jmcclelland/issue59
eileenmcnaughton Aug 23, 2019
df19971
Update copyright date for 2020
seamuslee001 Nov 7, 2019
47dfe10
Merge pull request #585 from seamuslee001/copywrite_date_update
seamuslee001 Nov 7, 2019
56dae36
(NFC) (dev/core#878) Simplify copyright header
totten Nov 14, 2019
7b0de1c
Merge pull request #587 from totten/7.x-simplehead
totten Nov 14, 2019
0aa9435
Add participant is_test field to views
magnolia61 Nov 22, 2019
7a2a4aa
Merge pull request #590 from magnolia61/7.x-master
seamuslee001 Nov 22, 2019
340062c
Merge branch '1.x-master' of github.com:herbdool/civicrm-backdrop int…
herbdool Dec 15, 2019
436f185
Merge remote-tracking branch 'civicrm-backdrop/1.x-master' into 1.x-m…
herbdool Dec 15, 2019
fe03528
Merge pull request #591 from civicrm/7.x-5.17
seamuslee001 Dec 16, 2019
60acc51
Merge pull request #592 from civicrm/7.x-5.20
seamuslee001 Dec 16, 2019
a5dc42a
Merge pull request #593 from civicrm/7.x-5.21
seamuslee001 Dec 16, 2019
4c62253
Update unit tests to use name spaced format of phpunit test classes f…
seamuslee001 Dec 17, 2019
65c51de
Merge pull request #594 from seamuslee001/7.x-master
totten Dec 17, 2019
33d24b3
Fix 404 wiki link
demeritcowboy Jan 6, 2020
938b801
Merge pull request #595 from demeritcowboy/og-sync-wiki-link
seamuslee001 Jan 6, 2020
b49cc1e
[NFC] Doc Block fix should be bool no boolean as per coding standards
seamuslee001 Jan 26, 2020
e9be6c1
Merge pull request #596 from seamuslee001/7.x-master
totten Jan 26, 2020
f723bb1
Merge pull request #549 from agileware/CIVICRM-984
mattwire Feb 11, 2020
d47225d
Merge pull request #2 from civicrm/1.x-master
herbdool Mar 4, 2020
28e2d02
Merge branch '1.x-master' of github.com:herbdool/civicrm-backdrop int…
herbdool Mar 4, 2020
f00cbc5
Issue #110: bring up to date with 7.x-master
herbdool Mar 4, 2020
d13b084
change some drupals to backdrops that were missed
herbdool Mar 6, 2020
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
33 changes: 19 additions & 14 deletions civicrm.module
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ define('CIVICRM_UF_HEAD', TRUE);
* on PHP 5.x.)
*
* @see CRM_Upgrade_Form::MINIMUM_PHP_VERSION
* @see CiviDrupal\PhpVersionTest::testConstantMatch()
* @see CiviBackdrop\PhpVersionTest::testConstantMatch()
*/
define('CIVICRM_DRUPAL_PHP_MINIMUM', '7.0.0');
define('CIVICRM_BACKDROP_PHP_MINIMUM', '7.0.0');

/**
* Adds CiviCRM CSS and JS resources into the header.
Expand Down Expand Up @@ -163,7 +163,7 @@ function civicrm_menu_alter(&$items) {
* Display profile form in tabs on user account
*/
function civicrm_profile_form($form, &$form_state, $account, $profile_name) {
$output = civicrm_form_data($account, $profile_name, TRUE);
$output = civicrm_form_data($form, $account, $profile_name, TRUE);
if (!empty($output)) {
$form['#attributes']['enctype'] = 'multipart/form-data';
$form = array_merge($form, $output);
Expand Down Expand Up @@ -229,8 +229,8 @@ function civicrm_profile_form_validate($form, &$form_state) {
*/
function civicrm_initialize() {
// Check for php version and ensure its greater than minPhpVersion
if (version_compare(PHP_VERSION, CIVICRM_DRUPAL_PHP_MINIMUM) < 0) {
echo "CiviCRM requires PHP " . CIVICRM_DRUPAL_PHP_MINIMUM . "+. The web server is running PHP " . PHP_VERSION . ".<p>";
if (version_compare(PHP_VERSION, CIVICRM_BACKDROP_PHP_MINIMUM) < 0) {
echo "CiviCRM requires PHP " . CIVICRM_BACKDROP_PHP_MINIMUM . "+. The web server is running PHP " . PHP_VERSION . ".<p>";
exit();
}
_civicrm_registerClassLoader();
Expand Down Expand Up @@ -601,7 +601,7 @@ function civicrm_user_form_validate($form, &$form_state) {
// lets suppress key generation for all validation also
civicrm_key_disable();

static $validated = FALSE;
$validated = &backdrop_static(__FUNCTION__, FALSE);

if ($validated) {
return;
Expand All @@ -610,10 +610,9 @@ function civicrm_user_form_validate($form, &$form_state) {
$validated = TRUE;

// check for either user/register or admin/people/create
$register
= ((arg(0) == 'user' && arg(1) == 'register') ||
(arg(0) == 'admin' && arg(1) == 'people' && arg(2) == 'create')
) ? TRUE : FALSE;
$register = ((arg(0) == 'user' && arg(1) == 'register') ||
(arg(0) == 'admin' && arg(1) == 'people' && arg(2) == 'create')
) ? TRUE : FALSE;
$userID = NULL;
if (!empty($form['#user'])) {
$userID = CRM_Core_BAO_UFMatch::getContactId($form['#user']->uid);
Expand All @@ -631,14 +630,16 @@ function civicrm_user_form_validate($form, &$form_state) {
/**
* Retrieve the CiviCRM profile forms
*
* @param $edit
* Form array.
* @param $account
* @param $profile
* @param $reset
* @param $doNotProcess
*
* @return array $output
*/
function civicrm_form_data($account, $profile, $reset, $doNotProcess = FALSE) {
function civicrm_form_data($edit, $account, $profile, $reset, $doNotProcess = FALSE) {
// lets suppress key generation for all CMS forms
civicrm_key_disable();

Expand Down Expand Up @@ -667,10 +668,10 @@ function civicrm_form_data($account, $profile, $reset, $doNotProcess = FALSE) {
// do not allow edit for anon users in joomla frontend, CRM-4668, unless u have checksum CRM-5228
$config = CRM_Core_Config::singleton();
if ($config->userFrameworkFrontend) {
CRM_Contact_BAO_Contact_Permission::validateOnlyChecksum($userID, $this);
CRM_Contact_BAO_Contact_Permission::validateOnlyChecksum($userID, $edit);
}
else {
CRM_Contact_BAO_Contact_Permission::validateChecksumContact($userID, $this);
CRM_Contact_BAO_Contact_Permission::validateChecksumContact($userID, $edit);
}
}
$ctype = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $userID, 'contact_type');
Expand Down Expand Up @@ -873,6 +874,7 @@ function civicrm_autoload_info() {
'civicrm_handler_filter_datetime' => 'modules/views/civicrm/civicrm_handler_filter_datetime.inc',
'civicrm_handler_filter_domain' => 'modules/views/civicrm/civicrm_handler_filter_domain.inc',
'civicrm_handler_filter_encounter_medium' => 'modules/views/civicrm/civicrm_handler_filter_encounter_medium.inc',
'civicrm_handler_filter_group_name' => 'modules/views/civicrm/civicrm_handler_filter_group_name.inc',
'civicrm_handler_filter_group_status' => 'modules/views/civicrm/civicrm_handler_filter_group_status.inc',
'civicrm_handler_filter_option' => 'modules/views/civicrm/civicrm_handler_filter_option.inc',
'civicrm_handler_filter_pseudo_constant' => 'modules/views/civicrm/civicrm_handler_filter_pseudo_constant.inc',
Expand All @@ -884,14 +886,17 @@ function civicrm_autoload_info() {
'civicrm_handler_relationship' => 'modules/views/civicrm/civicrm_handler_relationship.inc',
'civicrm_handler_relationship_address' => 'modules/views/civicrm/civicrm_handler_relationship_address.inc',
'civicrm_handler_relationship_contact2users' => 'modules/views/civicrm/civicrm_handler_relationship_contact2users.inc',
'civicrm_handler_relationship_group' => 'modules/views/civicrm/civicrm_handler_relationship_group.inc',
'civicrm_handler_relationship_im' => 'modules/views/civicrm/civicrm_handler_relationship_im.inc',
'civicrm_handler_relationship_location' => 'modules/views/civicrm/civicrm_handler_relationship_location.inc',
'civicrm_handler_relationship_mail' => 'modules/views/civicrm/civicrm_handler_relationship_mail.inc',
'civicrm_handler_relationship_memberships_contributions' => 'modules/views/civicrm/civicrm_handler_relationship_memberships_contributions.inc',
'civicrm_handler_relationship_participant' => 'modules/views/civicrm/civicrm_handler_relationship_participant.inc',
'civicrm_handler_relationship_phone' => 'modules/views/civicrm/civicrm_handler_relationship_phone.inc',
'civicrm_handler_relationship_relationship' => 'modules/views/civicrm/civicrm_handler_relationship_relationship.inc',
'civicrm_handler_relationship_standard_group_contact' => 'modules/views/civicrm/civicrm_handler_relationship_standard_group_contact.inc',
'civicrm_handler_relationship_standard_group' => 'modules/views/civicrm/civicrm_handler_relationship_standard_group.inc',
'civicrm_handler_relationship_website' => 'modules/views/civicrm/civicrm_handler_relationship_website.inc',
'civicrm_handler_relationship_participant' => 'modules/views/civicrm/civicrm_handler_relationship_participant.inc',

// sort handlers
'civicrm_handler_sort_address_pseudoconstant' => 'modules/views/civicrm/civicrm_handler_sort_address_pseudoconstant.inc',
Expand Down
4 changes: 2 additions & 2 deletions drush/civicrm.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1426,10 +1426,10 @@ function _civicrm_init($fail = TRUE, $load_config = TRUE) {
return $init;
}

if (!version_compare(phpversion(), CIVICRM_DRUPAL_PHP_MINIMUM, '>=')) {
if (!version_compare(phpversion(), CIVICRM_BACKDROP_PHP_MINIMUM, '>=')) {
return drush_set_error('CIVICRM_PHP_MINIMUM', dt('CiviCRM requires PHP @required+. Drush is running PHP @current.', [
'@current' => phpversion(),
'@required' => CIVICRM_DRUPAL_PHP_MINIMUM,
'@required' => CIVICRM_BACKDROP_PHP_MINIMUM,
]));
}

Expand Down
13 changes: 7 additions & 6 deletions modules/civicrm_engage/Engage/Report/Form/List.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* @package CRM
* @copyright CiviCRM LLC https://civicrm.org/licensing
* @copyright DharmaTech (c) 2009
* $Id$
*
*/
Expand All @@ -36,39 +37,39 @@ class Engage_Report_Form_List extends CRM_Report_Form {

/**
* Address information needed in output
* @var boolean
* @var bool
*/
protected $_addressField = FALSE;

/**
* Email address needed in output
* @var boolean
* @var bool
*/
protected $_emailField = FALSE;

/**
* Demographic information needed in output
* @var boolean
* @var bool
*/
protected $_demoField = FALSE;

protected $_coreField = FALSE;

/**
* Phone number needed in output
* @var boolean
* @var bool
*/
protected $_phoneField = FALSE;

/**
* Group membership information needed in output
* @var boolean
* @var bool
*/
protected $_groupField = FALSE;

/**
* Voter Info information needed in output
* @var boolean
* @var bool
*/
protected $_voterInfoField = FALSE;

Expand Down
2 changes: 1 addition & 1 deletion modules/civicrm_engage/civicrm_engage.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = CiviEngage
description = Walklist and Phone-banking support for CiviCRM.
description = DEPRECATED Walklist and Phone-banking support for CiviCRM. Please see: https://civicrm.org/blog/jamie/civicrmengage-is-dead-long-live-civicrmengage
version = 1.x-4.7
backdrop = 1.x
type = module
Expand Down
4 changes: 2 additions & 2 deletions modules/civicrm_group_roles/civicrm_group_roles.module
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,9 @@ function civicrm_group_roles_add_remove_groups($account, $roles, $op) {
//end if contact_id

else {
watchdog('civicrm_group_roles', 'CiviCRM contact not found for Backdrop user ID @id', array('@id' => $user->uid), WATCHDOG_ERROR);
watchdog('civicrm_group_roles', 'CiviCRM contact not found for Backdrop user ID @id', array('@id' => $account->uid), WATCHDOG_ERROR);
if ($debug_mode) {
backdrop_set_message(t('CiviCRM contact not found for Backdrop user ID @id', array('@id' => $user->uid)));
backdrop_set_message(t('CiviCRM contact not found for Backdrop user ID @id', array('@id' => $account->uid)));
}
}

Expand Down
21 changes: 21 additions & 0 deletions modules/civicrm_rules/civicrm_rules.contact-eval.inc
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,24 @@ function civicrm_rules_options_list() {
$settings['groups'] = _civicrm_get_groups();
return $settings;
}

/**
* Options list callback for listing of CiviCRM Tags
*/
function civicrm_rules_tags_list() {
if (!civicrm_initialize()) {
return array();
}
$result = civicrm_api3('tag', 'get', array(
'used_for' => 'civicrm_contact',
'options' => array(
'limit' => 0,
'sort' => 'name ASC',
),
));
$values = array();
foreach ($result['values'] as $tag) {
$values[$tag['id']] = $tag['name'];
}
return $values;
}
2 changes: 1 addition & 1 deletion modules/civicrm_rules/civicrm_rules_action.inc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The content of the email is:
'civicrm_tags' => array(
'type' => 'list<integer>',
'label' => t('CiviCRM Tags'),
'options list' => 'civicrm_rules_options_list',
'options list' => 'civicrm_rules_tags_list',
),
),
'group' => t('CiviCRM Contact'),
Expand Down
9 changes: 1 addition & 8 deletions modules/civicrmtheme/civicrmtheme.module
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,10 @@ function civicrmtheme_custom_theme() {
return;
}

// Get the menu items.
$args = explode('?', $_GET['q']);
$path = $args[0];

// Get the menu for above URL.
$item = CRM_Core_Menu::get($path);

// Check for public pages
// If public page and civicrm public theme is set, apply civicrm public theme
// If user does not have access to CiviCRM use the public page for the error message
if (!user_access('access CiviCRM') || CRM_Utils_Array::value('is_public', $item)) {
if (!user_access('access CiviCRM') || CRM_Core_Config::singleton()->userSystem->isFrontEndPage()) {
if ($public_theme) {
return $public_theme;
}
Expand Down
13 changes: 13 additions & 0 deletions modules/views/civicrm.views.inc
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,19 @@ function civicrm_views_custom_data_cache(&$data, $entity_type, $group_id, $sub_t
'field' => 'entity_id',
);
}

// Expose group custom data to group relationship.
if ($join_table == 'civicrm_group') {
$data[$current_group['table_name']]['table']['join']['civicrm_group'] = array(
'left_field' => 'id',
'field' => 'entity_id',
);
$data[$current_group['table_name']]['table']['join']['civicrm_group_contact'] = array(
'left_table' => $join_table,
'left_field' => 'id',
'field' => 'entity_id',
);
}
}

foreach ($current_group['fields'] as $key => $current_field) {
Expand Down
3 changes: 1 addition & 2 deletions modules/views/civicrm/civicrm_handler_field_activity.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
* @ingroup civicrm_field_handlers
*/
class civicrm_handler_field_activity extends civicrm_handler_field {

static $_recordType;
public static $_recordType;

public function construct() {
parent::construct();
Expand Down
5 changes: 2 additions & 3 deletions modules/views/civicrm/civicrm_handler_field_country.inc
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
*
*/
class civicrm_handler_field_country extends civicrm_handler_field_address {

static $_countries;
static $_countries_full;
public static $_countries;
public static $_countries_full;

public function construct() {
parent::construct();
Expand Down
3 changes: 1 addition & 2 deletions modules/views/civicrm/civicrm_handler_field_county.inc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
*
*/
class civicrm_handler_field_county extends civicrm_handler_field_address {

static $_counties;
public static $_counties;

public function construct() {
parent::construct();
Expand Down
2 changes: 1 addition & 1 deletion modules/views/civicrm/civicrm_handler_field_email.inc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class civicrm_handler_field_email extends civicrm_handler_field_location {
}

public function render($values) {
if ($this->options['link_to_user'] == 'mailto') {
if ($this->options['link_to_user'] == 'mailto' && !empty($values->{$this->field_alias})) {
return l($values->{$this->field_alias}, "mailto:" . $values->{$this->field_alias});
}
return check_plain($values->{$this->field_alias});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
*
*/
class civicrm_handler_field_encounter_medium extends views_handler_field {

static $_encounter_medium;
public static $_encounter_medium;

public function construct() {
parent::construct();
Expand Down
5 changes: 5 additions & 0 deletions modules/views/civicrm/civicrm_handler_field_file.inc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ class civicrm_handler_field_file extends views_handler_field {

$path = sprintf('%s/imagefile', $path);
}
//Reset session params as we send only id and eid to retrieve the file.
$file = new CRM_Core_Page_File();
$file->set('filename', NULL);
$file->set('mime-type', NULL);

$fileHash = CRM_Core_BAO_File::generateFileHash($value, $fileId);
return CRM_Utils_System::url($path,
"id={$fileId}&eid={$value}&fcs={$fileHash}",
Expand Down
3 changes: 1 addition & 2 deletions modules/views/civicrm/civicrm_handler_field_option.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
* @ingroup civicrm_field_handlers
*/
class civicrm_handler_field_option extends civicrm_handler_field {

static $_options;
public static $_options;

public function render($values) {
$this->initialize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
*
*/
class civicrm_handler_field_relationship_type extends views_handler_field {

static $_relationshipType;
public static $_relationshipType;

public function construct() {
parent::construct();
Expand Down
5 changes: 2 additions & 3 deletions modules/views/civicrm/civicrm_handler_field_state.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@
* @ingroup civicrm_field_handlers
*/
class civicrm_handler_field_state extends civicrm_handler_field_address {

static $_states;
static $_states_full;
public static $_states;
public static $_states_full;

public function construct() {
parent::construct();
Expand Down
3 changes: 1 addition & 2 deletions modules/views/civicrm/civicrm_handler_field_website.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
* @ingroup civicrm_field_handlers
*/
class civicrm_handler_field_website extends civicrm_handler_field {

static $_websiteType;
public static $_websiteType;

public function construct() {
parent::construct();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
*
*/
class civicrm_handler_filter_encounter_medium extends views_handler_filter_in_operator {

static $_encounter_medium;
public static $_encounter_medium;

public function construct() {
parent::construct();
Expand Down
Loading