Try our conversational search powered by Generative AI!
AI OnAI Off
Jan 16, 2017
Jun 27, 2018
CMS Core
Closed, Fixed and tested
public ScheduledJob()
|
{
|
var contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>();
|
var page = contentLoader.Get<ArticlePage>(new ContentReference(32));
|
IsStoppable = true;
|
}
|
This is causing custom properties (like MainBody) on the model to not load correctly (they only exist in the Properties property, and are not set on the actual model).
Workaround: Do not call IContentLoader in constructor.