Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2009 at 08:50 UTC
Updated:
6 Jan 2010 at 20:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
temp commentedi have same error,
and this look like same error
http://drupal.org/node/622602
Comment #2
temp commentedComment #3
giorgosk@temp
one screenshot should suffice its easy enough to understand
it might sound similar but patch from #622602: 2.6 to 2.7: Queries being created without ORDER BY does not solve this problem
Comment #4
PaulMagrath commentedI am also seeing this bug in Views 2.7 when grouping is applied.
Comment #5
PaulMagrath commentedProblem seems to be in theme/theme.inc in the template_preprocess_views_view_table() function as the $row_classes array is definitely confused about odd and even rows by the time it is passed to views-view-table.tpl.php.
Comment #6
PaulMagrath commentedAttached is a quick fix that works for me. This patch should be applied against a checkout of theme.inc from the 2.x branch in the CVS repository.
Comment #7
PaulMagrath commentedPatch above needs review. If you are experiencing this issue, please try the above patch and then comment here.
Comment #8
giorgoskPatch has to be run from within views/theme
It applies cleanly and works as expected
Tested that it also does not affect the row odd/even assignment when no grouping is used and all works fine !!
its a trivial change and I think its safe to mark it as "reviewed and tested by the community"
Comment #9
temp commentedi don't have errors with it too.
Comment #10
merlinofchaos commentedCommitted to all branches. Note I changed $n to $count because I abhor one letter variable names.