mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Parameter dynamicLogicConditionTypeList
This commit is contained in:
@@ -111,6 +111,10 @@ class PipelinesUpdateHook implements UpdateHook
|
||||
'inlineEditDisabled',
|
||||
],
|
||||
'view' => 'views/fields/extra/pipeline-stage',
|
||||
'dynamicLogicConditionTypeList' => [
|
||||
'isEmpty',
|
||||
'isNotEmpty',
|
||||
]
|
||||
],
|
||||
],
|
||||
'links' => [
|
||||
|
||||
@@ -102,7 +102,10 @@ export default class DynamicLogicConditionFieldTypeBaseView extends View {
|
||||
this.itemData = this.options.itemData;
|
||||
this.additionalData = (this.itemData.data || {});
|
||||
|
||||
this.typeList = this.getMetadata().get(`clientDefs.DynamicLogic.fieldTypes.${this.fieldType}.typeList`);
|
||||
// Warning. The same data is retrieved in group-base.
|
||||
this.typeList =
|
||||
this.getMetadata().get(`entityDefs.${this.scope}.fields.${this.field}.dynamicLogicConditionTypeList`) ??
|
||||
this.getMetadata().get(`clientDefs.DynamicLogic.fieldTypes.${this.fieldType}.typeList`);
|
||||
|
||||
this.baseModel = new Model();
|
||||
|
||||
|
||||
@@ -294,7 +294,12 @@ export default class DynamicLogicConditionGroupBaseView extends View {
|
||||
throw new Error();
|
||||
}
|
||||
|
||||
const type = this.getMetadata().get(['clientDefs', 'DynamicLogic', 'fieldTypes', fieldType, 'typeList'])[0];
|
||||
// Warning. The same data is retrieved in conditions/base.
|
||||
const typeList =
|
||||
this.getMetadata().get(`entityDefs.${this.scope}.fields.${field}.dynamicLogicConditionTypeList`) ??
|
||||
this.getMetadata().get(`clientDefs.DynamicLogic.fieldTypes.${fieldType}.typeList`);
|
||||
|
||||
const type = typeList[0];
|
||||
|
||||
const i = this.getIndexForNewItem();
|
||||
const key = this.getKey(i);
|
||||
|
||||
@@ -1095,6 +1095,11 @@
|
||||
"type": "boolean",
|
||||
"description": "Dynamic logic cannot be customized."
|
||||
},
|
||||
"dynamicLogicConditionTypeList": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"},
|
||||
"description": "Overrides Dynamic Logic condition types. As of 10.0."
|
||||
},
|
||||
"fieldManagerParamList": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
||||
Reference in New Issue
Block a user