Dynamic Fields Mass Update Issue #10404
Labels
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Severity: Moderate
Key function failed, but no or little 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
If a Mass Update is performed on a module containing dynamic fields with underscores in parent field keys, the child field's default value is always set, regardless if a change has been made to the dynamic parent field. This issue is closely related to #8209 however the proposed fix in #10340 does not fix this issue if a custom dynamic dropdown is still in the Cases module and this can happen with no change to the dynamic dropdowns.
examples of dynamic dropdown options that would be affected:
Expected Behavior
Mass Update should not change dynamic dropdown child values if no change has been made to the parent field.
Actual Behavior
In the above example, health_and_safety_fire compares "health" to "health and safety" and assumes it is a different parent value. This is because the Mass Update function checks for the underscore delimiter regardless of the key values.
Possible Fix
check that health_and_safety_fire contains health_and_safety at strpos 0 to see if the child field should be set to the default value.
Steps to Reproduce
Context
Your Environment
The text was updated successfully, but these errors were encountered: