Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
file.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2010 at 14:55 UTC
Updated:
25 Mar 2010 at 22:50 UTC
http://api.drupal.org/api/function/file_field_load/7
When building the $fids array, it doesn't check if !empty($item['fid']), the second loop it does. Patch just adds the check to both loops.
| Comment | File | Size | Author |
|---|---|---|---|
| file_notice.patch | 676 bytes | catch |
Comments
Comment #1
yched commentedRight. Just curious : I'm wondering what were the steps you took that lead to an empty $item['fid'] ?
Comment #2
catch@yched: devel generated content with mongodb storage which was being heavily edited - i.e. not really sure. However since there's already a similar check later in the function this looked like an oversight rather than a data issue.
Comment #3
dries commentedCommitted to CVS HEAD. Thanks.