[BUGFIX] Missing and invalid warnings on referenced files 04/30204/4
authorOliver Hader <oliver@typo3.org>
Mon, 19 May 2014 10:02:36 +0000 (12:02 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 23 Oct 2014 21:48:41 +0000 (23:48 +0200)
commite26961c87c9cca07b7fa7c2b0a924e06dc9a09aa
treeed96a99f681de0f1a1c36fd9da014d032ae7d53e
parent618c458b9f1d11c6041b575e18ae08f2951899bc
[BUGFIX] Missing and invalid warnings on referenced files

The file list module in the backend offers the possibility to
delete files. An interesting use case is the deletion of files
that still have references to other entities. However, currently
proper warnings are only available for sys_file reference.

a) before deleting a file, a popup should be shown
   this does not work since the API is called with
   the identifier instead of a proper UID value

b) after calling the API for deleting a file, references
   should be pointed out
   references are checked, however the description on the
   file usage is missing due to hardcoded "sys_file_reference"
   triggers - thus, no other references are printed out

Resolves: #58913
Releases: master, 6.2, 6.1
Change-Id: Id80361427abc17bda3461c2d00750c4790798c88
Reviewed-on: http://review.typo3.org/30204
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php
typo3/sysext/filelist/Classes/FileList.php