Closed (fixed)
Project:
D7 Media
Version:
7.x-2.0-unstable7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2013 at 10:10 UTC
Updated:
4 Aug 2013 at 20:01 UTC
Just detected this small issue while enabling entity translation on a media field.
If there is a reference to a no more existent entity (at least file_load() returns FALSE), the method _media_filter_add_file_usage_from_fields() fails due to an uncheckd $file against stdClass before calling file_usage_add() which casues a PHP Error.
| Comment | File | Size | Author |
|---|---|---|---|
| media_file_usage_check.diff | 689 bytes | LukyLuke_ch |
Comments
Comment #2
dave reidRe-rolled and commited to 7.x-2.x as well as 7.x-1.x:
http://drupalcode.org/project/media.git/commit/8e264e4
http://drupalcode.org/project/media.git/commit/8bfc0e5