Skip to content
Snippets Groups Projects
Commit 07f2adb3 authored by Florent Torregrosa's avatar Florent Torregrosa Committed by Florent Torregrosa
Browse files

Issue #3337986 by Grimreaper: Attributes error when displaying messages with different types

parent 6cbde48e
Branches 5.0.x
No related tags found
No related merge requests found
......@@ -31,9 +31,14 @@
{% set variant = (type == 'error') ? 'danger' : variant %}
{% for message in messages %}
{#
Ensure each pattern have its own attributes to not interfere on other
messages by changing the main attributes object.
#}
{% set pattern_attributes = create_attribute(attributes.toArray()) %}
{{ pattern('alert', {
'variant': variant,
'attributes': attributes,
'attributes': pattern_attributes,
'message': message,
'dismissible': true
}) }}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment