Problem description: Trailing and leading spaces in "Value" and "Mapped to" fields are not trimmed when creating a new value mapping, but these fields are trimmed during update of the same value mapping.
Steps to reproduce:
- Create a new value mapping - make sure that value mapping "Name", as well as Mapping fields "Value" and "Mapped to" contain trailing and leading spaces
- Save the value mapping
- Open the created value mapping in edit mode
Result 1: Trailing and leading spaces are trimmed only in the name of the value mapping. Trailing spaces still exist in Mapping fields "Value" and "Mapped to"
- Press "Update" button
- Open the updated value mapping again
Result 2: Now trailing and leading spaces are trimmed in all fields.
Expected: Trailing and leading spaces should be trimmed in all fields also when creating a new value mapping.