Skip to content

Ticket form data is lost when validation fails #25537

Description

@irioborges

Code of Conduct

  • I agree to follow this project's Code of Conduct

Disable plugins

  • I reproduce the issue with all plugins disabled

Is there an existing issue for this?

  • I have searched the existing issues

Version

11.0.8 || 11.0.9

Bug description

When creating a ticket, if a required field is left blank, the expected validation message is displayed indicating that the required field has not been filled in. However, all the data that had already been entered into the form is lost.

This issue persists when upgrading from version 11.0.8 to 11.0.9.

Could this be caused by a configuration issue on my side? Does anyone have any suggestions or best practices for addressing this problem?

I ended up implementing a workaround in JavaScript to prevent the entered data from being lost, but I would prefer to use a proper solution if there is one.

Thank you in advance for any help from the community!

Image

Relevant log output

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions