5.8.3
@comet/cms-admin@5.8.3
Patch Changes
-
91b7343: DAM: Fix the duplicate name check when updating a file
Previously, there were two bugs:
- In the
EditFile
form, thefolderId
wasn't passed to the mutation - In
FilesService#updateByEntity
, the duplicate check was always done
against the root folder if nofolderId
was passed
This caused an error when saving a file in any folder if there was
another file with the same name in the root folder.
And it was theoretically possible to create two files with the same name
in one folder (though this was still prevented by admin-side
validation).
@comet/cms-api@5.8.3
Patch Changes
-
91b7343: DAM: Fix the duplicate name check when updating a file
Previously, there were two bugs:
- In the
EditFile
form, thefolderId
wasn't passed to the mutation - In
FilesService#updateByEntity
, the duplicate check was always done
against the root folder if nofolderId
was passed
This caused an error when saving a file in any folder if there was
another file with the same name in the root folder.
And it was theoretically possible to create two files with the same name
in one folder (though this was still prevented by admin-side
validation).