From f18e59575fcd4588c5705e50d7a3ed164ef644fe Mon Sep 17 00:00:00 2001 From: Casey Neehouse Date: Fri, 24 Aug 2012 21:58:53 +0400 Subject: [PATCH] Changed versionDate to be set from application as possibly related to u4-387 --- src/umbraco.cms/businesslogic/Content.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/umbraco.cms/businesslogic/Content.cs b/src/umbraco.cms/businesslogic/Content.cs index 9bb9204dd7..4c24028e60 100644 --- a/src/umbraco.cms/businesslogic/Content.cs +++ b/src/umbraco.cms/businesslogic/Content.cs @@ -516,7 +516,9 @@ namespace umbraco.cms.businesslogic bool tempHasVersion = hasVersion(); // we need to ensure that a version in the db exist before we add related data - SqlHelper.ExecuteNonQuery("Insert into cmsContentVersion (ContentId,versionId) values (" + this.Id + ",'" + newVersion + "')"); + SqlHelper.ExecuteNonQuery("Insert into cmsContentVersion (ContentId,versionId,versionDate) values (" + this.Id + ",'" + newVersion + "', @updateDate)", + SqlHelper.CreateParameter("@updateDate", DateTime.Now)); + foreach (propertytype.PropertyType pt in this.ContentType.PropertyTypes) { object oldValue = "";