Active
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Views integration
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 May 2012 at 11:24 UTC
Updated:
3 Jun 2012 at 13:20 UTC
In Views there is this 'views-row-last' class that should be assigned to the last table row. In the views module in theme.inc following code is used
$vars['row_classes'][count($vars['row_classes']) - 1][] = 'views-row-last';
The funny thing about is that the Search API (or Entity API?) keys the row classes array be the entity id, so for example you are having 20 results that includes the node with id 19, this one will get the views-row-last class (which does not necessarily mean it's the last entry).
Nevertheless I'm not sure if it can be fixed in Search API/Entity API or needs a Views patch.
Comments
Comment #1
drunken monkeyDidn't we have a patch once upon a time that fixed this and associated problems by keying the results "normally", with ascending integers? As I recall, there were other instances were Views had problems with unsystematic indices.
In any case, I'm pretty sure this will have to be solved in the Entity API. Or in Views, but let's be realistic here. ;)