Changed versionDate to be set from application as possibly related to u4-387
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user