Skip to content

Wrong html response on invalid input with FileAdmin (Modal view) #2925

Description

@samialfattani

If the user enter an invalid name while renaming a file on a modal view, then the error message should be presented into the regular view (not the modal one) which is not the case currently. instead, it shows the error in the modal page which doesn't have a styling!!

here is what i got when i tried to enter an invalid name:

Image

this is happening becaues the <form> submits the value into the backend with a parameter modal=True , so the response would be returned as a modal !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions