Closed (duplicate)
Project:
Drupal core
Version:
7.0
Component:
file.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2011 at 17:52 UTC
Updated:
4 May 2011 at 22:56 UTC
Jump to comment: Most recent file
Comments
Comment #1
Bob K commentedFunction file_field_prepare_view() in file.field.inc scans an array of files available for display and deletes the unwanted items from that array. The statement at line 207 is meant to leave the array in a tidy set of consecutive ([0],[1],[2]...) elements, but that should wait until after the foreach($items...) loop is finished.
Here's how it should look:
Comment #2
jubatian commentedTested, works! Thanks, problem solved I guess :)
Comment #3
andypostSuppose this should fix but needs tests
Comment #5
andypostThis patch actually fixes bug. But this points that php docs errors? at http://php.net/manual/en/language.types.array.php
Edit using php PHP 5.2.17 debian
Comment #6
andypostThis been fixed in current dev #932426: 2ND file uploaded is displayed when display option is unchecked