Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Cannot set Changed state to false after updating the Forum Topic

$
0
0

I have tried to update the forum topic as below,

EPiServer.Community.Forum.Topic topic = GetTopic();
EPiServer.Community.Forum.Topic topicClone = topic.CreateWritableClone() as EPiServer.Community.Forum.Topic;
UpdateForumTopic(topicClone);// Edit the forum topic (e.g. change body text etc.) 
topicClone.Changed = topic.Changed; // This could not be done as there is no setter
EPiServer.Community.Forum.ForumHandler.Instance.UpdateTopic(topicClone); // Updating the forum topic will set the Changed state to true

However, I need to preserve the Changed state as it is even after updating the topic. Is there a way to do that?

Additional info on my setup:

EPiServer.Community -  version=9.0.0

EPiServer.CommonFramework - version=9.0.1


Viewing all articles
Browse latest Browse all 9076

Trending Articles