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

Error when validate a comment #5

Open
Hywan opened this issue Dec 12, 2012 · 2 comments
Open

Error when validate a comment #5

Hywan opened this issue Dec 12, 2012 · 2 comments
Labels

Comments

@Hywan
Copy link
Contributor

Hywan commented Dec 12, 2012

Try with “foo” as author and an empty space in the comment.

Thanks!

@osaris
Copy link
Owner

osaris commented Dec 12, 2012

Known bug. Form is valid (isValid() is true) because there's content in each field but we strip_tags and trim before saving :

https://github.com/osaris/hoablog/blob/master/Application/Model/Comment.php#L56-62

and the ValidationFailed exception isn't handled in the controller.

I'll handle the exception in the controller as a temporary fix but we should discuss this case to find a more generic solution imho.

@Hywan
Copy link
Contributor Author

Hywan commented Dec 12, 2012

Ok.

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

No branches or pull requests

2 participants