hopefully the screenshot is good enough for an explanation

Comments

temp’s picture

i have same error,
and this look like same error
http://drupal.org/node/622602

temp’s picture

StatusFileSize
new27.69 KB
giorgosk’s picture

@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

PaulMagrath’s picture

I am also seeing this bug in Views 2.7 when grouping is applied.

PaulMagrath’s picture

Problem 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.

PaulMagrath’s picture

Version: 6.x-2.7 » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new401 bytes

Attached 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.

PaulMagrath’s picture

Patch above needs review. If you are experiencing this issue, please try the above patch and then comment here.

giorgosk’s picture

Status: Needs review » Reviewed & tested by the community

Patch 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"

temp’s picture

i don't have errors with it too.

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Committed to all branches. Note I changed $n to $count because I abhor one letter variable names.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.