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

civicrm release-5.50.2

parent 83f4fcc9
No related branches found
No related tags found
No related merge requests found
Showing
with 43 additions and 28 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/** /**
* Plugin Name: CiviCRM * Plugin Name: CiviCRM
* Description: CiviCRM - Growing and Sustaining Relationships * Description: CiviCRM - Growing and Sustaining Relationships
* Version: 5.50.1 * Version: 5.50.2
* Requires at least: 4.9 * Requires at least: 4.9
* Requires PHP: 7.2 * Requires PHP: 7.2
* Author: CiviCRM LLC * Author: CiviCRM LLC
...@@ -36,7 +36,7 @@ if (!defined('ABSPATH')) { ...@@ -36,7 +36,7 @@ if (!defined('ABSPATH')) {
} }
// Set version here: changing it forces Javascript and CSS to reload. // Set version here: changing it forces Javascript and CSS to reload.
define('CIVICRM_PLUGIN_VERSION', '5.50.1'); define('CIVICRM_PLUGIN_VERSION', '5.50.2');
// Store reference to this file. // Store reference to this file.
if (!defined('CIVICRM_PLUGIN_FILE')) { if (!defined('CIVICRM_PLUGIN_FILE')) {
......
...@@ -26,6 +26,7 @@ class CRM_Batch_BAO_EntityBatch extends CRM_Batch_DAO_EntityBatch { ...@@ -26,6 +26,7 @@ class CRM_Batch_BAO_EntityBatch extends CRM_Batch_DAO_EntityBatch {
// Only write the EntityBatch record if the financial trxn and batch match on currency and payment instrument. // Only write the EntityBatch record if the financial trxn and batch match on currency and payment instrument.
$batchId = $params['batch_id'] ?? NULL; $batchId = $params['batch_id'] ?? NULL;
$entityId = $params['entity_id'] ?? NULL; $entityId = $params['entity_id'] ?? NULL;
$entityTable = $params['entity_table'] ?? 'civicrm_financial_trxn';
// Not having a batch ID and entity ID is only acceptable on an update. // Not having a batch ID and entity ID is only acceptable on an update.
if (!$batchId) { if (!$batchId) {
$existingEntityBatch = \Civi\Api4\EntityBatch::get(FALSE) $existingEntityBatch = \Civi\Api4\EntityBatch::get(FALSE)
...@@ -36,7 +37,7 @@ class CRM_Batch_BAO_EntityBatch extends CRM_Batch_DAO_EntityBatch { ...@@ -36,7 +37,7 @@ class CRM_Batch_BAO_EntityBatch extends CRM_Batch_DAO_EntityBatch {
$entityId = $existingEntityBatch['entity_id'] ?? NULL; $entityId = $existingEntityBatch['entity_id'] ?? NULL;
} }
// There should never be a legitimate case where a record has an ID but no batch ID but SyntaxConformanceTest says otherwise. // There should never be a legitimate case where a record has an ID but no batch ID but SyntaxConformanceTest says otherwise.
if ($batchId) { if ($batchId && $entityTable === 'civicrm_financial_trxn') {
$batchCurrency = self::getBatchCurrency($batchId); $batchCurrency = self::getBatchCurrency($batchId);
$batchPID = (int) CRM_Core_DAO::getFieldValue('CRM_Batch_DAO_Batch', $batchId, 'payment_instrument_id'); $batchPID = (int) CRM_Core_DAO::getFieldValue('CRM_Batch_DAO_Batch', $batchId, 'payment_instrument_id');
$trxn = \Civi\Api4\FinancialTrxn::get(FALSE) $trxn = \Civi\Api4\FinancialTrxn::get(FALSE)
......
...@@ -712,9 +712,12 @@ class CRM_Extension_Manager { ...@@ -712,9 +712,12 @@ class CRM_Extension_Manager {
* @return CRM_Extension_Info|NULL * @return CRM_Extension_Info|NULL
*/ */
public function createInfoFromDB($key) { public function createInfoFromDB($key) {
$dao = new CRM_Core_DAO_Extension(); // System hasn't booted - and extension is missing. Need low-tech/no-hook SELECT to learn more about what's missing.
$dao->full_name = $key; $select = CRM_Utils_SQL_Select::from('civicrm_extension')
if ($dao->find(TRUE)) { ->where('full_name = @key', ['key' => $key])
->select('full_name, type, name, label, file');
$dao = $select->execute();
if ($dao->fetch()) {
$info = new CRM_Extension_Info($dao->full_name, $dao->type, $dao->name, $dao->label, $dao->file); $info = new CRM_Extension_Info($dao->full_name, $dao->type, $dao->name, $dao->label, $dao->file);
return $info; return $info;
} }
......
...@@ -187,7 +187,18 @@ class CiviEventDispatcher extends EventDispatcher { ...@@ -187,7 +187,18 @@ class CiviEventDispatcher extends EventDispatcher {
throw new \RuntimeException("The dispatch policy prohibits event \"$eventName\"."); throw new \RuntimeException("The dispatch policy prohibits event \"$eventName\".");
case 'not-ready': case 'not-ready':
throw new \RuntimeException("CiviCRM has not bootstrapped sufficiently to fire event \"$eventName\"."); // The system is not ready to run hooks -- eg it has not finished loading the extension main-files.
// If you fire a hook at this point, it will not be received by the intended listeners.
// In practice, many hooks involve cached data-structures, so a premature hook is liable to have spooky side-effects.
// This condition indicates a structural problem and merits a consistent failure-mode.
// If you believe some special case merits an exemption, then you could add it to `$bootDispatchPolicy`.
// An `Exception` would be ideal for preventing new bugs, but it can be too noisy for systems with pre-existing bugs.
// throw new \RuntimeException("The event \"$eventName\" attempted to fire before CiviCRM was fully loaded. Skipping.");
// Complain to web-user and sysadmin. Log a backtrace. We're pre-boot, so don't use high-level services.
error_log("The event \"$eventName\" attempted to fire before CiviCRM was fully loaded. Skipping.\n" . \CRM_Core_Error::formatBacktrace(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), FALSE));
trigger_error("The event \"$eventName\" attempted to fire before CiviCRM was fully loaded. Skipping.", E_USER_WARNING);
return $event;
default: default:
throw new \RuntimeException("The dispatch policy for \"$eventName\" is unrecognized ($mode)."); throw new \RuntimeException("The dispatch policy for \"$eventName\" is unrecognized ($mode).");
......
<?php <?php
/** @deprecated */ /** @deprecated */
function civicrmVersion( ) { function civicrmVersion( ) {
return array( 'version' => '5.50.1', return array( 'version' => '5.50.2',
'cms' => 'Wordpress', 'cms' => 'Wordpress',
'revision' => '' ); 'revision' => '' );
} }
......
...@@ -826,16 +826,16 @@ ...@@ -826,16 +826,16 @@
}, },
{ {
"name": "guzzlehttp/guzzle", "name": "guzzlehttp/guzzle",
"version": "6.5.6", "version": "6.5.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/guzzle/guzzle.git", "url": "https://github.com/guzzle/guzzle.git",
"reference": "f092dd734083473658de3ee4bef093ed77d2689c" "reference": "724562fa861e21a4071c652c8a159934e4f05592"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/f092dd734083473658de3ee4bef093ed77d2689c", "url": "https://api.github.com/repos/guzzle/guzzle/zipball/724562fa861e21a4071c652c8a159934e4f05592",
"reference": "f092dd734083473658de3ee4bef093ed77d2689c", "reference": "724562fa861e21a4071c652c8a159934e4f05592",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -921,7 +921,7 @@ ...@@ -921,7 +921,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/guzzle/guzzle/issues", "issues": "https://github.com/guzzle/guzzle/issues",
"source": "https://github.com/guzzle/guzzle/tree/6.5.6" "source": "https://github.com/guzzle/guzzle/tree/6.5.7"
}, },
"funding": [ "funding": [
{ {
...@@ -937,7 +937,7 @@ ...@@ -937,7 +937,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-05-25T13:19:12+00:00" "time": "2022-06-09T21:36:50+00:00"
}, },
{ {
"name": "guzzlehttp/promises", "name": "guzzlehttp/promises",
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2020-01-09</releaseDate> <releaseDate>2020-01-09</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<develStage>beta</develStage> <develStage>beta</develStage>
<compatibility> <compatibility>
<ver>5.50</ver> <ver>5.50</ver>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2020-01-09</releaseDate> <releaseDate>2020-01-09</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<develStage>beta</develStage> <develStage>beta</develStage>
<compatibility> <compatibility>
<ver>5.50</ver> <ver>5.50</ver>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2020-01-09</releaseDate> <releaseDate>2020-01-09</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<develStage>alpha</develStage> <develStage>alpha</develStage>
<compatibility> <compatibility>
<ver>5.50</ver> <ver>5.50</ver>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2020-01-09</releaseDate> <releaseDate>2020-01-09</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<tags> <tags>
<tag>mgmt:hidden</tag> <tag>mgmt:hidden</tag>
</tags> </tags>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2021-02-11</releaseDate> <releaseDate>2021-02-11</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<develStage>alpha</develStage> <develStage>alpha</develStage>
<compatibility> <compatibility>
<ver>5.50</ver> <ver>5.50</ver>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2022-01-02</releaseDate> <releaseDate>2022-01-02</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<develStage>alpha</develStage> <develStage>alpha</develStage>
<compatibility> <compatibility>
<ver>5.50</ver> <ver>5.50</ver>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2021-11-11</releaseDate> <releaseDate>2021-11-11</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<develStage>stable</develStage> <develStage>stable</develStage>
<compatibility> <compatibility>
<ver>5.50</ver> <ver>5.50</ver>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<url desc="Licensing">https://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">https://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2021-05-23</releaseDate> <releaseDate>2021-05-23</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<develStage>stable</develStage> <develStage>stable</develStage>
<compatibility> <compatibility>
<ver>5.50</ver> <ver>5.50</ver>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2020-10-12</releaseDate> <releaseDate>2020-10-12</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<develStage>stable</develStage> <develStage>stable</develStage>
<compatibility> <compatibility>
<ver>5.50</ver> <ver>5.50</ver>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2020-08-03</releaseDate> <releaseDate>2020-08-03</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<tags> <tags>
<tag>mgmt:hidden</tag> <tag>mgmt:hidden</tag>
</tags> </tags>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2020-10-07</releaseDate> <releaseDate>2020-10-07</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<tags> <tags>
<tag>mgmt:hidden</tag> <tag>mgmt:hidden</tag>
</tags> </tags>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2020-08-27</releaseDate> <releaseDate>2020-08-27</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<develStage>stable</develStage> <develStage>stable</develStage>
<compatibility> <compatibility>
<ver>5.50</ver> <ver>5.50</ver>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2020-08-05</releaseDate> <releaseDate>2020-08-05</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<develStage>stable</develStage> <develStage>stable</develStage>
<comments> <comments>
FlexMailer is an email delivery engine which replaces the internal guts FlexMailer is an email delivery engine which replaces the internal guts
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls> </urls>
<releaseDate>2020-07-21</releaseDate> <releaseDate>2020-07-21</releaseDate>
<version>5.50.1</version> <version>5.50.2</version>
<tags> <tags>
<tag>mgmt:hidden</tag> <tag>mgmt:hidden</tag>
</tags> </tags>
......
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