Closed (fixed)
Project:
Media Gallery
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2011 at 20:52 UTC
Updated:
13 Jul 2012 at 05:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
David_Rothstein commentedLooks to me like this might be a bug.
In theory the module does this for you, if you choose the "create a block of most recently added media" option when editing the gallery. Then if you set the block to 1 row x 1 column, the block will only show one item - which should be the most recent one.
However, I just tried that now and it doesn't seem to actually be showing the most recent item anymore.
Comment #2
rkp103 commentedIs there any fix on this?
Comment #3
effulgentsia commentedNo fix yet. The culprit is this code in media_gallery_view():
which undoes the ordering performed in media_gallery_block_view().
Comment #4
mmeytin commentedAny updates on this issue? Doesn't seem to work in the most recent dev version of the Media Gallery. Thanks!
Comment #5
moloc commentedmedia_gallery_block_view() creates an ordering in the property media_gallery_media and not media_gallery_media_original.
There is no need to distinguish between view-mode full and media_gallery_block in this part of code.
Here is a patch.
Comment #6
helmo commentedGreat, that fixes the problem.
Comment #7
lsolesen commented