<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -66,8 +66,11 @@ module Redmine
             end
             cond.add(Project.allowed_to_condition(user, provider_options[:permission], options)) if provider_options[:permission]
             scope_options[:conditions] = cond.conditions
-            scope_options[:order] = &quot;#{provider_options[:timestamp]} DESC&quot;
-            scope_options[:limit] = options[:limit]
+            if options[:limit]
+              # id and creation time should be in same order in most cases
+              scope_options[:order] = &quot;#{table_name}.id DESC&quot;
+              scope_options[:limit] = options[:limit]
+            end
             
             with_scope(:find =&gt; scope_options) do
               find(:all, provider_options[:find_options])</diff>
      <filename>vendor/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d3386a5af784945f70e2c6d95e95e79946754a22</id>
    </parent>
  </parents>
  <author>
    <name>Jean-Philippe Lang</name>
    <email>jp_lang@yahoo.fr</email>
  </author>
  <url>http://github.com/edavis10/redmine/commit/1ce2ed065a24d954e3527f69848956ddebfac8a7</url>
  <id>1ce2ed065a24d954e3527f69848956ddebfac8a7</id>
  <committed-date>2008-12-02T09:16:06-08:00</committed-date>
  <authored-date>2008-12-02T09:16:06-08:00</authored-date>
  <message>Fixed: activity broken by r2066 with postgresql (#2266).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2083 e93f8b46-1217-0410-a6f0-8f06a7374b81</message>
  <tree>9ff7796b178b1cc840cbbc2a7029fe3353a53ffe</tree>
  <committer>
    <name>Jean-Philippe Lang</name>
    <email>jp_lang@yahoo.fr</email>
  </committer>
</commit>
