The overview field atm indirectly calls views_set_current_view which caches the current view. It does this through View::preExecute().

After rendering the view, I think we'll need to call views_set_current_view(null) to unset the active view.

This issue was noticed becasue an image paragraph with an image with blazy formatter was rendered for search indexing and then the style_plugin isn't set for some reason. But it could also have other consequences, since blazySettingsAlter alters some settings for blazy rendering.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

daften created an issue. See original summary.

daften’s picture

Or better, use \Drupal\views\ViewExecutable::postExecute()

daften’s picture

Patch that fixes the issue. This shouldn't have any negative side effects

daften’s picture

Status: Active » Needs review

  • Grayle committed b2b0ae1 on 8.x-1.x authored by daften
    Issue #3145391 by daften: overview_field_load_view leaves the rendered...
Grayle’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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