DataObjects/Mtrack_change.php
authorAlan Knowles <alan@roojs.com>
Mon, 31 Dec 2018 04:05:19 +0000 (12:05 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 31 Dec 2018 04:05:19 +0000 (12:05 +0800)
DataObjects/Mtrack_change.php

index f7cdc0b..edcbc1e 100644 (file)
@@ -575,16 +575,7 @@ class Pman_MTrack_DataObjects_Mtrack_change extends DB_DataObject
         
         $repo = $mc->objectCached();
          
-        $object = null;
-        $branch = null;
-        if ($repo->impl()->shortname == 'greengarden') {
-            $object = 'branch';
-            $branch = 'roojs';
-        }
-        
-        //$this->impl()->debug=1;
-        //print_r(array('since'=> '{'.$start.'}' , 'before' => '{'.$end .'}'));
-        $res = $repo->impl()->history('.', array('since'=> '{'.$start.'}' , 'before' => '{'.$end .'}'), $object, $branch);
+        $res = $repo->impl()->history('.', 1, 'rev', $this->rev);