webhook / webhook-generate

Grunt Static File Generator
MIT License
21 stars 28 forks source link

Publish date: undefined NaN NaN for one-off content #27

Closed liamjones closed 9 years ago

liamjones commented 9 years ago

The scaffolding for one-off content is generating:

Publish date: undefined NaN NaN

I was originally going to submit a PR to stop the output in generated scaffolds (see https://github.com/liamjones/webhook-generate/commit/ee0950f3bbf6e734db81ef9d3b6819f2168e60da) but thinking about it further, maybe I've fixed the wrong problem?

If one-off content has no concept of a publish date should it even be coming through to the scaffold template as a property in fieldInfo?

LtSquigs commented 9 years ago

Yeah looks like they were getting a hidden publish_date field, we've fixed the issue on the cms side, although this will not be retroactive for older content types.