Bug #63991
closedFAL override checkboxes are always active, when DBAL is installed
100%
Description
In backend module "Filelist" you are able to set meta informations for any files. When inserting a file to content you are also able to override some meta informations (Title, Alt, Description) for this single use.
When DBAL is active the checkboxes 'Override "Default Value"?' are always active, even if the input below is empty:
This also affects the frontend and API. When you try to output eg. the "title" using the method TYPO3\CMS\Core\Resource\FileReference->getProperty() it is empty, because of set checkbox in backend and empty input field. If you fill in the value, then you will get it. But the default value, filled in Filelist module is not available, at all.
This bug seams to appear when saving the relation. Because when you have DBAL deactivated and add a file to content, and then activate DBAL, this problem does not appear (checkboxes keep as set before). Even when updating the relation after DBAL has been installed again this problem does not appear. It just appears for new relations, apparently.
Files
Updated by Marc Bastian Heinrichs almost 10 years ago
Seems like DBAL doesn't like the NULL value for the fields, which was introduced for this feature.
Updated by Armin Vieweg almost 10 years ago
Andreas Fernandez wrote:
Which DBMS do you use with DBAL?
mysqli. We just use DBAL to define a different database for several tables.
Updated by Armin Vieweg almost 10 years ago
The call of fullQuoteArray($row, $table, $no_quote_fields); looks typically like this in DBAL. The fourth parameter $allowNull will never be set. Its default is FALSE. That is the reason why NULL is always replaced by empty string.
Therefore all fields using mode=useOrOverridePlaceholder will fail, if DBAL is installed.
Updated by Gerrit Code Review almost 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36545
Updated by Gerrit Code Review over 9 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/37701
Updated by Armin Vieweg over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a1ca5180d383c7daf9f15114742048568ffc913b.