Commit 34aaed60 authored by alexpott's avatar alexpott

Issue #2046541 by e0ipso: Fixed Unable to activate content translation in the...

Issue #2046541 by e0ipso: Fixed Unable to activate content translation in the content type edit form.
parent bc65847d
......@@ -934,7 +934,7 @@ function content_translation_language_configuration_element_process(array $eleme
'#prefix' => '<label>' . t('Translation') . '</label>',
);
$form['#submit'][] = 'content_translation_language_configuration_element_submit';
$form['actions']['submit']['#submit'][] = 'content_translation_language_configuration_element_submit';
}
return $element;
}
......
......@@ -101,6 +101,18 @@ function testSettingsUI() {
$this->drupalGet('admin/structure/types/manage/article');
$this->assertField('content_translation');
$this->assertFieldChecked('edit-content-translation');
// Verify that translation may be enabled for the article content type.
$edit = array(
'language_configuration[content_translation]' => TRUE,
);
// Make sure the checkbox is available and not checked by default.
$this->drupalGet('admin/structure/types/manage/article');
$this->assertField('language_configuration[content_translation]');
$this->assertNoFieldChecked('edit-language-configuration-content-translation');
$this->drupalPost('admin/structure/types/manage/article', $edit, t('Save content type'));
$this->drupalGet('admin/structure/types/manage/article');
$this->assertFieldChecked('edit-language-configuration-content-translation');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment