Skip to content

Commit

Permalink
Add file with default value 'null' for user id
Browse files Browse the repository at this point in the history
This ensures that the file attachment is added with a reference to the
current user.

Regression introduced by 255dfdf,
caused attachments uploaded together with the issue's submission to be
linked to user '0' instead of the reporter.

Fixes #26128
  • Loading branch information
dregad committed Sep 17, 2019
1 parent f3b4e39 commit 9d840d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/file_api.php
Expand Up @@ -78,7 +78,7 @@ function file_attach_files( $p_bug_id, $p_files, $p_bugnote_id = 0 ) {
'bug',
'', /* title */
'', /* desc */
0, /* user_id */
null, /* user_id */
0, /* date_added */
0, /* skip_bug_update */
$p_bugnote_id );
Expand Down

0 comments on commit 9d840d2

Please sign in to comment.