mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Forcing version upgrade
This commit is contained in:
@@ -595,9 +595,11 @@ namespace Upgrade.Controllers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var versionElement = versionData.Element(element.Name);
|
var versionElement = versionData.Element(element.Name);
|
||||||
if (versionElement == null) {
|
if (versionElement != null) {
|
||||||
versionData.Add(element);
|
versionElement.Remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
versionData.Add(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
contentItemVersionRecord.Data = versionData.ToString(SaveOptions.DisableFormatting);
|
contentItemVersionRecord.Data = versionData.ToString(SaveOptions.DisableFormatting);
|
||||||
|
Reference in New Issue
Block a user