The 'Translation Operations' views field provides buttons for translating content - an Add button if no translation exists in the target language, or an Edit button if one does.

Am I correct in assuming that the Edit link should direct to the translation in the target language, not the source language (row language)? If so, patch attached.

Comments

bgilhome created an issue. See original summary.

matsbla’s picture

Thanks for reporting and submit a patch! You're right, I can confirm the issue.
Will fix this, but want to fix 2 other issues at the same time concerning the translation operation links, to see that it all works good together;
#2957229: Integrate module with Content Moderation
#2956500: Build translation operations links using translation permissions

matsbla’s picture

I think there is a similar issue with the check to see if current language is the default language. Now it checks if default language is the row language (and if so it hides the delete link from the operation menu).

matsbla’s picture

valentine94’s picture

Patch re-roll due to the latest commit changes

valentine94’s picture

Add some tests, a bit rework old tests, remove redundant test view

valentine94’s picture

Rework patch a bit

  • matsbla committed ba2245c on 8.x-1.x authored by Valentine94
    Issue #2981106 by Valentine94, matsbla, bgilhome: Edit button should...
matsbla’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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