Skip to content
Snippets Groups Projects
Commit 9ef5e199 authored by mattwire's avatar mattwire
Browse files

Change ManagedEntity to update policy always

parent 575456a8
Branches
Tags
No related merge requests found
<?php
use Civi\Api4\OptionValue;
if (empty(OptionValue::get(FALSE)
->addWhere('option_group_id:name', '=', 'cg_extend_objects')
->addWhere('value', '=', 'FinancialTrxn')
->execute()
->first())) {
return [
[
'name' => 'cg_extend_objects:FinancialTrxn',
'entity' => 'OptionValue',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'option_group_id.name' => 'cg_extend_objects',
'label' => ts('Financial Transaction (Payment)'),
'value' => 'FinancialTrxn',
'name' => 'civicrm_financial_trxn',
'is_reserved' => TRUE,
'is_active' => TRUE,
],
'match' => ['option_group_id', 'name'],
return [
[
'name' => 'cg_extend_objects:FinancialTrxn',
'entity' => 'OptionValue',
'cleanup' => 'unused',
'update' => 'always',
'params' => [
'version' => 4,
'values' => [
'option_group_id.name' => 'cg_extend_objects',
'label' => ts('Financial Transaction (Payment)'),
'value' => 'FinancialTrxn',
'name' => 'civicrm_financial_trxn',
'is_reserved' => TRUE,
'is_active' => TRUE,
],
'match' => ['option_group_id', 'name'],
],
];
}
return [];
\ No newline at end of file
],
];
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment