Backport of #1863020: View's build fails when an unrelated form on the same page has validation errors

Normally, when one or more of the widgets in the exposed form of a view has errors, Views exits the build process for the view and "empties" it.

However, when such a view with exposed widgets is embedded on a page that has one or more unrelated forms "built" before the view is rendered, the same thing happens again. Views is unable to make out the difference between errors caused by its exposed form and by other forms built on the page before it.

I have a sandbox project that illustrates this issue. On downloading and enabling the project, go to /views-example.


alexpott created an issue.