Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Orderable collections with publish dates enabled causes exception #7

Closed
insight-media opened this issue Apr 18, 2024 · 5 comments

Comments

@insight-media
Copy link

I've noticed an issue when a collection is configured as follows:

  • has publish dates enabled
  • is orderable

The NowScope will be applied, comparing the date on the 'order' field, which throws an exception.

@martyf
Copy link
Contributor

martyf commented Apr 18, 2024

Can you please provide more detail (including the exception) and a link to a repo that replicates the issue.

@insight-media
Copy link
Author

@martyf
Copy link
Contributor

martyf commented May 8, 2024

Thanks for the project - this was great to play with to nail this down.

It is to do with what Statamic does with ordered and dated collections - and it falls back to the order index instead of the date field.

2.0.3 (just tagged) will address this.

Let me know how you go.

@insight-media
Copy link
Author

Thanks @martyf !
Works perfectly.

@martyf
Copy link
Contributor

martyf commented May 16, 2024

Huzzah! Glad it's sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants