U4-8981 - fix package actions

This commit is contained in:
Stephan
2016-10-19 08:48:35 +02:00
parent fe9686f215
commit 2b2734cd66

View File

@@ -236,7 +236,7 @@ namespace umbraco.cms.businesslogic.packager
retVal.ContentNodeId = SafeAttribute("nodeId", n.SelectSingleNode("content"));
retVal.ContentLoadChildNodes = bool.Parse(SafeAttribute("loadChildNodes", n.SelectSingleNode("content")));
retVal.Macros = new List<string>(SafeNodeValue(n.SelectSingleNode("macros")).Trim(',').Split(','));
retVal.Macros = new List<string>(SafeNodeValue(n.SelectSingleNode("macros")).Trim(',').Split(','));
retVal.Templates = new List<string>(SafeNodeValue(n.SelectSingleNode("templates")).Trim(',').Split(','));
@@ -264,7 +264,7 @@ namespace umbraco.cms.businesslogic.packager
// Remove physical xml file if any
//PackageInstance p = new PackageInstance(Id);
//TODO DELETE PACKAGE FOLDER...
//TODO DELETE PACKAGE FOLDER...
//p.Folder
XmlNode n = data.GetFromId(Id, dataSource, true);
@@ -323,7 +323,7 @@ namespace umbraco.cms.businesslogic.packager
XmlHelper.SetAttribute(Source, authorNode, "url", package.AuthorUrl);
XmlHelper.SetCDataNode(Source, xmlDef, "readme", package.Readme);
XmlHelper.SetTextNode(Source, xmlDef, "actions", package.Actions);
XmlHelper.SetInnerXmlNode(Source, xmlDef, "actions", package.Actions);
var contentNode = xmlDef.SelectSingleNode("content");
if (contentNode == null)