foreach ($obsoletes as $attachmentid)
{
$log = new Logging;
- $log->set_bugid($bug['bugid']);
- $log->set_attachmentid($attachmentid);
- $log->add_data(true, array('obsolete' => 0), array('obsolete'), false, 'attachment');
- $log->add_data(false, array('obsolete' => 1), array('obsolete'), false, 'attachment');
- $log->update_history();
+ $log->setBugId($bug['bugid']);
+ $log->setAttachmentId($attachmentid);
+ $log->addData(true, array('obsolete' => 0), array('obsolete'), false, 'attachment');
+ $log->addData(false, array('obsolete' => 1), array('obsolete'), false, 'attachment');
+ $log->updateHistory();
}
}
else
{
$log = new Logging();
- $log->set_bugid($bug['bugid']);
- $log->set_attachmentid($input->in['attachmentid']);
+ $log->setBugId($bug['bugid']);
+ $log->setAttachmentId($input->in['attachmentid']);
$attachapi->fetch();
- $log->add_data(true, $attachapi->record, array('attachment'), true, 'attachment');
+ $log->addData(true, $attachapi->record, array('attachment'), true, 'attachment');
$attachapi->set('description', $input->in['description']);
$attachapi->set('obsolete', $input->in['obsolete']);
$attachapi->update();
- $log->add_data(false, $attachapi->values, array('attachment'), true, 'attachment');
+ $log->addData(false, $attachapi->values, array('attachment'), true, 'attachment');
- $log->update_history();
+ $log->updateHistory();
$message->redirect(T('The attachment was successfully modified.'), "showreport.php?bugid=$bug[bugid]");
}
// setup logging
require_once('./includes/class_logging.php');
$log = new Logging;
- $log->set_bugid($bug['bugid']);
- $log->set_commentid($comment['commentid']);
+ $log->setBugId($bug['bugid']);
+ $log->setCommentId($comment['commentid']);
- $log->add_data(true, $commentapi->record, array('comment', 'hidden'), false, 'comment');
- $log->add_data(false, $commentapi->values, array('comment', 'hidden'), false, 'comment');
+ $log->addData(true, $commentapi->record, array('comment', 'hidden'), false, 'comment');
+ $log->addData(false, $commentapi->values, array('comment', 'hidden'), false, 'comment');
$lastgood = $db->queryFirst("
SELECT comment.* AS comment, user.displayname AS username
WHERE bugid = $bug[bugid]"
);
- $log->update_history();
+ $log->updateHistory();
$message->redirect(T('The comment was modified successfully.'), "showreport.php?bugid=$bug[bugid]");
}
// setup logging
require_once('./includes/class_logging.php');
$log = new Logging();
-$log->set_bugid($bug['bugid']);
+$log->setBugId($bug['bugid']);
$notif = new NotificationCenter();
$message->errorPermission();
}
- $log->add_data(true, $bugapi->record, $log->getCommonFields(), true);
+ $log->addData(true, $bugapi->record, $log->getCommonFields(), true);
// -------------------------------------------------------------------
// handle automations
// 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())
{
// -------------------------------------------------------------------
// do diff history
- $log->update_history();
+ $log->updateHistory();
$notif->sendBugChangeNotice();
$api->values = $bug;
$log = new Logging();
- $log->set_bugid($bug['bugid']);
- $log->add_data(true, $bug, $log->getCommonFields(), true);
+ $log->setBugId($bug['bugid']);
+ $log->addData(true, $bug, $log->getCommonFields(), true);
if ($input->in['status'] AND can_perform('canchangestatus', $bug['product']))
{
process_custom_fields($api, $message, false, true);
- $log->add_data(false, $api->values, $log->getCommonFields(), true);
+ $log->addData(false, $api->values, $log->getCommonFields(), true);
$api->update();
- $log->update_history();
+ $log->updateHistory();
}
$message->redirect(T('The specified bugs have been updated and you will now return to your search results.'), 'search.php?searchid=' . $input->in['searchid']);