Fixes issue with redirect

This commit is contained in:
Shannon
2019-01-10 19:08:52 +11:00
parent 5cb99bfddc
commit 568d5c2583
3 changed files with 3 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ namespace Umbraco.Core.Models.Packaging
public string LoadControl { get; set; } = string.Empty;
[DataMember(Name = "actions")]
public string Actions { get; set; }
public string Actions { get; set; } = "<actions></actions>";
[DataMember(Name = "dataTypes")]
public IList<string> DataTypes { get; set; } = new List<string>();

View File

@@ -598,7 +598,7 @@ namespace Umbraco.Core.Packaging
Author = xml.Element("author")?.Value ?? string.Empty,
AuthorUrl = xml.Element("author")?.AttributeValue<string>("url") ?? string.Empty,
Readme = xml.Element("readme")?.Value ?? string.Empty,
Actions = xml.Element("actions")?.ToString(SaveOptions.None) ?? string.Empty, //take the entire outer xml value
Actions = xml.Element("actions")?.ToString(SaveOptions.None) ?? "<actions></actions>", //take the entire outer xml value
ContentNodeId = xml.Element("content")?.AttributeValue<string>("nodeId") ?? string.Empty,
ContentLoadChildNodes = xml.Element("content")?.AttributeValue<bool>("loadChildNodes") ?? false,
Macros = xml.Element("macros")?.Value.Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries).ToList() ?? new List<string>(),

View File

@@ -146,7 +146,7 @@
if (create) {
//if we are creating, then redirect to the correct url and reload
$location.path("packages/packages/overview/" + vm.package.id).search("subview", "created");
$location.path("packages/packages/edit/" + vm.package.id).search("subview", "created").search("create", null);
//don't add a browser history for this
$location.replace();
}