Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from danlister/patch-1
Browse files Browse the repository at this point in the history
Fixes empty control exception when a document type is not saved after…
  • Loading branch information
leekelleher committed Oct 22, 2015
2 parents 5749500 + b50fb9d commit 5aacebb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ private static ServiceContext Services

public static IPublishedContent ConvertValueToContent(string id, string docTypeAlias, string dataJson)
{
if (string.IsNullOrWhiteSpace(docTypeAlias))
return null;

return (IPublishedContent)ApplicationContext.Current.ApplicationCache.RequestCache.GetCacheItem(
"DocTypeGridEditorHelper.ConvertValueToContent_" + id + "_" + docTypeAlias, () =>
{
Expand Down

0 comments on commit 5aacebb

Please sign in to comment.