Commit 72ad1221 authored by Mario's avatar Mario
Browse files

only check for duplicate filenames if we are actually renaming a file

parent 42d3f689
Pipeline #369207 passed with stage
in 2 minutes and 58 seconds
......@@ -2573,7 +2573,7 @@ function attach_move($channel_id, $resource_id, $new_folder_hash, $newname = '')
dbesc($new_folder_hash)
);
if($s) {
if($s && $filename !== $oldfilename) {
$overwrite = get_pconfig($channel_id,'system','overwrite_dup_files');
if($overwrite) {
/// @fixme
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment