#86933$uid must be positive integer, 0 given when trying to edit multiple records in a workspace
Description
Uncaught TYPO3 Exception
#1437656456: $uid must be positive integer, 0 given
Example:
- Switch to one of your workspaces
- Go to the list Module (make sure there are some records that are not published/have changed compared to the live workspace)
- Show only records from one table (e.g. sys_category)
- Click the button to edit multiple records at once -> now the exception is thrown
I did some debugging on this one:
Usually typo3/sysext/recordlist/Resources/Public/JavaScript/Recordlist.js should get some entityIdentifiers from the _data-uid_-attributes in the rendered HTML.
But it seems that there are no data-uid_-attributes present if the record is not already published in the live workspace. Not sure why this happens yet.
The exception is thrown for other record types as well. So it does not in particular effect the sys_category records due to it happens for other records as well.
I reproduced this exception on a clean installed Typo3 8.7.20 with the official Introduction Package.
Just enable the EXT:workspaces, create workspace record and run the example above to reproduce this exception.
There are other issues with the same exeption (e.g. #70226 or #83994). But in none of them workspaces are mentioned, so i decided to open this issue.