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

ncy’s picture

Status: Active » Closed (fixed)

6.x-3.1-beta1 is a better implementation.