Added error handling code so that procedurre set could be imported.
This commit is contained in:
@@ -422,6 +422,8 @@ namespace VEPROMS
|
||||
{
|
||||
Content c = Content.Get(pi.MyContent.ContentID);
|
||||
XmlDocument xd = new XmlDocument();
|
||||
// If the config field is empty, add an empty xml node.
|
||||
if (c.Config == "") c.Config = "<Config/>";
|
||||
xd.LoadXml(c.Config);
|
||||
XmlNode xn = xd.SelectSingleNode("Config/Procedure/@SectionStart");
|
||||
if (xn != null)
|
||||
|
Reference in New Issue
Block a user