Skip to content

Validation fails to clear on new Template Variable creation #168

@mindpixel-labs

Description

@mindpixel-labs

Description of the problem
When creating a Template Variable that has empty content, the user is allowed to submit without any reactive/live updating validation errors reporting prior to submitting. After submitting the user is prompted to not provide empty content within the Template Variable.

How To Reproduce
Steps to reproduce the behavior:

  1. Create a Template Variable without any content and submit
  2. Error messages will appear, try to add content but the errors won't clear and you can not submit the form.

Screenshots / Videos / Template Code
variable-error

Environment Details:

  • Version: 5.2.2
  • PHP Version 7.2
  • MySQL Version 5.6
  • OS: Mac OS High Sierra 10.13.6
  • Web Server: Apache

Possible Solution
Since Template Partials can be created blank or through an IDE and synced back in, it's probably best just to remove the requirement for the content field for consistency.

Let me know if you need any other details and thanks!

Metadata

Metadata

Assignees

Labels

Bug: AcceptedBug has been confirmed, is reproducible, and ready to work on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions