merge change types
authorAlan Knowles <alan@roojs.com>
Mon, 8 Mar 2021 02:30:35 +0000 (10:30 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 8 Mar 2021 02:30:35 +0000 (10:30 +0800)
MTrackWeb/Report.php

index d1bc387..0a61fcc 100644 (file)
@@ -153,8 +153,9 @@ class MTrackWeb_Report extends MTrackWeb
         }
         // in theory... everything else is a 'save'...
         try {
+            // this does not match api!??
             $cs = DB_DataObject::Factory('mtrack_change');
-            $cs->begin( "report:" . $rep->summary, $_POST['comment']);
+            $cs->beginChange( "report:" . $rep->summary, $_POST['comment']);
             $rep->save($cs);
             $cs->commit();
             return $this->get($pi);