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

Commit bf9bbc3

Browse files
committed
implement missing methods on UnpublishedContent
1 parent 0ad8c7a commit bf9bbc3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Our.Umbraco.DocTypeGridEditor/Models/UnpublishedContent.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public UnpublishedContent(IContent content, ServiceContext serviceContext)
3535
var userService = new Lazy<IUserService>(() => serviceContext.UserService);
3636

3737
this.content = content;
38-
var contentType = Current.Services.ContentTypeService.Get(this.ContentType.Id);
38+
var contentType = Current.Services.ContentTypeService.Get(this.content.ContentType.Id);
3939

4040
//this.children = new Lazy<IEnumerable<IPublishedContent>>(() => this.content.Children().Select(x => new UnpublishedContent(x, serviceContext)).ToList());
4141
this.contentType = new Lazy<PublishedContentType>(() => Current.PublishedContentTypeFactory.CreateContentType(contentType));
@@ -56,22 +56,22 @@ public UnpublishedContent(IContent content, ServiceContext serviceContext)
5656

5757
public string GetUrl(string culture = null)
5858
{
59-
throw new NotImplementedException();
59+
return null;
6060
}
6161

6262
public PublishedCultureInfo GetCulture(string culture = null)
6363
{
64-
throw new NotImplementedException();
64+
return null;
6565
}
6666

6767
bool IPublishedContent.IsDraft(string culture)
6868
{
69-
throw new NotImplementedException();
69+
return true;
7070
}
7171

7272
public bool IsPublished(string culture = null)
7373
{
74-
throw new NotImplementedException();
74+
return false;
7575
}
7676

7777
public int Id => this.content.Id;

0 commit comments

Comments
 (0)