Problem/Motivation

For the revisions overview, vids are filtered by translation and whether the translation is affected. This filter is missing for the revisions navigation (Next/Previous difference). As a result, revision diffs of other languages can be opened through the navigation without noticing it.

Proposed resolution

Filter the list of vids within the NodeRevisionController before buildRevisionsNavigation is called.

Comments

JuliaBayer created an issue. See original summary.

juliaschwarz’s picture

Status: Active » Needs review
StatusFileSize
new1.25 KB

Status: Needs review » Needs work

The last submitted patch, 2: diff-filter_vids-2708215-2.patch, failed testing.

juliaschwarz’s picture

Status: Needs work » Needs review
StatusFileSize
new1.49 KB

Argh, I forgot to add the LanguageInterface.

miro_dietiker’s picture

Priority: Normal » Major
Status: Needs review » Needs work
Issue tags: +Needs tests

Also this needs tests.

johnchque’s picture

Assigned: Unassigned » johnchque

Let's add tests for this. :)

johnchque’s picture

Status: Needs work » Needs review
StatusFileSize
new2.98 KB
new4.47 KB

Tests added. Interdiff = test only. :)

The last submitted patch, 7: wrong_revisions-2708215-7-test-only.patch, failed testing.

johnchque’s picture

Discussed, now using a core fix for the language. :)

The last submitted patch, 9: wrong_revisions-2708215-9-test-only.patch, failed testing.

miro_dietiker’s picture

Yeah looks good.

Best would be to additionally test the language neutral situation.. Similar to how core does it.

johnchque’s picture

Added test for the undefined language case. :)

The last submitted patch, 12: wrong_revisions-2708215-12-test-only.patch, failed testing.

miro_dietiker’s picture

Status: Needs review » Fixed
Issue tags: -Needs tests

Great. Committing.

Please add references to the similar core / entity issues. :-)

johnchque’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.