Fixes Publishing/Unpublishing variants and it's nuances
This commit is contained in:
@@ -71,10 +71,13 @@ namespace Umbraco.Web.Trees
|
||||
else
|
||||
{
|
||||
var documentEntity = (IDocumentEntitySlim) entity;
|
||||
if (!documentEntity.Published)
|
||||
|
||||
//fixme we need these statuses per variant but to do that we need to fix the issues listed in IDocumentEntitySlim
|
||||
if (!documentEntity.Published)
|
||||
node.SetNotPublishedStyle();
|
||||
if (documentEntity.Edited)
|
||||
node.SetHasUnpublishedVersionStyle();
|
||||
//if (documentEntity.Edited)
|
||||
// node.SetHasUnpublishedVersionStyle();
|
||||
|
||||
node.AdditionalData.Add("contentType", documentEntity.ContentTypeAlias);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user