- Issue created by @sumit_saini
- Status changed to Closed: won't fix
about 2 years ago 8:17am 9 March 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Hi, sorry we don't add new features to the stable branch, but feel free to run the patch in the meantime
- 🇮🇳India sumit_saini
reroll of patch from #2350939-317: Implement a generic revision UI → + disallow revert link for current revision
+++ b/core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php -@@ -0,0 +1,335 @@ +@@ -0,0 +1,340 @@ +<?php + +namespace Drupal\Core\Entity\Controller; @@ -275,6 +292,11 @@ index 0000000000..fd5d00f2e4 + return NULL; + } + ++ // Disallow reverting to the default revision. ++ if ($revision->isDefaultRevision()) { ++ return NULL; ++ } ++ + return [ + 'title' => $this->t('Revert'), + 'url' => $url,
- 🇮🇳India sumit_saini
Backported patch for Generic Revision UI in D9.5.9 including below fixes
- disallow revert link for current revision from #4
- 🐛 Generic Revision UI's Revision overview page generates wrong operations/view links for a translation Fixed - 🇮🇳India sumit_saini
Backported patch for Generic Revision UI in D9.5.9 including below fixes
- disallow revert link for current revision from #4
- 🐛 Generic Revision UI's Revision overview page generates wrong operations/view links for a translation Fixed
- Workaround fix for 🐛 Revision UI reverts all language translations when only one language is reverted Active