Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-rc3
Component:
table style
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2011 at 03:33 UTC
Updated:
30 Jan 2012 at 20:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
JamesAn commentedI traced it to the patch submitted in #318944-15: Table style crashes when no fields are visible due to permissions.. It's meant to fix the situation where the $vars['header'] in template_preprocess_views_view_table() never gets set when the user doesn't have permissions to view any of the fields. In the table template, referencing $header would throw an error since it isn't set.
Instead of
$header = array();, I think the fix should've been$vars['header'] = array();.This affects 6.x-3.0-rc3 as well.
Comment #2
JamesAn commentedPatch for 7.x-3.0-rc3 and 6.x-3.0-rc3.
Comment #3
dawehnerJust removed this variable as it's defined above.
Thanks for reporting the issue, committed that to 6.x-3.x and 7.x-3.x