namelesscoder / inline-fal-fix
Installs: 240
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- typo3/cms-workspaces: ^7.6|^8.7|^9.0
This package is auto-updated.
Last update: 2024-11-12 04:39:34 UTC
README
This TYPO3 extension exists for a sole purpose: to fix the bug reported on https://forge.typo3.org/issues/82221
Strategy
The workaround is implemented by hooking into DataHandler to perform the following logic when in a draft workspace:
- Catching copies of records that contain
flex
type fields in tables that are workspaces enabled - Parsing the DataSource for each field to detect any
inline
field types - Copying the
flex
column value from the record that has the correct value to the one that doesn't (see issue) - Reading the related records for the draft version of the parent record
- Updating all relation-specific column values from the record that has the right values to the other (see issue)
The result is a corrected database record structure for both the draft and placeholder records, which prevents the described duplication issue when the workspace is published.
Installation
The extension is available through Packagist:
composer require namelesscoder/inline-fal-fix
The extension can also be downloaded manually from GitHub and installed on non-composer enabled TYPO3 sites.
Rationale
The reason this extension exists is the rather long perspective of solving this problem in the TYPO3 core itself. This could take a significant amount of time - meanwhile, this extension is provided to work around the specific issue until an official fix can be released.