Skip to content

Instantly share code, notes, and snippets.

@nfourtythree
Last active August 29, 2015 14:11
Show Gist options
  • Save nfourtythree/49624385c01137dd68e7 to your computer and use it in GitHub Desktop.
Save nfourtythree/49624385c01137dd68e7 to your computer and use it in GitHub Desktop.
Bug in Craft CMS when using dateUpdated or dateCreated and .ids()
{# Setup Data #}
{% set stuff = craft.entries({
section: "mySection",
order: "dateUpdated ASC",
}) %}
{# Retrieve Ids #}
{% set ids = stuff.ids() %}
{#
Produces and error that says the field dateUpdated is ambiguous
Works fine when using .find() etc
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment