{
if (isset($_REQUEST['ajax_body2'])) {
- return $this->get2();
+ return $this->get2($pi);
}
if (!isset($_REQUEST['ajax_body'])) {
return;
}
- function get2()
+ function get2($pi)
{
// the ajax version...
// just returns data which can be rendered using the jtemplate code..
}
// 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);