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

Exception thrown when a registry page's data class removes its interface #56

Open
robbieaverill opened this issue May 16, 2019 · 0 comments

Comments

@robbieaverill
Copy link
Contributor

CWP 2.3.x-dev

If you create a Registry Page and give it a Data Class of an object that implements RegistryDataInterface, save or publish the page, then remove the interface from that class, the page throws an exception in CMS preview and the frontend.

When you save the page in the CMS it then resets the data class to null and renders "No content".

Kind of edge case behaviour, but we should probably check if the data class implements the RegistryDataInterface before trying to use it, and otherwise render the "No content" message.

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

No branches or pull requests

2 participants