#91378Slug isUniqueInTable is broken
Description
Seems related to #91235.
Description
I edit a news item, each I click the save button the slug is updated and “-1” is appened to it.
When I manually press the refresh button, the slug is back to the normal behaviour without any useless “-1” deduplication suffix.
Full Description: https://github.com/georgringer/news/issues/1274
Problem
\TYPO3\CMS\Core\DataHandling\SlugHelper::isUniqueInTable() does not properly exclude current record, meaning a slug is NEVER unique.
Probably to be fixed in v9 as well.