MTrackWeb/Ticket.php
authorAlan Knowles <alan@akkbhome.com>
Mon, 11 Apr 2011 14:41:15 +0000 (22:41 +0800)
committerAlan Knowles <alan@akkbhome.com>
Mon, 11 Apr 2011 14:41:15 +0000 (22:41 +0800)
MTrackWeb/Ticket.php

index 89ae38d..af654ca 100644 (file)
@@ -186,7 +186,7 @@ class MTrackWeb_Ticket extends MTrackWeb
         if (!empty($_FILES['attachments'])) {
             foreach ($_FILES['attachments']['name'] as $fileid => $name) {
                 $i = DB_DataObject::factory('Images');
-                $i->associate($this->issue);
+                $i->object($this->issue);
                 $i->ontable = $this->issue->tableName();
                 $i->onid = $this->issue->id;
                 $i->created_by = $this->authUser->id;