Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
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.