(Internal) Deserialize empty strings to null

Registered by Morten Olav Hansen on 2016-07-25

Deserialize empty strings to null.

"""
When saving a payload with say a non required "code" field. But the payload has has an empty string "" as the value for the code. This empty string is saved to the database and will a unique value.
When attempting to save another object with the same empty code the server will complain that the code is not unique.

From a technical perspective this is obviously correct as the empty string is a value and a unique value. However from a usability perspective this is not very convenient. I think it it safe to assume that when a user attempts to save an empty string this can be considered to be a null value.
"""

Blueprint information

Status:
Complete
Approver:
Morten Olav Hansen
Priority:
Undefined
Drafter:
Morten Olav Hansen
Direction:
Approved
Assignee:
Morten Olav Hansen
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
milestone icon 2.25
Started by
Morten Olav Hansen on 2016-07-26
Completed by
Morten Olav Hansen on 2016-07-26

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.