Bug #60487
File References override meta data with empty string per default
Status: | Closed | Start date: | 2014-07-23 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Oliver Hader | % Done: | 0% |
|
Category: | IRRE | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 6.1 | Is Regression: | No | |
PHP Version: | 5.3 | Sprint Focus: | ||
Complexity: |
Description
On creating a new file reference (e.g. inside a tt_content element with images), the file reference properties "title", "description" and "alternative" are set to an empty string which results in overriding the meta data of the original file per default. The solution is to allow NULL as default value, which is currently casted to string if being creating as new IRRE child record.
Related issues
History
#1 Updated by Oliver Hader about 1 year ago
- Subject changed from File References override meta data with empty string per defaul to File References override meta data with empty string per default
#2 Updated by Markus Klein about 1 year ago
Hi Olly!
I'm not sure if I read this correctly, but I disagree. Currently the meta data are empty yes, but they do not override since the override checkbox is not enabled by default.
#3 Updated by Oliver Hader about 1 year ago
- Status changed from New to Closed
- TYPO3 Version changed from 6.2 to 6.1
Markus Klein wrote:
Hi Olly!
I'm not sure if I read this correctly, but I disagree. Currently the meta data are empty yes, but they do not override since the override checkbox is not enabled by default.
That's right... I experienced that in a TYPO3 6.1 project where there related issue #54412 has not been back-ported to.
Since the default value could only be a string up to TYPO3 6.2, there's unfortunately no way to back-port it.
A cherry-pick for TYPO3 6.1 can be found here however:
https://github.com/ohader/TYPO3.CMS/commit/372ea7b1150aa3176569b6e16cc4129b030b0994