87883[BUGFIX] Fix various issues in conjunction with `f:be.tableList`
Commit message
Review
-
Code review CR +2 Done
- Andreas Kienast +2
- Georg Ringer +1
- Garvin Hicking +1
- Markus Klein +1
-
Verified V +2 Done
- Andreas Kienast +2
- Georg Ringer +1
- Garvin Hicking +1
- core-ci +1 CI
Issues 1
Files 7
- Build/Sources/TypeScript/backend/multi-record-selection-delete-action.ts+2 −2
- Build/Sources/TypeScript/backend/recordlist.ts+0 −36
- typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php+4 −1
- typo3/sysext/backend/Resources/Private/Templates/RecordList.html+7 −5
- typo3/sysext/backend/Resources/Public/JavaScript/multi-record-selection-delete-action.js+1 −1
- typo3/sysext/backend/Resources/Public/JavaScript/recordlist.js+1 −1
- typo3/sysext/fluid/Classes/ViewHelpers/Be/TableListViewHelper.php+2 −0
Review log 2732
Show 67 earlier messages
-
Garvin Hicking uploaded patch set 1 01/25/25, 20:24
-
core-ci voted on patch set 1 V +1 01/25/25, 20:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/73002
-
Georg Ringer voted on patch set 1 CR +1 V +1 01/25/25, 20:34
-
Simon Schaufelberger voted on patch set 1 CR +1 V +1 01/25/25, 20:42
-
Garvin Hicking commented on patch set 1 CR -1 01/25/25, 20:52
Blocking this for the time being, I necessarily want @akienast@scripting-base.de to give feedback before merging. -
Florian E. commented on patch set 1 CR +1 01/26/25, 08:54
Seems to work for me, but when I use the "Selection:" and press delete, I can only delete individual entries and not the selected records from the list. I'm not sure if this is the normal behavior. -
Garvin Hicking uploaded patch set 2
CR +1V +101/26/25, 11:19Adjust for multi record deletion
-
Garvin Hicking commented on patch set 2 CR -1 01/26/25, 11:20
Reply
Hhhhhm, there's another problem, yes. For multi-record deletion you need to delete the top right "Delete" button in the recordlist header. The trashcan icon next to a record is always only for a single record. This header delete icon though also throws a JavaScript error: ``` recordlist.js?bust=1737889280:13 Uncaught TypeError: Cannot read properties of undefined (reading 'button.close') at HTMLDocument.deleteMultiple (recordlist.js?bust=1737889280:13:5438) at HTMLButtonElement.<anonymous> (multi-record-selection.js?bust=1737889280:13:4417) at HTMLDocument.<anonymous> (regular-event.js?bust=1737889280:13:433)``` In recordlist.ts the label is accessed via: ``` TYPO3.lang['button.close'] ``` with no dataset attribute as the "first" fallback. I've now expanded the patch to take care of this, but it doesn't feel right to me to "prevent" accessing TYPO3.lang here with data attributes, instead of seeing how/if TYPO3.lang could be populated properly. ... staring at @akienast@scripting-base.de :-D ... -
core-ci voted on patch set 2 V +1 01/26/25, 11:24 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/73021
-
Simon Schaufelberger wrote 01/26/25, 11:28
Removed reviewer Simon Schaufelberger. -
Andreas Kienast commented on patch set 2 CR -1 01/27/25, 09:12
Reply
@gh@faktor-e.de your case smells like a cache issue. I had that as well until I cleared my caches in Chrome.on it -
Andreas Kienast commented on patch set 2 01/27/25, 09:14
Reply
The reason deleting records doesn't work is the fact that the current(!) backend module URL is put into the rendered form wrapping the record list. This approach requires that the specific module implements a proper deletion handling. -
Andreas Kienast commented on patch set 2 CR -2 01/27/25, 10:11
The implementation of the multi select handling is incomplete in record list. Will push heavier updates on this patch. Blocked for now. -
Andreas Kienast uploaded patch set 3
CR -1V +101/27/25, 10:55Copied Votes: * Code-Review-2 (copy condition: "changekind:NO_CHANGE OR **is:MIN**") -
core-ci voted on patch set 3 V +1 01/27/25, 11:01 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/73051
-
Andreas Kienast updated the commit message in patch set 4
V +101/27/25, 11:01Copied Votes: * Code-Review-2 (copy condition: "changekind:NO_CHANGE OR **is:MIN**") -
Andreas Kienast voted on patch set 4 CR 0 01/27/25, 11:01
-
core-ci voted on patch set 4 V +1 01/27/25, 11:07 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/73052
-
Garvin Hicking commented on patch set 4 01/28/25, 09:25
Thanks @akienast@scripting-base.de - this seems to work well for me in both extbase and non-extbase backend modules. I tested single- and multi-record deletion and editing. -
Garvin Hicking commented on patch set 4 CR +1 V +1 01/28/25, 09:33
Voting due to Andi's rework on this to indicate my thanks+approval ;) -
Georg Ringer voted on patch set 4 CR +1 V +1 01/29/25, 19:43
-
Andreas Kienast voted on patch set 4 CR +2 V +2 01/31/25, 10:44
-
Andreas Kienast commented on patch set 4 CR 0 V -1 01/31/25, 11:17
Multi-select deleting from the record list now always reloads the whole backend... -
Andreas Kienast uploaded patch set 5
CR +1V +101/31/25, 12:00 -
Andreas Kienast commented on patch set 5 01/31/25, 12:01
Reply
Done -
core-ci voted on patch set 5 V +1 01/31/25, 12:12 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/73260
-
Markus Klein voted on patch set 5 CR +1 02/04/25, 07:57
-
Garvin Hicking commented on patch set 5 CR +1 V +1 02/04/25, 08:12
revote; multi-delect works for me (now) -
Georg Ringer voted on patch set 5 CR +1 V +1 02/10/25, 20:05
-
Andreas Kienast voted on patch set 5 CR +2 V +2 02/11/25, 12:54
-
Andreas Kienast merged patch set 6 02/11/25, 12:54