An open API service indexing awesome lists of open source software.

https://github.com/namelesscoder/inline_fal_fix

Fix for https://forge.typo3.org/issues/82221
https://github.com/namelesscoder/inline_fal_fix

Last synced: 12 months ago
JSON representation

Fix for https://forge.typo3.org/issues/82221

Awesome Lists containing this project

README

          

Standalone workaround for IRRE relations in Workspaces
======================================================

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:

1. Catching copies of records that contain `flex` type fields in tables that are workspaces enabled
2. Parsing the DataSource for each field to detect any `inline` field types
3. Copying the `flex` column value from the record that has the correct value to the one that doesn't (see issue)
4. Reading the related records for the draft version of the parent record
5. 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.