Merge remote-tracking branch 'origin/v10/dev' into v11/dev
This commit is contained in:
@@ -819,6 +819,7 @@ public class ContentController : ContentControllerBase
|
||||
|
||||
return pagedResult;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a blueprint from a content item
|
||||
/// </summary>
|
||||
@@ -1117,7 +1118,7 @@ public class ContentController : ContentControllerBase
|
||||
AddDomainWarnings(publishStatus.Content, successfulCultures, globalNotifications);
|
||||
AddPublishStatusNotifications(new[] { publishStatus }, globalNotifications, notifications, successfulCultures);
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case ContentSaveAction.PublishWithDescendants:
|
||||
case ContentSaveAction.PublishWithDescendantsNew:
|
||||
{
|
||||
@@ -1134,7 +1135,7 @@ public class ContentController : ContentControllerBase
|
||||
AddDomainWarnings(publishStatus, successfulCultures, globalNotifications);
|
||||
AddPublishStatusNotifications(publishStatus, globalNotifications, notifications, successfulCultures);
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case ContentSaveAction.PublishWithDescendantsForce:
|
||||
case ContentSaveAction.PublishWithDescendantsForceNew:
|
||||
{
|
||||
@@ -1150,7 +1151,7 @@ public class ContentController : ContentControllerBase
|
||||
var publishStatus = PublishBranchInternal(contentItem, true, cultureForInvariantErrors, out wasCancelled, out var successfulCultures).ToList();
|
||||
AddPublishStatusNotifications(publishStatus, globalNotifications, notifications, successfulCultures);
|
||||
}
|
||||
break;
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
@@ -2804,7 +2805,7 @@ public class ContentController : ContentControllerBase
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case PublishResultType.SuccessPublish:
|
||||
{
|
||||
// TODO: Here we should have messaging for when there are release dates specified like https://github.com/umbraco/Umbraco-CMS/pull/3507
|
||||
@@ -2832,7 +2833,7 @@ public class ContentController : ContentControllerBase
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case PublishResultType.FailedPublishPathNotPublished:
|
||||
{
|
||||
//TODO: This doesn't take into account variations with the successfulCultures param
|
||||
@@ -2841,14 +2842,14 @@ public class ContentController : ContentControllerBase
|
||||
_localizedTextService.Localize(null, "publish"),
|
||||
_localizedTextService.Localize("publish", "contentPublishedFailedByParent", new[] { names }).Trim());
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case PublishResultType.FailedPublishCancelledByEvent:
|
||||
{
|
||||
//TODO: This doesn't take into account variations with the successfulCultures param
|
||||
var names = string.Join(", ", status.Select(x => $"'{x.Content?.Name}'"));
|
||||
AddCancelMessage(display, "publish", "contentPublishedFailedByEvent", new[] { names });
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case PublishResultType.FailedPublishAwaitingRelease:
|
||||
{
|
||||
//TODO: This doesn't take into account variations with the successfulCultures param
|
||||
@@ -2857,7 +2858,7 @@ public class ContentController : ContentControllerBase
|
||||
_localizedTextService.Localize(null, "publish"),
|
||||
_localizedTextService.Localize("publish", "contentPublishedFailedAwaitingRelease", new[] { names }).Trim());
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case PublishResultType.FailedPublishHasExpired:
|
||||
{
|
||||
//TODO: This doesn't take into account variations with the successfulCultures param
|
||||
@@ -2866,7 +2867,7 @@ public class ContentController : ContentControllerBase
|
||||
_localizedTextService.Localize(null, "publish"),
|
||||
_localizedTextService.Localize("publish", "contentPublishedFailedExpired", new[] { names }).Trim());
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case PublishResultType.FailedPublishIsTrashed:
|
||||
{
|
||||
//TODO: This doesn't take into account variations with the successfulCultures param
|
||||
@@ -2875,7 +2876,7 @@ public class ContentController : ContentControllerBase
|
||||
_localizedTextService.Localize(null, "publish"),
|
||||
_localizedTextService.Localize("publish", "contentPublishedFailedIsTrashed", new[] { names }).Trim());
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case PublishResultType.FailedPublishContentInvalid:
|
||||
{
|
||||
if (successfulCultures == null)
|
||||
@@ -2899,7 +2900,7 @@ public class ContentController : ContentControllerBase
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case PublishResultType.FailedPublishMandatoryCultureMissing:
|
||||
display.AddWarningNotification(
|
||||
_localizedTextService.Localize(null, "publish"),
|
||||
|
||||
@@ -79,7 +79,6 @@ public abstract class ContentControllerBase : BackOfficeNotificationsController
|
||||
ModelState.AddModelError("id", $"content with id: {id} was not found");
|
||||
NotFoundObjectResult errorResponse = NotFound(ModelState);
|
||||
|
||||
|
||||
return errorResponse;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user