From 0b31e0a5b5bf5bcb22d42e7b553fdf553508e276 Mon Sep 17 00:00:00 2001 From: idfx Date: Sat, 2 Feb 2002 14:07:57 +0000 Subject: [PATCH] bugfix: media uploads change order repeatedly (making a chronological photo reportage impossible): order by id --- source/mircoders/storage/DatabaseContentToMedia.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/mircoders/storage/DatabaseContentToMedia.java b/source/mircoders/storage/DatabaseContentToMedia.java index 5bfe5af0..3e5db784 100755 --- a/source/mircoders/storage/DatabaseContentToMedia.java +++ b/source/mircoders/storage/DatabaseContentToMedia.java @@ -101,7 +101,7 @@ public class DatabaseContentToMedia extends Database implements StorageObject{ String subselect = "id in (select media_id from " + theTable + " where content_id=" + id+")"; try { - returnList = DatabaseMedia.getInstance().selectByWhereClause(subselect,-1); + returnList = DatabaseMedia.getInstance().selectByWhereClause(subselect,"id"); } catch (Exception e) { theLog.printDebugInfo("-- get uploadedMedia failed " + e.toString()); throw new StorageObjectException("-- get uploadedMedia failed " + e.toString()); -- 2.11.0