SuiteCRM
SuiteCRM copied to clipboard
Fix #9715 - Email address field isn't available in Calculate Fields Workflow action
- Closes #9715
Description
In this PR we add a condition when calculating the relationships that will be displayed in the Action. With this condition, the email_addresses relationship won't be filtered, and therefore treated as any other relationship.
Motivation and Context
With this change, the Email address value can be used in a "Calculate Fields" Workflow action.
How To Test This
- Create a WF record based in Contacts
- Add an action of type Calculate Fields
- Check that the Email Address is available in the relationship list:
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Final checklist
- [x] My code follows the code style of this project found here.
- [ ] My change requires a change to the documentation.
- [x] I have read the How to Contribute guidelines.