Reduced duplicated Audits

Added comments
Added and used calculated IsDirty Property
This commit is contained in:
Rich
2012-04-18 19:38:42 +00:00
parent 6358acba7d
commit 729fa6e2dc
3 changed files with 173 additions and 3 deletions

View File

@@ -2876,10 +2876,14 @@ namespace Volian.Controls.Library
{
rousg = itm.MyContent.ContentRoUsages.Add(roparts[1], rodb);
}
//get temporary rousageid
oldid = rousg.ROUsageID;
Rtf = Rtf.Replace("<NewID>", string.Format("<CROUSGID={0}>", rousg.ROUsageID));
//save temporary rousageid to get real rousageid
itm.Save();
//replace temprorary rousageid with real rousageid
Rtf = Rtf.Replace(string.Format("<CROUSGID={0}>", oldid), rousg.ROUsageID.ToString());
//save real rousageid
itm.Save();
MyItemInfo.MyContent.RefreshContentRoUsages();
}