django-cms / django-filer

File and Image Management Application for django
https://django-filer.readthedocs.io/
Other
1.76k stars 577 forks source link

fix: Allow copy with empty suffix #1386

Closed fsbraun closed 1 year ago

fsbraun commented 1 year ago

Description

The copy files and folders admin form allows for a suffix to be entered, which is placed in the filename of the copied file between the base name and the extension.

This PR allows for empty suffices, i.e. the standard case of no change in filename.

Related resources

Checklist

codecov[bot] commented 1 year ago

Codecov Report

Merging #1386 (ce5957a) into master (71d16ca) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1386   +/-   ##
=======================================
  Coverage   73.98%   73.98%           
=======================================
  Files          75       75           
  Lines        3436     3436           
  Branches      552      552           
=======================================
  Hits         2542     2542           
  Misses        722      722           
  Partials      172      172           
Impacted Files Coverage Δ
filer/admin/forms.py 68.29% <100.00%> (ø)