Skip to content

FlashHelper doesn't seem to fix up the error class when it's not an array #185

@moldedjelly

Description

@moldedjelly

This is a:

  • bug

  • BootstrapUI Version: v0.5.0

What you did

I noticed that the Flash messages with general class "error" weren't being fixed up to "alert-danger".
So I updated line 72 of src/View/Helper/FlashHelper.php, adding an else for when it's not an array:

            if (is_array($message['params']['class'])) {
                $message['params']['class'][] = 'alert-' . $class;
            } else {
                $message['params']['class'] = 'alert-' . $class;
            }

I really hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions