Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Problem with fal relations on inserting pages from the clipboard (make copy of a page) #2146

Open
steampixel opened this issue Dec 15, 2023 · 1 comment

Comments

@steampixel
Copy link

steampixel commented Dec 15, 2023

Typo3 12.4.7
Current dev branch of flux from October 10th
Edit: Confirmed the bug with today's dev version of flux (15th December)

Create a new page template and insert the following file relation field:

  1. <flux:field.inline.fal name="image" required="false" label="Bild" collapseAll="true"></flux:field.inline.fal>
  2. Create a new page in typo that uses the template
  3. Select an image by editing the page configuration
  4. Save the page
  5. A new entry should appear in sys_file_reference. The pid and the uid_foreign should both point to the page uid
  6. Copy the page to the clipboard using the context menu inside the backend page tree
  7. Use the context menu again to insert a copy of the page somewhere

Expected behavior: The new page should have the file reference attached to it

Observed behavior: The image field of the new page is empty. The original source page has now two image references. The table sys_file_reference now holds two records with uid_foreign pointing to the source page.

This problem affects only file references created with flux:field.inline.fal inside pages. Content elements are not affected. Also TCA fields are not affected by this bug.

How to clean up the database quickly after this crash (Remove all broken file references on pages, normally pid and uid_foreign are equal):

DELETE FROM sys_file_reference WHERE tablenames = 'pages' AND uid_foreign != pid

@steampixel steampixel changed the title BUG: Problem with fal relations on inserting pages from the clipboard (make a copy of the page) BUG: Problem with fal relations on inserting pages from the clipboard (make a copy of a page) Dec 15, 2023
@steampixel steampixel changed the title BUG: Problem with fal relations on inserting pages from the clipboard (make a copy of a page) BUG: Problem with fal relations on inserting pages from the clipboard (make copy of a page) Dec 15, 2023
@steampixel
Copy link
Author

Confirmed the bug with today's dev version of flux (15th December)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant