[BUGFIX] Changing file title changes file name
authorAndreas Wolf <andreas.wolf@typo3.org>
Sat, 1 Sep 2012 16:20:39 +0000 (18:20 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Mon, 3 Sep 2012 11:02:49 +0000 (13:02 +0200)
commitd4f101a0bbf55e4c7fd1fe40d4eb0723068d100a
tree928871323a0e8af53717cbbc8e825cdf8a0b7575
parent1a32d49d13c805ce53fec3cad832a2a7b9add30b
[BUGFIX] Changing file title changes file name

The TCA configuration of sys_file allows direct editing of the file
name. As t3lib_TCEmain does not recognize this change as a
filesystem-related change on saving, the file is not renamed on disk.
Instead, the index record is changed, so the file is not recognized
anymore, leading to a reindexing. Because of this, all references to the
old record seem to break.

This commit makes the name field read-only and adds the title field
(which is not present in the TCA at all currently).

Change-Id: Ice110fa7ea0cc335f8b9fa8a57ecc9fe7527de76
Resolves: #39884
Resolves: #36795
Resolves: #39859
Releases: 6.0
Reviewed-on: http://review.typo3.org/14260
Reviewed-by: Mario Rimann
Tested-by: Mario Rimann
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
t3lib/stddb/tables.sql
t3lib/stddb/tca_sys_file.php
typo3/sysext/lang/locallang_tca.xlf