Publish Later doesn't display Date and time picker in Edit mode

Topics: Writing modules
Apr 30, 2012 at 10:54 PM

Hi,

I created a custom Content Type 'News Item' and attached few parts to it, Publish later being one of them.

Then, I developed one module which is responsible for rendering this Content Item on the front end, so that a normal user has access to it and can create and edit News content Items. All is  working well, except few things -

1. In create mode, when saved using Publish Later with the chosen datetime value, and browsing to the item in Admin/Contents/List, I get an error -

Sequence contains more than one element

"Orchard.Web\Modules\Orchard.PublishLater\Views\Parts\PublishLater.Metadata.SummaryAdmin.cshtml    Line: 33"

2. Also, in the Edit mode, the date and timepicker for the Publish later doesn't show up. I put a breakpoint in the javascript, and its not getting hit?

 

Anyone has any idea? Thanks in advance.

Apr 30, 2012 at 11:31 PM

I solved the issue. A javascript bug was causing all the trouble.

Thanks