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

Bug fix: CRUDController and DynamicCrudController 'renderForm' signatures do not match, causing 'render' to be used and resulting in a TemplateNotFoundException #63

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eljaydub
Copy link
Collaborator

Fix bug where CRUDController would not return control to an instance of DynamicCrudController when rendering a form because the signatures of the two renderForm methods did not match.

Fix bug where CRUDController would not return control to an instance of DynamicCrudController subclass when rendering a form because the signatures of the two renderForm methods did not match so the generic render method was called instead of renderForm.
Add the Override corresponding to the change in the CRUDContoller superclass. This fixes a subtle bug by allowing calls to 'renderForm' to find the correct method instead of reverting to the generic 'render' method, and thereby find the correct view and avoid a TemplateNotFoundException.
Update DynamicCrudController.java
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

Successfully merging this pull request may close these issues.

None yet

1 participant