Reduced duplicated Audits
Added comments Added and used calculated IsDirty Property
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user