Details
-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
3.8.6
-
None
Description
the overview displays empty items in the collection list when the number of collections is more than the list limit (10, 25, 50...).
Steps to reproduce
create more than 10 infomation collections, go on infocollector/overview/ and use the google navigator to go on next page (/infocollector/overview/(offset)/10)
the list should contain empty item.
to show it in PHP, change the file /infocollector/overview.php including debug output like
eZDebug::writeError( count( $objects ) );
for( $i=0; $i<count( $objects ); $i++ )
{
$collections = eZInformationCollection::fetchCollectionsList( (int)$objects[$i]['contentobject_id'], /* object id */
false, /* creator id */
false, /* user identifier */
false, /* limitArray */
false, /* sortArray */
false /* asObject */
);
$first = $collections[0]['created'];
$last = $first;
for($j=0; $j<count( $collections ); $j++ )
{ $current = $collections[$j]['created']; if( $current < $first ) $first = $current; if( $current > $last ) $last = $current; } $objects[$i]['first_collection'] = $first;
$objects[$i]['last_collection'] = $last;
$objects[$i]['collections']= count( $collections );
}
eZDebug::writeError( count( $objects ) );
Attachments
Issue Links
- duplicates
-
EZP-9745 Collected information list shows empty items
- Closed