Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit in workflow conditions for multienum fields #10498

Open
SinergiaCRM opened this issue Aug 8, 2024 · 0 comments
Open

Limit in workflow conditions for multienum fields #10498

SinergiaCRM opened this issue Aug 8, 2024 · 0 comments
Labels
Area: Workflow Issues & PRs related to all things regarding workflow Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Status: Team Investigating Labels for issues in which the Core Team are investigating / Intend to Investigate Type: Bug Bugs within the core SuiteCRM codebase

Comments

@SinergiaCRM
Copy link
Contributor

SinergiaCRM commented Aug 8, 2024

Issue

If you attempt to select multiple options from a multienum field in a workflow condition, only up to 255 characters will be saved. Multienum fields are stored as text fields in the database, while the "value" column in the aow_conditions table is of type varchar (255). If many options are selected in the multienum fields, some of them will be deselected upon saving, as the character limit has been exceeded.

Possible Fix

If we modify the file modules/AOW_Conditions/vardefs.php, changing the field type from varchar to text and removing 'len' => '255', multiple selections in the conditions are allowed.

Steps to Reproduce the Issue

  1. Go to Studio and create a Multi-Select field where the dropdown list has many values.
  2. Create a Workflow that includes a condition to evaluate if all values of the created field are selected.
  3. Observe that after saving the Workflow, some of the values (e.g., Albacete, Zaragoza) are not saved.

Context

No response

Version

7.14.2

What browser are you currently using?

Chrome

Browser Version

127.0.6533.72 (Official Build) (64-bit)

Environment Information

MySQL, PHP Version 7.4.33

Operating System and Version

Ubuntu 22.04.4 LTS

@SinergiaCRM SinergiaCRM added the Type: Bug Bugs within the core SuiteCRM codebase label Aug 8, 2024
@johnM2401 johnM2401 added Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Area: Workflow Issues & PRs related to all things regarding workflow Severity: Moderate Key function failed, but no or little impact labels Aug 8, 2024
@gemartin21 gemartin21 added the Status: Team Investigating Labels for issues in which the Core Team are investigating / Intend to Investigate label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Workflow Issues & PRs related to all things regarding workflow Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Status: Team Investigating Labels for issues in which the Core Team are investigating / Intend to Investigate Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

3 participants