I just ran into this issue while working on a module that creates its own fields.
I was testing the module by adding new fields through the fields ui but the fields were not being saved. I couldn't figure out why until I realized that an error message was being output but it was being added to the "message okay" box instead of the "message error" box.
It looks like the errors being output through drupal_set_message should have a $type property added.
Comment | File | Size | Author |
---|---|---|---|
#1 | without patch.PNG | 43.24 KB | Devin Carlson |
#1 | with patch.PNG | 44.74 KB | Devin Carlson |
#2 | change-message-type-to-error-1308994-2.patch | 1.29 KB | Devin Carlson |
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedScreenshots of what the errors look like currently and when set as warnings.
Comment #2
Devin Carlson CreditAttribution: Devin Carlson commentedAnd a patch to add a type of 'error' to the messages I encountered.
Comment #3
droplet CreditAttribution: droplet commentedComment #4
yoroy CreditAttribution: yoroy commentedGood catch, thanks for the screenshots.
Comment #5
Dries CreditAttribution: Dries commentedCommitted to 7.x and 8.x. Nice catch.