Translation details summary does not update when selecting the (re) translate checkbox

Created on 24 October 2023, about 1 year ago

Problem/Motivation

As identified in 🐛 Javascript errors in entity-form.js when retranslate checkbox does not exist Active , core/misc/entity-form.js is looking for .js-form-item-translation-translate and similar for retranslate, but the actual class name includes the "content-" prefix in there, e.g. .js-form-item-content-translation-translate.

Steps to reproduce

  • Install Drupal with standard profile
  • Enable Language and Content Translation modules
  • Add a second language at /admin/config/regional/language/add
  • Enable translation on Article bundle at /admin/structure/types/manage/article
  • Create article at /node/add/article
  • Add translation at /node/1/translations
  • Expand Translation details element
  • The summary is "Do not flag other translations as outdated"
  • Click "Flag other translations as outdated"
  • The summary does not change

Proposed resolution

  • Use the correct selector
  • Add test coverage

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Javascript 

Last updated about 1 hour ago

Created by

🇦🇺Australia mstrelan

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024