88137[BUGFIX] Show all file references even when one is missing
Commit message
Review
-
Code review CR +2 Done
- Andreas Kienast +2
- Oliver Wand +1
- Christian Kuhn +1
-
Verified V +2 Done
- Andreas Kienast +2
- Christian Kuhn +1
- core-ci +1 CI
Issues 1
Files 1
Review log 89
-
Garvin Hicking uploaded patch set 1 02/10/25, 15:05
-
Christian Kuhn voted on patch set 1 CR +1 V +1 02/10/25, 15:08
-
Oliver Wand voted on patch set 1 CR +1 02/10/25, 15:11
-
core-ci voted on patch set 1 V +1 02/10/25, 15:13 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/73898
-
Christian Kuhn voted on patch set 1 V 0 02/10/25, 15:32
-
Garvin Hicking commented on patch set 1 02/11/25, 08:35
Here's how you can reproduce the issue: - Create new content element on a page (e.g. textmedia) (for me: tt_content.uid=2713) - Assign picture: upload a new file and assign it (for me: sys_file.uid=66770 + sys_file_reference.uid=5050) - This creates these sys_refindex entries: - recuid=2713, tablename=tt_content, field=image, ref_table = sys_file_reference, ref_uid = 5050 - recuid=5050, tablename=sys_file_reference, field=uid_local, ref_table = sys_file, ref_uid = 66770 - Create another CE (tt_content.uid=2714) - Assing THE SAME picture again (sys_file_reference.uid=5051) - This creates these sys_refindex entries: - recuid=2714, tablename=tt_content, field=image, ref_table = sys_file_reference, ref_uid = 5050 - recuid=5051, tablename=sys_file_reference, field=uid_local, ref_table = sys_file, ref_uid = 66770 - Now go to the file list, pick the picture, click it's "i" info element, scroll to the reference section at the bottom - Two references will be shown, to 2713 and 2714 - NOW: Remove sys_refindex with recuid=5050 in the database or remove sys_file_reference.uid=5050 (you need to do that in the database directly, a deleted=1 record will NOT suffice because then relations will still be resolved, as these ignore deleted-restrictions) - Then the popup will show NO reference anymore, instead of showing the one remaining reference. - When applying the patch, the second reference will appear. -
Christian Kuhn voted on patch set 1 V +1 02/11/25, 09:57
-
Andreas Kienast voted on patch set 1 CR +2 V +2 02/11/25, 11:24
-
Andreas Kienast merged patch set 2 02/11/25, 11:25