Skip to content
Snippets Groups Projects

Resolve #3219839 "Arguments not passed 4.0.x"

Rebased !20 onto 4.0.x.

Closes #3219839

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
146 147 }
147 148
148 // Return empty if the view is empty.
149 $view_results = views_get_view_result($options['vid'], $options['display']);
150 if (!$view_results && !empty($options['vid']) && !empty($options['display'])) {
151 // If the initial view is empty, check the attachments.
152 $view = Views::getView($options['vid']);
153 $view->setDisplay($options['display']);
154 $display = $view->getDisplay();
155 $attachments = $display->getAttachedDisplays();
149 // Execute view to get any possible custom alter changes in output
150 // and checks the result with all these changes before rendering.
151 $this->executeView($view, $options['display'], $args);
156 152
157 // If there are attachments, check if they are empty.
153 // Get the current display object and check if it is empty and doesn't have any additional handlers.
  • Latest commit introduced some phpcs issues, but otherwise the changes seem to make sense abstracting things into a new method.

  • Matthew Radcliffe requested changes

    requested changes

  • Anton Vakhta added 1 commit

    added 1 commit

    • 7d9c8d6c - Issue #3219839 by peter.thorndycraft, Anwaikurn: Arguments not passed to ViewContent->render

    Compare with previous version

  • Please register or sign in to reply
    Loading