When the list of node revisions is paged, the first revision in every page is marked as being the default revision. The comments on the code suggest this is by design, to take into account multi-language revisions. In case there is only one language, we have solved this by adding an extra condition to verify where the node has translations or not.

Comments

raqfialho created an issue. See original summary.

Version: 8.7.6 » 8.7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.7.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

eadamse’s picture

Status: Needs work » Needs review
StatusFileSize
new970 bytes

Original patch applied cleanly for me on 9.2.x.

Re-roll/uploading for testing.

ranjith_kumar_k_u’s picture

StatusFileSize
new992 bytes

Status: Needs review » Needs work

The last submitted patch, 6: 3082614-6.patch, failed testing. View results

Version: 9.2.x-dev » 9.3.x-dev
mediabounds’s picture

The patches above assume that the default revision on a node is displayed in the revisions table--but the revisions table filters to only show revisions where the the current translation is affected. This is what the failing test in NodeRevisionsUiTest is showing. (Plus, it doesn't fix the issue if translations _are_ enabled on a node.)

There is an identical bug reported in #3021671: Node revisions tab have "Current Version" on every Page; I've added a patch there which fixes the issue (and passes tests).

mdupont’s picture

Status: Needs work » Closed (duplicate)

Duplicate of #3021671: Node revisions tab have "Current Version" on every Page, which has a patch passing tests.