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.

Comments

damiankloip’s picture

Issue tags: -Needs tests
StatusFileSize
new4.94 KB
new4.33 KB

Status: Needs review » Needs work

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

damiankloip’s picture

Status: Needs work » Needs review
StatusFileSize
new933 bytes
new5.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.