Arguments not passed to ViewContent->render

Created on 21 June 2021, over 3 years ago
Updated 22 May 2024, 7 months ago

In ViewContent->render, we collect and process the arguments passed into the view here:

$args = empty($options['args']) ? [] : array_map('trim', explode('/', $options['args']));

but when we check to see if the view has results, we don't pass in the arguments:

$view_results = views_get_view_result($options['vid'], $options['display']);
    if (!$view_results && !empty($options['vid']) && !empty($options['display'])) {

If you're using arguments in the view, this could easily incorrectly display an empty view. Incoming patch to pass the arguments into the view_results check, if set.

πŸ› Bug report
Status

Needs work

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom peter.thorndycraft

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024