if ($_POST['do'] == 'insert')
{
- $attachapi = new AttachmentAPI($bugsys);
+ $attachapi = new AttachmentAPI();
$attachapi->set('bugid', $input->in['bugid']);
if (!can_perform('canputattach', $bug['product']))
// handle comment stuff
if (can_perform('canpostcomments', $bug['product']) AND trim($input->in['comment']))
{
- $comment = new CommentAPI($bugsys);
+ $comment = new CommentAPI();
$comment->set('bugid', $input->in['bugid']);
$comment->set('userid', bugdar::$userinfo['userid']);
$comment->set('comment', $input->in['comment']);
$message->errorPermission();
}
- $attachapi = new AttachmentAPI($bugsys);
+ $attachapi = new AttachmentAPI();
$attachapi->set('attachmentid', $input->in['attachmentid']);
$attachapi->dorelations = array();
$attachapi->set_condition();