Skip to content

Commit 6583246

Browse files
authored
Merge pull request #13 from umbraco/temp-deploy-467
Fixes Deploy-467 - Checks for a null in DTGE
2 parents 2e5ed0e + 662f675 commit 6583246

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Umbraco.Deploy.Contrib.Connectors/GridCellValueConnectors/DocTypeGridEditorCellValueConnector.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ public override void SetValue(GridValue.GridControl control, Property property)
150150
{
151151
docTypeGridEditorContent.Value[propertyType.Alias] = convertedValue.ToString();
152152
}
153+
else if (convertedValue is null)
154+
{
155+
//Assign the null back - otherwise the check for JSON will fail as we cant convert a null to a string
156+
//NOTE: LinkPicker2 for example if no link set is returning a null as opposed to empty string
157+
docTypeGridEditorContent.Value[propertyType.Alias] = convertedValue;
158+
}
153159
else
154160
{
155161
// test if the value is a json object (thus could be a nested complex editor)

0 commit comments

Comments
 (0)