Project

General

Profile

Actions

Bug #44355

closed

FileReference::getProperty checks for NULL

Added by Bernhard Schmitt almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2013-01-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

... but if I enter something in the FileReference record in BE and clear the field, the value will be an empty string instead of NULL, so the fallback won't work anymore.

Comparing against both NULL and '' should fix this.

Actions #1

Updated by Bernhard Schmitt almost 12 years ago

Seems like this is intended though, the checkboxes in BE can be used to set the value to NULL.
Correct?

Actions #2

Updated by Helmut Hummel almost 12 years ago

  • Status changed from New to Rejected

Bernhard Schmitt wrote:

Seems like this is intended though, the checkboxes in BE can be used to set the value to NULL.
Correct?

Hi yes. If the checkbox is set, this means that the property of the original file will be used. If you uncheck the checkbox, the value of the field in the reference will be used, even if it is empty. By that an editor can decide to overwrite a property of a file with an empty value.

So it is really a feature not a bug.

Actions

Also available in: Atom PDF