Update mapping so we know if it is blueprint on first save before content has been created
This commit is contained in:
committed by
Sebastiaan Janssen
parent
62e3286c71
commit
aa62417916
@@ -820,7 +820,9 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers
|
||||
contentItem.Variants.Where(x => x.Save).Select(x => x.Culture).ToArray(),
|
||||
defaultCulture);
|
||||
|
||||
bool isBlueprint = contentItem.PersistedContent.Blueprint;
|
||||
//get the updated model
|
||||
var display = mapToDisplay(contentItem.PersistedContent);
|
||||
bool isBlueprint = display.IsBlueprint;
|
||||
|
||||
var contentSavedHeader = isBlueprint ? "editBlueprintSavedHeader" : "editContentSavedHeader";
|
||||
var contentSavedText = isBlueprint ? "editBlueprintSavedText" : "editContentSavedText";
|
||||
@@ -920,9 +922,6 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
||||
//get the updated model
|
||||
var display = mapToDisplay(contentItem.PersistedContent);
|
||||
|
||||
//merge the tracked success messages with the outgoing model
|
||||
display.Notifications.AddRange(globalNotifications.Notifications);
|
||||
foreach (var v in display.Variants.Where(x => x.Language != null))
|
||||
|
||||
Reference in New Issue
Block a user