Closed (fixed)
Project:
No Markup
Version:
1.0.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2022 at 20:01 UTC
Updated:
9 Aug 2022 at 07:39 UTC
Jump to comment: Most recent
I am finding that the last field item of a multivalue field is not rendering when the "nomarkup" setting is turned on for the field.
I am using the module with a multivalue paragraph/entity reference revisions field but I think the issue will happen with other multivalue field types.
Looking at the field--nomarkup.html.twig template the issue seems to be line 8:
{{- items[items|length].content -}}
I think it needs to be:
{{- items[items|length - 1].content -}}
to access the last element.
N/A
N/A
N/A
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
e0ipsoFantastic catch!!
Comment #5
e0ipso