Page MenuHomePhabricator

CX2: Undoing "Add translation" breaks saving
Closed, ResolvedPublic

Description

  1. Start translating any page
  2. Add one paragraph to the translation
  3. Click undo
  4. See the console
Uncaught TypeError: targetNode.getOriginalContentSource is not a function
    at VeInitMwCXTarget.ve.init.mw.CXTarget.saveSection (ve.init.mw.CXTarget.js?8bd30:628)
    at MwCxDmTranslation.oo.EventEmitter.emit (oojs.jquery.js?2c0b9:824)
    at VeDmCXSectionNode.ve.dm.CXSectionNode.emitSectionChange

Event Timeline

Restricted Application changed the subtype of this task from "Deadline" to "Task". · View Herald TranscriptAug 21 2018, 7:17 PM

Change 455560 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/ContentTranslation@master] Clone annotation before modifying

https://gerrit.wikimedia.org/r/455560

Ignore above patchset - was tagged against the wrong task.

Change 456107 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] WIP: Handle the transition from translated section to placeholder by 'undo'

https://gerrit.wikimedia.org/r/456107

Change 456107 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Handle the transition from translated section to placeholder by 'undo'

https://gerrit.wikimedia.org/r/456107