CiviCRM Action Provider, Explode function does not trim spaces from exploded values which causes CiviCRM API call to fail when updating a custom field with multiple values.
CiviCRM Action Provider, Explode function does not trim spaces from exploded values which causes CiviCRM API call to fail when updating a custom field with multiple values.
For example, currently when the Explode action processes a string like: "1, 2, 3, 4, 5" and the action will return an array of elements: ['1',' 2',' 3',' 4',' 5'].
With this change the returned array of elements will be: ['1','2','3','4','5']
Agileware Ref: CIVICRM-2005
Edited by justinfreeman (Agileware)