From cd9f40fdab0709455dfce63359c98775b3f4353c Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Mon, 24 Aug 2020 21:29:05 +0200 Subject: [PATCH] Fix: Correctly exclude fields that are used in the slug by default --- templates/helpers/_fields.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/helpers/_fields.twig b/templates/helpers/_fields.twig index 246bc345b7..3827a1031e 100644 --- a/templates/helpers/_fields.twig +++ b/templates/helpers/_fields.twig @@ -33,8 +33,8 @@ {# Skip over the fields that are used in the slug, unless explicitly told not to, using the `skip_uses` parameter. #} - {% if (record.contentType.fields.slug.uses|default(null) is iterable) and skip_uses|default(true) %} - {% set omittedkeys = omittedkeys|merge(record.contentType.fields.slug.uses) %} + {% if (record.definition.fields.slug.uses|default(null) is iterable) and skip_uses|default(true) %} + {% set omittedkeys = omittedkeys|merge(record.definition.fields.slug.uses) %} {% endif %} {# We also skip over the fields that are explicitly excluded. #}