Bug #75460
closed
Replacement of pictures of an image CE in workspaces
Added by Alexander Krist about 8 years ago.
Updated over 7 years ago.
Description
Hello,
there is a bug with FAL images in workspaces.
I can't see the added images in edit mode after i deleted the original image in workspace.
What i've done
1. Create an image CE with an picture. (screenshot1.png)
2. Switch to a Workspace (screenshot2.png)
3. Edit the image CE (screenshot3.png)
4. Delete the picture from live workspace (screenshot4.png)
5. Add new picture(s) (screenshot4.png)
6. Save
I can see the picture(s) in the workspace preview view.
I can see the picture(s) in the BE page module (screenshot5.png)
But i can't see the picture(s) when i like to edit the image CE. (screenshot6.png)
I can add new picutres but
I can't delete the added pictures because I can't see them.
Files
- Status changed from New to Needs Feedback
- Assignee set to Alexander Krist
Sure that this is DCE related?
It looks like a normal content element and a bug in TYPO3 core. Probably the "inline record" part, which is responsible to get FAL relations.
Can you confirm that it is also buggy with regular content elements?
If yes, I move this ticket to TYPO3 CMS project for you.
Thanks for this detailed ticket, with screenshots and clear description!
You are right. I don't know why I opened it here. So how can I move it to Core?
- Status changed from Needs Feedback to New
- Assignee deleted (
Alexander Krist)
- Project changed from 2185 to TYPO3 Core
I've moved the ticket to core for you.
We have the same problem with a Typo3 7.6.4 Installation.
- Category set to Workspaces
- Is Regression set to No
The issue is most likely that in \TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline class, the method getWorkspacedUids
returns an empty array, if there is any deleted record.
However, instead it should just continue the foreach loop and not add the record to the array.
- Status changed from New to Under Review
Does this patch have a chance to get merged? We are using the patched version for several months in project affected by this issue and it solves the problem - we did not notice adverse side effects.
I also wrote it at the review: The main bug was fixed by #76012 3 months ago, question is whether this patch is still necessary.
- Status changed from Under Review to Closed
Change is not required anymore for disappeared children in form-engine in workspace context
The mentioned bugfix doesn't fix the following, quoting from review.
The other two lines are necessary to ensure deleted files in translations are not shown inside workspaces.
If you now have two languages
and images in a content-element in the non-default language.
Now if you delete one of those images and save the content element in the non-default language, you will see that the image is still visible.
That is why the other tow lines existed. Not sure if that hasn't been fixed with another ticket.
If not, we should create a new ticket for that and move the corresponding changes there.
If not, we should create another ticket for that and move the code changes there.
Also available in: Atom
PDF