Skip to content
Snippets Groups Projects
Verified Commit 553d0c2b authored by Kevin Cristiano's avatar Kevin Cristiano :earth_americas:
Browse files

CiviCRM 5.16.2 updates

parent 1d50213b
No related branches found
No related tags found
No related merge requests found
Showing
with 73 additions and 39 deletions
......@@ -2,7 +2,7 @@
/*
Plugin Name: CiviCRM
Description: CiviCRM - Growing and Sustaining Relationships
Version: 5.16.1
Version: 5.16.2
Author: CiviCRM LLC
Author URI: https://civicrm.org/
Plugin URI: https://wiki.civicrm.org/confluence/display/CRMDOC/Installing+CiviCRM+for+WordPress
......
......@@ -54,7 +54,7 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
}
foreach ($wp_roles->role_names as $role => $name) {
// Don't show the permissions options for administrator, as they have all permissions
if ( is_multisite() OR $role !== 'administrator') {
if ($role !== 'administrator') {
$roleObj = $wp_roles->get_role($role);
if (!empty($roleObj->capabilities)) {
foreach ($roleObj->capabilities as $ckey => $cname) {
......
......@@ -49,7 +49,7 @@ class CRM_Financial_BAO_FinancialAccount extends CRM_Financial_DAO_FinancialAcco
*
* @return CRM_Financial_BAO_FinancialAccount
*/
public static function retrieve(&$params, $defaults = []) {
public static function retrieve(&$params, &$defaults = []) {
$financialAccount = new CRM_Financial_DAO_FinancialAccount();
$financialAccount->copyValues($params);
if ($financialAccount->find(TRUE)) {
......
......@@ -155,9 +155,6 @@ class CRM_Report_Form extends CRM_Core_Form {
*/
protected $_groupFilter = FALSE;
// [ML] Required for civiexportexcel
public $supportsExportExcel = TRUE;
/**
* Has the report been optimised for group filtering.
*
......@@ -2845,11 +2842,6 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
$this->_absoluteUrl = TRUE;
$this->addPaging = FALSE;
}
elseif ($this->_outputMode == 'excel2007') {
$printOnly = TRUE;
$this->_absoluteUrl = TRUE;
$this->addPaging = FALSE;
}
elseif ($this->_outputMode == 'group') {
$this->assign('outputMode', 'group');
}
......@@ -3502,9 +3494,6 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
elseif ($this->_outputMode == 'csv') {
CRM_Report_Utils_Report::export2csv($this, $rows);
}
elseif ($this->_outputMode == 'excel2007') {
CRM_CiviExportExcel_Utils_Report::export2excel2007($this, $rows);
}
elseif ($this->_outputMode == 'group') {
$group = $this->_params['groups'];
$this->add2group($group);
......
{* file to handle db changes in 5.16.2 during upgrade *}
......@@ -827,13 +827,11 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
$contactCreated = 0;
$contactMatching = 0;
// previously used $wpdb - which means WordPress *must* be bootstrapped
$wpUsers = get_users(array(
'blog_id' => get_current_blog_id(),
'number' => -1,
));
global $wpdb;
$wpUserIds = $wpdb->get_col("SELECT $wpdb->users.ID FROM $wpdb->users");
foreach ($wpUsers as $wpUserData) {
foreach ($wpUserIds as $wpUserId) {
$wpUserData = get_userdata($wpUserId);
$contactCount++;
if ($match = CRM_Core_BAO_UFMatch::synchronizeUFMatch($wpUserData,
$wpUserData->$id,
......
......@@ -17,6 +17,6 @@
"commit": "44ecf3794cc56b65954cc19737234a3119d036cc"
},
"_source": "https://github.com/components/jqueryui.git",
"_target": "~1.12",
"_target": ">=1.9",
"_originalSource": "jquery-ui"
}
\ No newline at end of file
<?php
/** @deprecated */
function civicrmVersion( ) {
return array( 'version' => '5.16.1',
return array( 'version' => '5.16.2',
'cms' => 'Wordpress',
'revision' => '' );
}
......
......@@ -15,6 +15,15 @@ Other resources for identifying changes are:
* https://github.com/civicrm/civicrm-joomla
* https://github.com/civicrm/civicrm-wordpress
## CiviCRM 5.16.2
Released August 14, 2019
- **[Synopsis](release-notes/5.16.2.md#synopsis)**
- **[Bugs resolved](release-notes/5.16.2.md#bugs)**
- **[Credits](release-notes/5.16.2.md#credits)**
- **[Feedback](release-notes/5.16.2.md#feedback)**
## CiviCRM 5.16.1
Released August 12, 2019
......
# CiviCRM 5.16.2
Released August 14, 2019
- **[Synopsis](#synopsis)**
- **[Bugs resolved](#bugs)**
- **[Credits](#credits)**
- **[Feedback](#feedback)**
## <a name="synopsis"></a>Synopsis
| *Does this version...?* | |
|:--------------------------------------------------------------- |:-------:|
| Fix security vulnerabilities? | no |
| Change the database schema? | no |
| Alter the API? | no |
| Require attention to configuration options? | no |
| Fix problems installing or upgrading to a previous version? | no |
| Introduce features? | no |
| **Fix bugs?** | **yes** |
## <a name="bugs"></a>Bugs resolved
- **_Accounting_: When editing a financial account, form appears blank ([dev/financial#65](https://lab.civicrm.org/dev/financial/issues/65):
[#15037](https://github.com/civicrm/civicrm-core/pull/15037))**
## <a name="credits"></a>Credits
This release was developed by the following authors and reviewers:
Wikimedia Foundation - Eileen McNaughton; Pradeep Nayak; Dave D
## <a name="feedback"></a>Feedback
These release notes are edited by Tim Otten and Andrew Hunt. If you'd like to
provide feedback on them, please login to https://chat.civicrm.org/civicrm and
contact `@agh1`.
......@@ -24049,4 +24049,4 @@ INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Survey Details', 'survey/detail', 'Detailed report for canvassing, phone-banking, walk lists or other surveys.', 'access CiviReport', 'a:39:{s:6:"fields";a:2:{s:9:"sort_name";s:1:"1";s:6:"result";s:1:"1";}s:22:"assignee_contact_id_op";s:2:"eq";s:25:"assignee_contact_id_value";s:0:"";s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:17:"street_number_min";s:0:"";s:17:"street_number_max";s:0:"";s:16:"street_number_op";s:3:"lte";s:19:"street_number_value";s:0:"";s:14:"street_name_op";s:3:"has";s:17:"street_name_value";s:0:"";s:15:"postal_code_min";s:0:"";s:15:"postal_code_max";s:0:"";s:14:"postal_code_op";s:3:"lte";s:17:"postal_code_value";s:0:"";s:7:"city_op";s:3:"has";s:10:"city_value";s:0:"";s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:12:"survey_id_op";s:2:"in";s:15:"survey_id_value";a:0:{}s:12:"status_id_op";s:2:"eq";s:15:"status_id_value";s:1:"1";s:11:"custom_1_op";s:2:"in";s:14:"custom_1_value";a:0:{}s:11:"custom_2_op";s:2:"in";s:14:"custom_2_value";a:0:{}s:17:"custom_3_relative";s:1:"0";s:13:"custom_3_from";s:0:"";s:11:"custom_3_to";s:0:"";s:11:"description";s:75:"Detailed report for canvassing, phone-banking, walk lists or other surveys.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"access CiviReport";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
UPDATE civicrm_domain SET version = '5.16.1';
UPDATE civicrm_domain SET version = '5.16.2';
......@@ -398,7 +398,7 @@ UNLOCK TABLES;
 
LOCK TABLES `civicrm_domain` WRITE;
/*!40000 ALTER TABLE `civicrm_domain` DISABLE KEYS */;
INSERT INTO `civicrm_domain` (`id`, `name`, `description`, `config_backend`, `version`, `contact_id`, `locales`, `locale_custom_strings`) VALUES (1,'Default Domain Name',NULL,NULL,'5.16.1',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}');
INSERT INTO `civicrm_domain` (`id`, `name`, `description`, `config_backend`, `version`, `contact_id`, `locales`, `locale_custom_strings`) VALUES (1,'Default Domain Name',NULL,NULL,'5.16.2',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}');
/*!40000 ALTER TABLE `civicrm_domain` ENABLE KEYS */;
UNLOCK TABLES;
 
......@@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit7bb3c5366400cb99e3cf62594dd04869::getLoader();
return ComposerAutoloaderInit529db1a5f1618ba00f5f8fb5e59be783::getLoader();
......@@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit7bb3c5366400cb99e3cf62594dd04869
class ComposerAutoloaderInit529db1a5f1618ba00f5f8fb5e59be783
{
private static $loader;
......@@ -19,9 +19,9 @@ class ComposerAutoloaderInit7bb3c5366400cb99e3cf62594dd04869
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit7bb3c5366400cb99e3cf62594dd04869', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit529db1a5f1618ba00f5f8fb5e59be783', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit7bb3c5366400cb99e3cf62594dd04869', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit529db1a5f1618ba00f5f8fb5e59be783', 'loadClassLoader'));
$includePaths = require __DIR__ . '/include_paths.php';
$includePaths[] = get_include_path();
......@@ -31,7 +31,7 @@ class ComposerAutoloaderInit7bb3c5366400cb99e3cf62594dd04869
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit7bb3c5366400cb99e3cf62594dd04869::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit529db1a5f1618ba00f5f8fb5e59be783::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
......@@ -52,19 +52,19 @@ class ComposerAutoloaderInit7bb3c5366400cb99e3cf62594dd04869
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit7bb3c5366400cb99e3cf62594dd04869::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit529db1a5f1618ba00f5f8fb5e59be783::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire7bb3c5366400cb99e3cf62594dd04869($fileIdentifier, $file);
composerRequire529db1a5f1618ba00f5f8fb5e59be783($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequire7bb3c5366400cb99e3cf62594dd04869($fileIdentifier, $file)
function composerRequire529db1a5f1618ba00f5f8fb5e59be783($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
......
......@@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit7bb3c5366400cb99e3cf62594dd04869
class ComposerStaticInit529db1a5f1618ba00f5f8fb5e59be783
{
public static $files = array (
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
......@@ -456,11 +456,11 @@ class ComposerStaticInit7bb3c5366400cb99e3cf62594dd04869
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit7bb3c5366400cb99e3cf62594dd04869::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit7bb3c5366400cb99e3cf62594dd04869::$prefixDirsPsr4;
$loader->prefixesPsr0 = ComposerStaticInit7bb3c5366400cb99e3cf62594dd04869::$prefixesPsr0;
$loader->fallbackDirsPsr0 = ComposerStaticInit7bb3c5366400cb99e3cf62594dd04869::$fallbackDirsPsr0;
$loader->classMap = ComposerStaticInit7bb3c5366400cb99e3cf62594dd04869::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit529db1a5f1618ba00f5f8fb5e59be783::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit529db1a5f1618ba00f5f8fb5e59be783::$prefixDirsPsr4;
$loader->prefixesPsr0 = ComposerStaticInit529db1a5f1618ba00f5f8fb5e59be783::$prefixesPsr0;
$loader->fallbackDirsPsr0 = ComposerStaticInit529db1a5f1618ba00f5f8fb5e59be783::$fallbackDirsPsr0;
$loader->classMap = ComposerStaticInit529db1a5f1618ba00f5f8fb5e59be783::$classMap;
}, null, ClassLoader::class);
}
......
<?xml version="1.0" encoding="iso-8859-1" ?>
<version>
<version_no>5.16.1</version_no>
<version_no>5.16.2</version_no>
</version>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment