Closed (won't fix)
Project:
Viewfield
Version:
6.x-2.0
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2012 at 12:48 UTC
Updated:
8 Aug 2019 at 14:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
galooph commentedThe patch has a slight flaw.
Here's the post-patched code:
views_get_view() will return empty if the view doesn't exist. If this happens, then
$view->viewfield = $element;will instantiate $view as a standard object. At this point, the first part of theif ($view && $view->access($display))if statement passes, but as a standard object has no access method, PHP throws a fatal error.I've attached a revised patch where the
$view->viewfield = $element;line is moved inside theif ($view && $view->access($display))statement.Comment #2
jerdavisClosing issue as Drupal 6 is no longer actively supported.