mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Code clean up
Removed the commented lines in method BuildNewVersion.
This commit is contained in:
@@ -481,11 +481,7 @@ namespace Orchard.ContentManagement {
|
|||||||
|
|
||||||
if (latestVersion != null) {
|
if (latestVersion != null) {
|
||||||
latestVersion.Latest = false;
|
latestVersion.Latest = false;
|
||||||
//buildingItemVersionRecord.Number = latestVersion.Number + 1;
|
|
||||||
}
|
}
|
||||||
//else {
|
|
||||||
// buildingItemVersionRecord.Number = contentItemRecord.Versions.Max(x => x.Number) + 1;
|
|
||||||
//}
|
|
||||||
////The new version should always be the next highest available number.
|
////The new version should always be the next highest available number.
|
||||||
buildingItemVersionRecord.Number = contentItemRecord.Versions.Max(x => x.Number) + 1;
|
buildingItemVersionRecord.Number = contentItemRecord.Versions.Max(x => x.Number) + 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user