Skip to content

Commit

Permalink
Fixes #9737: bugnote_add.php contains undefined t_note_type
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5733 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Oct 25, 2008
1 parent 5974c4a commit cfd743a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bugnote_add.php
Expand Up @@ -53,9 +53,10 @@
# ... override the current project. This to avoid problems with categories and handlers lists etc.
$g_project_override = $t_bug->project_id;
}

# @@@ VB: Do we want to differentiate email notifications for normal notes from time tracking entries?
$t_bugnote_added = bugnote_add( $f_bug_id, $f_bugnote_text, $f_time_tracking, $f_private, $t_note_type );

// We always set the note time to BUGNOTE, and the API will overwrite it with TIME_TRACKING
// if $f_time_tracking is not 0 and the time tracking feature is enabled.
$t_bugnote_added = bugnote_add( $f_bug_id, $f_bugnote_text, $f_time_tracking, $f_private, BUGNOTE );
if ( !$t_bugnote_added ) {
error_parameters( lang_get( 'bugnote' ) );
trigger_error( ERROR_EMPTY_FIELD, ERROR );
Expand Down

0 comments on commit cfd743a

Please sign in to comment.