This project is read-only.

Content Item not saving Title

Topics: Customizing Orchard
Jan 28, 2012 at 5:28 AM
Edited Jan 28, 2012 at 7:51 AM

I am pretty sure this is a problem with the NGM.Forum module, but I can't be sure quite yet.

When I create a thread it doesn't save the title property. This behavior is consistent on the front-end and the dashboard.

From the front end it calls into the Module's AdminController : CreatePOST action, passing the relevant forumId. However, the threadModel isn't saturated from the Request Parameters at all.

Could this be a problem with the ContentManager? If not, how might I change this guy's code so the thread model is recreated from the post data properly?

The call that does this is:

var thread = _orchardServices.ContentManager.Create<ThreadPart>(ContentPartConstants.Thread, VersionOptions.Draft, (o) => { o.ForumPart = forum; });
var threadModel = _orchardServices.ContentManager.UpdateEditor(thread, this);


actually it might be on the "Create" method. Perhaps the thread isn't instatiated properly?


this was covered in the "Orchard Forum" discussion forum here. Was able to get this to work.