Thomas Hochstein 307f1c3dad Prevent renaming ML object into existing file.
When renaming objects in the Media Library,
s9y didn't check if a file with the same
name already exists, resulting in a file
name collision deleting both files from
the database _and_ from disk.

Add a check to avoid that.

An error message would be nice, too, but
that may be added later on.

Tested on s9y-stable test instance.

Cherry-picked from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-20 17:56:29 +01:00
..
2019-08-17 13:57:54 +02:00
2017-04-06 22:26:07 +02:00
2019-04-27 18:13:16 +02:00
2017-04-06 22:26:07 +02:00
2017-04-06 22:26:07 +02:00
2015-08-07 15:46:36 +02:00
2014-12-10 14:34:54 +01:00