Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field content doesn't show for invalid records #38

Open
vlad-ghita opened this issue Jan 8, 2022 · 0 comments
Open

Field content doesn't show for invalid records #38

vlad-ghita opened this issue Jan 8, 2022 · 0 comments

Comments

@vlad-ghita
Copy link

vlad-ghita commented Jan 8, 2022

Probably same issue as:
bolt/redactor#28

Reproduce:

  • Have custom ContentValidator returning a dummy ConstraintViolation
    eg: in bolt core source, change src/Validator/ContentValidator.php validate() method to:
    public function validate(Content $content)
    {
        $constraints = $this->getConstraints($content->getContentType());

        $constraints->add(new ConstraintViolation("zzz", null, [], null, null, null));

        return $constraints;
    }
  • Have an Article field
  • Populate Article field
  • Save
  • Upon reload, Article field value is not displayed.

Example form before save:
form_before_save

Example form after save:
form_after_save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant