Closed (fixed)
Project:
Drupal core
Version:
8.0.0-beta1
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2014 at 10:27 UTC
Updated:
24 Oct 2014 at 16:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
leewillis77 commentedIt appears that this is a twig template issue, as duplicate classes are added (Each message inherits the previous message's classes). So - the first message gets
messages messages--errorand the next getsmessages messages--error messages--statusIt seems that this is because the classes are added to a set of classes that is never reset in between messages.
The attached patch resolves this for me, but I'm not a twig expert, so there may be a better way to store/reset the attributes for each iteration through the loop.
Comment #2
larowlanI suspect a1a0cc86c086e8242701ef4a43fbf2398a139886
Comment #3
leewillis77 commentedSorry - that previous patch included a bunch of irrelevant changes. Revised patch attached.
Comment #4
larowlantests coming
Comment #5
larowlanshould be red/green
Comment #6
larowlanComment #8
larowlanmeh merge head first lee
Comment #9
larowlanComment #11
kugta commentedTested by setting six messages of three different types in random order. All the class names are rendered correctly.
Comment #12
star-szrThis makes sense, maybe a comment in the template to explain though?
Comment #13
star-szrComment #14
pfrenssenReplace this with "Contains Drupal\system\...".
Use "{@inheritdoc}", this is already documented on the parent class.
Comment #15
kugta commentedComment #16
kugta commentedComment #17
larowlanComment only changes, back to rtbc
Comment #18
star-szrContains \Drupal
Fixed here and leaving at RTBC because it's so minor.
Comment #20
larowlanThanks, reviewing patches on your phone--
Comment #22
skein commentedNot sure if I have the authority to do it, but tested the patch and all seems fine and the tests have passed. So I will put it in RTBC.
Comment #23
star-szr@skein, yep thanks! Testbot is having a rough day :(
Comment #24
webchickThanks for the fix and the test!
Committed and pushed to 8.0.x. Thanks!