php8
[web.mtrack] / MTrackWeb / Gitlive.php
index 2376201..3db2ba2 100644 (file)
@@ -18,7 +18,7 @@ class MTrackWeb_Gitlive extends MTrackWeb
         if (!isset($_SERVER['PHP_AUTH_USER'])) {
             $this->h401();
         } 
-        $u = DB_DataObject::factory('Person');
+        $u = DB_DataObject::factory('core_person');
         //$u->active = 1;
         $u->whereAdd('LENGTH(passwd) > 1');
         //$u->company_id = $this->company->id;
@@ -64,13 +64,18 @@ class MTrackWeb_Gitlive extends MTrackWeb
         // only need id / name / status?
         //$ar = $t->fetchAll('id', ');
         $t->selectAdd();
-        $t->selectAdd('mtrack_ticket.id as id , mtrack_ticket.summary as summary');
+        $t->selectAdd('
+                mtrack_ticket.id as id ,
+                mtrack_ticket.summary as summary,
+                mtrack_ticket.description as description
+        ');
         
-        $ar = $t->fetchAll();
+        $t->find();
         $ret = array();
-        foreach($ar as $o) {
-            $ret[] = $o->toArray('%s', 0);
+        while ($t->fetch()) {
+            $ret[] = $t->toArray('%s', 0);
         }
+         
     //    print_R($ar);
         $this->jok($ret);
         $this->jok("WORKED!");