Switch the 'modify' code of admin/field.php to use templates
[bugdar.git] / editreport.php
index a3fb714fe2a648cb62192ca3cef92577f73c6fd7..09d941e46e1c4a76a984cab299131140433c990f 100644 (file)
@@ -19,7 +19,6 @@
 || ###################################################################
 \*=====================================================================*/
 
-define('SVN', '$Id$');
 
 $focus['showreport'] = 'focus';
 
@@ -50,7 +49,7 @@ if (!check_bug_permissions($bug))
 // setup logging
 require_once('./includes/class_logging.php');
 $log = new Logging();
-$log->set_bugid($bug['bugid']);
+$log->setBugId($bug['bugid']);
 
 $notif = new NotificationCenter();
 
@@ -93,7 +92,7 @@ if ($_POST['do'] == 'update')
                $message->errorPermission();
        }
        
-       $log->add_data(true, $bugapi->record, $log->getCommonFields(), true);
+       $log->addData(true, $bugapi->record, $log->getCommonFields(), true);
        
        // -------------------------------------------------------------------
        // handle automations
@@ -201,7 +200,7 @@ if ($_POST['do'] == 'update')
        // handle logging and perform updates
        
        $notif->setBugData($bugapi->record, array_merge($bugapi->record, $bugapi->values));
-       $log->add_data(false, $bugapi->values, $log->getCommonFields(), true);
+       $log->addData(false, $bugapi->values, $log->getCommonFields(), true);
        
        if (!$message->hasErrors())
        {
@@ -215,7 +214,7 @@ if ($_POST['do'] == 'update')
        // -------------------------------------------------------------------
        // do diff history
 
-       $log->update_history();
+       $log->updateHistory();
        
        $notif->sendBugChangeNotice();
        
@@ -224,10 +223,4 @@ if ($_POST['do'] == 'update')
        $message->redirect(T('Your changes to the bug have been saved.'), "showreport.php?bugid=$bug[bugid]");
 }
 
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
 ?>
\ No newline at end of file