bugfix: media uploads change order repeatedly (making a chronological photo reportage...
authoridfx <idfx>
Sat, 2 Feb 2002 14:07:57 +0000 (14:07 +0000)
committeridfx <idfx>
Sat, 2 Feb 2002 14:07:57 +0000 (14:07 +0000)
source/mircoders/storage/DatabaseContentToMedia.java

index 5bfe5af..3e5db78 100755 (executable)
@@ -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());