The renderExposedForm() method on ExposedFormPluginBase currently returns a rendered string, as with other handlers, we want this to return a render array. Otherwise theme_views_ui_view_preview_section() calls drupal_render() on a string in this case and therefore returns nothing.

A test should be added to check empty areas and exposed filters are rendered in the preview.

Patch to follow.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

damiankloip’s picture

Issue tags: -Needs tests
FileSize
4.94 KB
4.33 KB

Status: Needs review » Needs work

The last submitted patch, 2015165.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review
FileSize
933 bytes
5.85 KB

Need to also fix the ExposedFormTest as renderExposedForm() outputs a render array instead of a string. The test-only patch above is still good, and shows the particular failure that it should do.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Nice stuff!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 07c6057 and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.