Workflow sets enum key and not label #10382
Labels
Area: Workflow
Issues & PRs related to all things regarding workflow
Priority:Moderate
Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds
Severity: Minor
Function rarely used and has no impact
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
When a workflow creates or modifies a record and when the WF action is configured to set the field value to another when it is an enum it sets the key rather than the label
E.g.
Field name -> Field -> Field name(Opportunity Name -> Field -> Opportunity Type)
Expected Behavior
Unless the target field is also an enum then the enum Label should be used rather than they key
e.g.
Opportunity Name -> Field -> Sales Stage
Results in the opportunity name being set to "Closed Won"
Actual Behavior
Unless the target field is also an enum then the enum Label should be used rather than they key
e.g.
Opportunity Name -> Field -> Sales Stage
Results in the opportunity name being set to "closed_won"
Possible Fix
Steps to Reproduce
Context
Set incorrect value when workflow is executed
Your Environment
The text was updated successfully, but these errors were encountered: