Commit a8b783e0 authored by asseldonk's avatar asseldonk
Browse files

filebrowser: prevent move in case of equal source and destination

parent 85f14678
......@@ -216,7 +216,9 @@ var FileBaseEvents = Class.extend({
if (data.type == "d") {
var source = self.FileBase.workflow.path + '/' + fileToBeMoved;
var destination = self.FileBase.workflow.path + '/' + data.name;
self.FileBase.actions.move(source, destination);
if (source != destination) {
self.FileBase.actions.move(source, destination);
}
}
}
});
......
Supports Markdown
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