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

civicrm release-5.81.2

parent d4fc87ab
No related branches found
No related tags found
No related merge requests found
Showing with 62 additions and 16 deletions
......@@ -2,7 +2,7 @@
/**
* Plugin Name: CiviCRM
* Description: CiviCRM - Growing and Sustaining Relationships
* Version: 5.81.1
* Version: 5.81.2
* Requires at least: 4.9
* Requires PHP: 7.4
* Author: CiviCRM LLC
......@@ -36,7 +36,7 @@ if (!defined('ABSPATH')) {
}
// Set version here: changing it forces Javascript and CSS to reload.
define('CIVICRM_PLUGIN_VERSION', '5.81.1');
define('CIVICRM_PLUGIN_VERSION', '5.81.2');
// Store reference to this file.
if (!defined('CIVICRM_PLUGIN_FILE')) {
......
......@@ -959,7 +959,7 @@ LIMIT 1
// Retrieve custom values for cases.
$customValues = CRM_Core_BAO_CustomValueTable::getEntityValues($caseID, 'Case');
$groupTree = CRM_Core_BAO_CustomGroup::getAll(['extends' => ['Case']]);
$groupTree = CRM_Core_BAO_CustomGroup::getAll(['extends' => ['Case'], 'is_active' => TRUE]);
$caseCustomFields = [];
foreach ($groupTree as $gid => $group_values) {
foreach ($group_values['fields'] as $id => $field_values) {
......
......@@ -81,7 +81,7 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search {
];
//check if there are any custom data searchable fields
$groupDetails = CRM_Core_BAO_CustomGroup::getAll(['extends' => 'Contact']);
$groupDetails = CRM_Core_BAO_CustomGroup::getAll(['extends' => 'Contact', 'is_active' => TRUE]);
// if no searchable fields unset panel
if (empty($groupDetails)) {
unset($paneNames[ts('Custom Fields')]);
......
......@@ -603,7 +603,7 @@ class CRM_Contact_Form_Search_Criteria {
*/
public static function custom(&$form) {
$form->add('hidden', 'hidden_custom', 1);
$groupDetails = CRM_Core_BAO_CustomGroup::getAll(['extends' => 'Contact']);
$groupDetails = CRM_Core_BAO_CustomGroup::getAll(['extends' => 'Contact', 'is_active' => TRUE]);
$form->assign('groupTree', $groupDetails);
foreach ($groupDetails as $key => $group) {
......
......@@ -634,7 +634,7 @@ LEFT JOIN civicrm_membership_payment mp ON ( mp.contribution_id = con.id )
}
// copy custom data
$groupTree = CRM_Core_BAO_CustomGroup::getAll(['extends' => ['Contribution']]);
$groupTree = CRM_Core_BAO_CustomGroup::getAll(['extends' => ['Contribution'], 'is_active' => TRUE]);
if ($groupTree) {
foreach ($groupTree as $groupID => $group) {
$table[$groupTree[$groupID]['table_name']] = ['entity_id'];
......
......@@ -21,7 +21,7 @@ class CRM_Core_BAO_Query {
* @param array $extends
*/
public static function addCustomFormFields(&$form, $extends) {
$groupDetails = CRM_Core_BAO_CustomGroup::getAll(['extends' => $extends]);
$groupDetails = CRM_Core_BAO_CustomGroup::getAll(['extends' => $extends, 'is_active' => TRUE]);
if ($groupDetails) {
foreach ($groupDetails as $group) {
if (empty($group['fields'])) {
......
......@@ -176,7 +176,7 @@ class CRM_Event_BAO_Event extends CRM_Event_DAO_Event implements \Civi\Core\Hook
*/
public static function self_hook_civicrm_pre(\Civi\Core\Event\PreEvent $event) {
if ($event->action === 'delete' && $event->id) {
$groupTree = CRM_Core_BAO_CustomGroup::getAll(['extends' => ['Event']]);
$groupTree = CRM_Core_BAO_CustomGroup::getAll(['extends' => ['Event'], 'is_active' => TRUE]);
// @todo is this custom field loop necessary? The cascade delete on the
// db foreign key should do it already.
foreach ($groupTree as $values) {
......
<?php
/** @deprecated */
function civicrmVersion( ) {
return array( 'version' => '5.81.1',
return array( 'version' => '5.81.2',
'cms' => 'Wordpress',
'revision' => '' );
}
......
"5.81.1"
"5.81.2"
......@@ -15,6 +15,15 @@ Other resources for identifying changes are:
* https://github.com/civicrm/civicrm-joomla
* https://github.com/civicrm/civicrm-wordpress
## CiviCRM 5.81.2
Released February 5, 2025
- **[Synopsis](release-notes/5.81.2.md#synopsis)**
- **[Bugs resolved](release-notes/5.81.2.md#bugs)**
- **[Credits](release-notes/5.81.2.md#credits)**
- **[Feedback](release-notes/5.81.2.md#feedback)**
## CiviCRM 5.81.1
Released January 21, 2025
......
# CiviCRM 5.81.2
Released February 5, 2025
- **[Synopsis](#synopsis)**
- **[Bugs resolved](#bugs)**
- **[Credits](#credits)**
- **[Feedback](#feedback)**
## <a name="synopsis"></a>Synopsis
| *Does this version...?* | |
| --------------------------------------------------------------- | -------- |
| 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** |
| Fix security vulnerabilities? | no |
## <a name="bugs"></a>Bugs resolved
* **_Search Kit_: Disabled custom data-groups are not removed from searches ([dev/core#5698](https://lab.civicrm.org/dev/core/-/issues/5698): [#31862](https://github.com/civicrm/civicrm-core/pull/31862))**
* **_Testing_: Remove misleading test ([#31870](https://github.com/civicrm/civicrm-core/pull/31870))**
## <a name="credits"></a>Credits
This release was developed by the following authors and reviewers:
se_nate; Dave D; CiviCRM - Coleman Watts, Tim Otten
## <a name="feedback"></a>Feedback
These release notes are edited by Tim Otten and Andie Hunt. If you'd like to
provide feedback on them, please login to https://chat.civicrm.org/civicrm and
contact `@agh1`.
......@@ -2969,7 +2969,7 @@ UNLOCK TABLES;
LOCK TABLES `civicrm_domain` WRITE;
/*!40000 ALTER TABLE `civicrm_domain` DISABLE KEYS */;
INSERT INTO `civicrm_domain` (`id`, `name`, `description`, `version`, `contact_id`, `locales`, `locale_custom_strings`) VALUES
(1,'Default Domain Name',NULL,'5.81.1',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}');
(1,'Default Domain Name',NULL,'5.81.2',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}');
/*!40000 ALTER TABLE `civicrm_domain` ENABLE KEYS */;
UNLOCK TABLES;
 
......@@ -8,7 +8,6 @@
+--------------------------------------------------------------------+
*}
{include file="CRM/common/pager.tpl" location="top"}
{include file="CRM/common/pagerAToZ.tpl"}
<table summary="{ts}Search results listings.{/ts}" class="selector row-highlight">
<thead class="sticky">
<tr>
......@@ -120,6 +119,7 @@
{/foreach}
{/if}
</table>
{include file="CRM/common/pagerAToZ.tpl"}
{include file="CRM/common/pager.tpl" location="bottom"}
<script type="text/javascript">
{literal}
......
......@@ -3,7 +3,7 @@
'name' => 'civicrm/civicrm-core',
'pretty_version' => '5.81.x-dev',
'version' => '5.81.9999999.9999999-dev',
'reference' => 'a2f28b9a63ac65eea050cdfad3937093aa5cd4ea',
'reference' => '544a78542907f651c7694c6791c547a8b275ccf1',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
......@@ -49,7 +49,7 @@
'civicrm/civicrm-core' => array(
'pretty_version' => '5.81.x-dev',
'version' => '5.81.9999999.9999999-dev',
'reference' => 'a2f28b9a63ac65eea050cdfad3937093aa5cd4ea',
'reference' => '544a78542907f651c7694c6791c547a8b275ccf1',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
......
<?xml version="1.0" encoding="iso-8859-1"?>
<version>
<version_no>5.81.1</version_no>
<releaseDate>2025-01-21</releaseDate>
<version_no>5.81.2</version_no>
<releaseDate>2025-02-06</releaseDate>
</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