mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
Fix #478 - Add trigger status to currency logic
This commit is contained in:
parent
39881bceb6
commit
7e73cdddcb
3 changed files with 10 additions and 0 deletions
|
@ -14,6 +14,7 @@ parameters:
|
|||
modes: ['edit', 'create', 'massupdate', 'filter']
|
||||
params:
|
||||
fieldDependencies: ['{currency_id}']
|
||||
triggeringStatus: ['onAnyLogic']
|
||||
'{currency_id}':
|
||||
modes: ['edit', 'create', 'massupdate', 'filter']
|
||||
type: 'enum'
|
||||
|
@ -26,3 +27,4 @@ parameters:
|
|||
modes: ['edit', 'create', 'massupdate', 'filter']
|
||||
params:
|
||||
fieldDependencies: ['{currency}']
|
||||
triggeringStatus: ['onAnyLogic']
|
||||
|
|
|
@ -82,4 +82,8 @@ export class UpdateBaseCurrencyAction extends FieldLogicActionHandler {
|
|||
// re-validate the parent form-control after value update
|
||||
record.formGroup.updateValueAndValidity({onlySelf: true, emitEvent: true});
|
||||
}
|
||||
|
||||
getTriggeringStatus(): string[] {
|
||||
return ['onAnyLogic'];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,4 +86,8 @@ export class UpdateCurrencyAction extends FieldLogicActionHandler {
|
|||
// re-validate the parent form-control after value update
|
||||
record.formGroup.updateValueAndValidity({onlySelf: true, emitEvent: true});
|
||||
}
|
||||
|
||||
getTriggeringStatus(): string[] {
|
||||
return ['onAnyLogic'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue