Closed (fixed)
Project:
Fast Gallery
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2008 at 13:57 UTC
Updated:
27 Oct 2008 at 16:54 UTC
Hi,
I noticed that Sort by Date Taken is incorrect due to the SQL statement in fast_gallery.clsas.php:
...
elseif(variable_get('fast_gallery_sort','dateTaken') == 'dateTaken'){
$result = pager_query("SELECT path,folder,fg.gid " .
"FROM {fast_gallery} as fg, {fast_gallery_exif} as fe " .
"WHERE folder = '$folder' " .
"AND fg.gid = fe.gid " .
"AND fe.field = 'dateTaken' " .
"ORDER BY path".
variable_get('fast_gallery_direction','asc'),
variable_get('fast_gallery_nr_per_page', 30));
}
...
the fix is simple. change:
ORDER BY path
to
ORDER BY value
-nick
Comments
Comment #1
ncy commented6.x-3.1-beta1 is a better implementation.