Closed (won't fix)
Project:
D7 Media
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2010 at 21:48 UTC
Updated:
29 Nov 2010 at 23:57 UTC
entity_load() uses FALSE as a second parameter to load all entities, as you can see here http://api.drupal.org/api/drupal/includes--common.inc/function/entity_lo.... media_load_multiple() uses an empty array as a default value, so it returns no media entities instead of all.
This patch changes the default value of the argument to FALSE.
| Comment | File | Size | Author |
|---|---|---|---|
| media_load_multiple.patch | 669 bytes | james.elliott |
Comments
Comment #1
JacobSingh commentedWhy do we want to load all? Is this manifesting as a bug somewhere? Seems preferable to load none if nothing is passed in.
-J
Comment #2
james.elliott commentedSo this is a wrapper around entity_load() that reverses the argument-less behavior of entity_load() ?
Comment #3
JacobSingh commentedIt's based on:
Comment #4
james.elliott commentedI take back my concern in that case. I suppose it is much better to fail loading media by not throwing every media item back at you.
I've already removed the call to this function from the issue I was working on anyway.