<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: File attachment bugfix</title>
  <link>http://www.activecollab.com/forums/topic/1821/</link>
  <description>Recent posts on topic: File attachment bugfix</description>
  <dc:language>en-us</dc:language>
  <pubDate>Thu, 04 Dec 2008 04:35:08 UTC</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/8452/#post8452</link>
    <guid>http://www.activecollab.com/forums/post/8452/#post8452</guid>
    <title>Post #1 by jakekrohn</title>
    <dc:creator>jakekrohn</dc:creator>
    <description><![CDATA[<p>I noticed a problem when attempting to attach a file to an existing message or comment from a client account. Specifically, this error is thrown with debug turned on:<br />
<br />
<pre name="code" class="html">
Fatal error: Using $this when not in object context in /ux0/activecollab/test/application/models/project_files/ProjectFiles.class.php on line 148
</pre><br />
<br />
Changing the line from this:<br />
<br />
<pre name="code" class="html">
$conditions = array('`project_id` =? AND `folder_id` = ? AND `is_private` = ?', $project-&gt;getId(), $this-&gt;getId(), false);
</pre><br />
<br />
to this:<br />
<br />
<pre name="code" class="html">
$conditions = array('`project_id` =? AND `folder_id` = ? AND `is_private` = ?', $project-&gt;getId(), $folder-&gt;getId(), false);
</pre><br />
<br />
does the trick.</p>]]></description>
    <pubDate>Wed, 22 Aug 2007 15:43:37 UTC</pubDate>
  </item>
</channel>
</rss>