From 6ddbb58b3132c5020a64284a3c905592dbbb6def Mon Sep 17 00:00:00 2001 From: Ian Ward Date: Mon, 11 Sep 2023 09:37:12 -0400 Subject: [PATCH] related resources 2.9 fix --- .../internal/scheming/package/snippets/resource_form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/canada/templates/internal/scheming/package/snippets/resource_form.html b/ckanext/canada/templates/internal/scheming/package/snippets/resource_form.html index e69b3087d..0546bba9a 100644 --- a/ckanext/canada/templates/internal/scheming/package/snippets/resource_form.html +++ b/ckanext/canada/templates/internal/scheming/package/snippets/resource_form.html @@ -20,7 +20,7 @@ {% endif %}
- {%- if (not data.related_type) or c.action=='new_resource' -%} + {%- if (not data.related_type) or c.action=='new' -%}
{{ _("Metadata Fields for Resources Only (Not for Related Items)") }} @@ -36,7 +36,7 @@
{% endif %} - {%- if data.related_type or c.action=='new_resource' -%} + {%- if data.related_type or c.action=='new' -%}
{{ _("Metadata Fields for Related Items Only") }}