Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-9888

information collection overview list (infocollector/overview/) displays empty entries

    XMLWordPrintable

Details

    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

        Activity

          People

            unknown unknown
            dpitard dpitard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: