Actions
Feature #22681
closedAdd config 'replace_single' to columns of type 'group/file'
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-05-19
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:
Description
If you have a filed of type 'group/files', that shall have only _one_file (so maxitems=1), if would be greate to have an option, that replaces the exisitng file, if you upload a new one.
At the moment, you first have to delete the existing file, before you upload a new one. This is espessially a problem, when you use 'disable_controls'=>'list' to ge a better looking form field (See #22679).
Solution:
Add option
'replace_single' => 1,
to field-config in TCA.
This should delete the exisiting entry, before adding a new one.
See attached Patch.
(issue imported from #M14432)
Files
Actions