When saving the content type for content translation the submit callback that saves the config is not executed. This is due to the fact that the primary submit function is attached to the button and not to the form array.

Edit_Article_content_type___d8dev.local_.png

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

e0ipso’s picture

Gábor Hojtsy’s picture

Status: Needs review » Needs work
Issue tags: +sprint, +language-content

Wow, hum! Good find. Thanks for the fix. Also good test coverage. Only some English language picks:

+++ b/core/modules/content_translation/lib/Drupal/content_translation/Tests/ContentTranslationSettingsTest.phpundefined
@@ -101,6 +101,18 @@ function testSettingsUI() {
+    // Verify that the translation may be enabled for the article content type.

Remove "the" before "translation" to be better English :)

+++ b/core/modules/content_translation/lib/Drupal/content_translation/Tests/ContentTranslationSettingsTest.phpundefined
@@ -101,6 +101,18 @@ function testSettingsUI() {
+    // Make sure the checkbox is available and disabled by default.

"disabled" => "not checked" (disabled checkboxes cannot be checked :)

e0ipso’s picture

e0ipso’s picture

Status: Needs work » Needs review
Gábor Hojtsy’s picture

Status: Needs review » Reviewed & tested by the community

Looks good. Expected to pass as it did before.

plach’s picture

+1 to RTBC, thanks.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 34aaed6 and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

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

Gábor Hojtsy’s picture

Issue tags: -sprint

Removing tag.