Bug: Workflow conditions and actions fail if dependent on a field that a 'trim' of a WorkFlow field removes 7.14.6: and 7.15

in 7.14.6 in data/SugarBean.php a ‘trim’ was added that means that EVERY module’s fields are now trimmed: this breaks thing in Workflows if any of your workflow fields depend on a character that would be stripped by ‘trim’.

Eg if your Workflow Condition is checking that there are no spaces in a field: then the space character you enter as the condition, is deleted when you save the Woirkflow.

See the Github issue 10750 I raised for that, , with the workround to remove the ‘trim’ from SugarBean.php

QUESTION for PHP developers: how could SugarBean.php be set to exclude the various WorkFlow modules from this trim? That would be a better solution.

I just commented on this on the PR that (I think) introduced the problem:

1 Like