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

Editing a resource with validation errors leads/fails in the Error view #25

Open
Pictor13 opened this issue Aug 8, 2016 · 1 comment
Labels

Comments

@Pictor13
Copy link
Member

Pictor13 commented Aug 8, 2016

When submitting invalid data from the ModifyInputView then the ModifyErrorView is loaded, instead of coming back to the former one for correcting the input.

This happens because the resource is not found.

https://github.com/honeybee/honeybee-agavi-cmf-vendor/blob/master/app/lib/Agavi/App/ActionPack/Resource/Modify/ModifyAction.php#L41

and it fails with:

Twig_Error_Runtime
Variable "resource" does not exist in "html/views/Resource/Modify/ModifyError.twig" at line 4

Might be an error with the validation of the resource.

@graste graste added the bug label Aug 23, 2016
@graste
Copy link
Member

graste commented Sep 13, 2016

Relevant changes that temporarily at least fix that exception and show validation error messages:

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