Added error handling code so that procedurre set could be imported.
This commit is contained in:
parent
406ec0f036
commit
abe3e723ea
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user