Bug #44355
closedFileReference::getProperty checks for NULL
0%
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.
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?
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.