Receive related parameters of type dynamicenum in workflow formulas #9750
Labels
Area: Workflow
Issues & PRs related to all things regarding workflow
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Status:Fix Proposed
A issue that has a PR related to it that provides a possible resolution
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
In a Calculate Field action in a workflow that uses a relation parameter of type DynamicEnum, its formatted value is not received correctly.
Expected Behavior
It should display the formatted value
Actual Behavior
Instead of showing the formatted value, it shows {R0}
Possible Fix
Change line 281 of the resolveRelationParameters() method of the
modules/AOW_Actions/actions/actionComputeField.php
file:if ($dataType == 'enum')
by:
if ($datatype == 'enum' || $datatype == 'dynamic enum')
Steps to Reproduce
Name: subtype
Type: dynamicenum
Parent DropDown: account_type
Add DropDown List: subtype_list
Values:
Run:Always
Run On: All records
Action: Calculate Fields
Relationship Parameters:
Formulas:
Your Environment
SuiteCRM Version used: Version 7.12.6
Browser name and version: Versión 100.0.4896.88 (Build oficial) (64 bit
Environment name and version: MySQL, PHP 7
Operating System and version: Ubuntu 20.04
The text was updated successfully, but these errors were encountered: