Problem

When the content type has translatability enabled BUT none of the fields are, visiting the translation tab throws: Fatal error: Call to undefined function _field_ui_bundle_admin_path() in [....]/core/modules/translation_entity/translation_entity.pages.inc on line 116 When enabling at least one field for translation, the error goes away.

The expected result would have been a table with all languages that I could translate the node to with the operations column pointing me to set up at least one field for translatability as I've seen earlier.

Got this error while demoing the entity translation feature to an audience at Drupalcamp Hungary.

Files: 
CommentFileSizeAuthor
#3 node_field_translation_test-1849316-3.patch857 bytescsg
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch node_field_translation_test-1849316-3.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#2 node_field_translation_test-1849316-2.patch1.21 KBcsg
FAILED: [[SimpleTest]]: [MySQL] 48,810 pass(es), 1 fail(s), and 0 exception(s).
[ View ]

Comments

csg’s picture

Assigned:Unassigned» csg
csg’s picture

Issue tags:-Needs tests
StatusFileSize
new1.21 KB
FAILED: [[SimpleTest]]: [MySQL] 48,810 pass(es), 1 fail(s), and 0 exception(s).
[ View ]

This patch adds a test that checks if the Translate page of a translatable node type without any translatable fields is rendered correctly.

csg’s picture

Status:Active» Needs review
StatusFileSize
new857 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch node_field_translation_test-1849316-3.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

And this is the fix for the issue.

Status:Needs review» Needs work

The last submitted patch, node_field_translation_test-1849316-3.patch, failed testing.

swentel’s picture

Related to #1824244: Tests for: Turn _field_ui_bundle_admin_path() into a public function (field_ui_bundle_admin_path())
- edit - the fix has been committed but catch wants some tests for that function.
So either close this one or the other, it's the same for me.

csg’s picture