<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Most recent comment first in tickets</title>
  <link>http://www.activecollab.com/forums/topic/2399/</link>
  <description>Recent posts on topic: Most recent comment first in tickets</description>
  <dc:language>en-us</dc:language>
  <pubDate>Fri, 05 Sep 2008 13:18:20 UTC</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/11367/#post11367</link>
    <guid>http://www.activecollab.com/forums/post/11367/#post11367</guid>
    <title>Post #7 by jwtdigital</title>
    <dc:creator>jwtdigital</dc:creator>
    <description><![CDATA[<p>No worries... thanks for your help!  :)</p>]]></description>
    <pubDate>Thu, 10 Jan 2008 17:40:22 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11366/#post11366</link>
    <guid>http://www.activecollab.com/forums/post/11366/#post11366</guid>
    <title>Post #6 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Sorry, to fix that would require much more changes. <br />
<br />
This hack is nice because it's simple and can't do any damage - it just applies to tickets and that's it. If you go any further you'd need much more tweaking and testing.</p>]]></description>
    <pubDate>Thu, 10 Jan 2008 17:19:55 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11365/#post11365</link>
    <guid>http://www.activecollab.com/forums/post/11365/#post11365</guid>
    <title>Post #5 by jwtdigital</title>
    <dc:creator>jwtdigital</dc:creator>
    <description><![CDATA[<p>That works now thanks!  Comments are now in reverse order but the actual comment numbers #1, #2, #3 etc has number one at the top, even though it was actually the *last* comment.<br />
<br />
Only a minor thing but would be helpful if you could suggest a quick fix.<br />
<br />
Many thanks</p>]]></description>
    <pubDate>Thu, 10 Jan 2008 17:15:42 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11364/#post11364</link>
    <guid>http://www.activecollab.com/forums/post/11364/#post11364</guid>
    <title>Post #4 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Add it inside of the class, not above it. See how functions are defined after series of variables defined with var...</p>]]></description>
    <pubDate>Thu, 10 Jan 2008 17:05:38 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11363/#post11363</link>
    <guid>http://www.activecollab.com/forums/post/11363/#post11363</guid>
    <title>Post #3 by jwtdigital</title>
    <dc:creator>jwtdigital</dc:creator>
    <description><![CDATA[<p>Hi Ilija,<br />
I added the code but there was no change?<br />
<br />
My file now looks like this....<br />
<br />
<pre name="code" class="php">&lt;?php


/**
 * Return comment submitted for this project object
 *
 * @param integer $min_visiblity
 * @return array
 */
function getComments($min_visiblity = VISIBILITY_NORMAL) {
  return ProjectObjects::find(array(
    'conditions' =&gt; array(&quot;type = 'Comment' AND parent_id = ? AND state &gt;= ? AND visibility &gt;= ?&quot;, $this-&gt;getId(), STATE_VISIBLE, $min_visiblity),
     'order' =&gt; 'created_on DESC',
  ));
}

  /**
  * Ticket record class
  *
  * @package activeCollab.modules.tickets
  * @subpackage models
  */
  class Ticket extends ProjectObject {
    
    /**
     * Manage permission name
     * 
     * @var string
     */
    var $manage_permission_name = 'tickets_manage';
    
    /**
     * Define fields used by this project object
     *
     * @var array
     */
    var $fields = array</pre></p>]]></description>
    <pubDate>Thu, 10 Jan 2008 16:57:42 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11362/#post11362</link>
    <guid>http://www.activecollab.com/forums/post/11362/#post11362</guid>
    <title>Post #2 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Put this function in Ticket class (Ticket.class.php in activecollab/application/modules/tickets/models/tickets):<br />
<br />
<pre name="code" class="php">/**
 * Return comment submitted for this project object
 *
 * @param integer $min_visiblity
 * @return array
 */
function getComments($min_visiblity = VISIBILITY_NORMAL) {
  return ProjectObjects::find(array(
    'conditions' =&gt; array(&quot;type = 'Comment' AND parent_id = ? AND state &gt;= ? AND visibility &gt;= ?&quot;, $this-&gt;getId(), STATE_VISIBLE, $min_visiblity),
     'order' =&gt; 'created_on DESC',
  ));
}</pre><br />
</p>]]></description>
    <pubDate>Thu, 10 Jan 2008 16:45:00 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11361/#post11361</link>
    <guid>http://www.activecollab.com/forums/post/11361/#post11361</guid>
    <title>Post #1 by jwtdigital</title>
    <dc:creator>jwtdigital</dc:creator>
    <description><![CDATA[<p>Can anyone suggest a way to list comments on tickets starting with the most recent?<br />
<br />
Thanks</p>]]></description>
    <pubDate>Thu, 10 Jan 2008 16:17:18 UTC</pubDate>
  </item>
</channel>
</rss>