U4-9689 - Content type description isn't always saved the same way

Created by Claus Jensen 29 Mar 2017, 08:54:59 Updated by Shannon Deminick 03 Apr 2017, 05:59:51

Subtask of: U4-9609

If you save a content type, it will have null in Description. If you then edit the description, save - change it back to blank and then resave, it will now have string.Empty as the value for Description.

This should always be null (the db field is nullable) if unset/blank, whether it was unset from the beginning or at a later point.

This would also break Courier/Deploy as the value could change, but wasn't ''really'' different between environments .. and the only way to fix it was to edit the Description and set it back to empty - ensuring both environments now have the string.Empty value ... not really great.

Comments

Claus Jensen 29 Mar 2017, 09:12:37

PR: https://github.com/umbraco/Umbraco-CMS/pull/1840

Also added it for membertypes.

Added a test for media types - it's using the same ContentTypeService methods as for document types ... but ... its Core - so it's safer to just have a test in place.


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.5.11

Due in version: 7.5.12

Sprint: Sprint 56

Story Points: 1

Cycle: