Skip to content

Commit

Permalink
Fix regression when adding files to project documentation
Browse files Browse the repository at this point in the history
Fixes #26835
  • Loading branch information
atrol authored and dregad committed Apr 1, 2020
1 parent 82f2273 commit 0df0a29
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/file_api.php
Expand Up @@ -893,10 +893,11 @@ function file_add( $p_bug_id, array $p_file, $p_table = 'bug', $p_title = '', $p
'filesize' => $t_file_size,
'file_type' => $p_file['type'],
'date_added' => $p_date_added,
'user_id' => (int)$p_user_id,
'bugnote_id' => is_null( $p_bugnote_id ) ? null : (int)$p_bugnote_id
'user_id' => (int)$p_user_id
);

if( 'bug' == $p_table ) {
$t_param['bugnote_id'] = is_null( $p_bugnote_id ) ? null : (int)$p_bugnote_id;
}
# Oracle has to update BLOBs separately
if( !db_is_oracle() ) {
$t_param['content'] = $c_content;
Expand Down

0 comments on commit 0df0a29

Please sign in to comment.