File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1041,11 +1041,12 @@ function file_copy_attachments( $p_source_bug_id, $p_dest_bug_id ) {
1041
1041
1042
1042
# prepare the new diskfile name and then copy the file
1043
1043
$ t_file_path = $ t_bug_file ['folder ' ];
1044
- $ t_new_diskfile_name = $ t_file_path . file_generate_unique_name ( 'bug- ' . $ t_bug_file ['filename ' ], $ t_file_path );
1044
+ $ t_new_diskfile_name = file_generate_unique_name ( 'bug- ' . $ t_bug_file ['filename ' ], $ t_file_path );
1045
+ $ t_new_diskfile_location = $ t_file_path . $ t_new_diskfile_name ;
1045
1046
$ t_new_file_name = file_get_display_name ( $ t_bug_file ['filename ' ] );
1046
1047
if (( config_get ( 'file_upload_method ' ) == DISK ) ) {
1047
- copy ( $ t_file_path .$ t_bug_file ['diskfile ' ], $ t_new_diskfile_name );
1048
- chmod ( $ t_new_diskfile_name , config_get ( 'attachments_file_permissions ' ) );
1048
+ copy ( $ t_file_path .$ t_bug_file ['diskfile ' ], $ t_new_diskfile_location );
1049
+ chmod ( $ t_new_diskfile_location , config_get ( 'attachments_file_permissions ' ) );
1049
1050
}
1050
1051
1051
1052
$ query = "INSERT INTO $ t_mantis_bug_file_table
You can’t perform that action at this time.
0 commit comments