Commit c0208799 authored by João Mauricio's avatar João Mauricio
Browse files

Issue #3325414: Auto-translate taxonomies (500 error)

parent 7c136d7d
Loading
Loading
Loading
Loading
+1 −1
Changes for auto_node_translate.module: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ function auto_node_translate_translate_access(EntityInterface $entity) {
 */
function auto_node_translate_entity_operation(EntityInterface $entity) {
  $operations = [];
  if ($entity->hasLinkTemplate('drupal:content-translation-overview') && auto_node_translate_translate_access($entity)->isAllowed()) {
  if ($entity->getEntityTypeId() == 'node' && $entity->hasLinkTemplate('drupal:content-translation-overview') && auto_node_translate_translate_access($entity)->isAllowed()) {
    $operations['auto_translate'] = [
      'title' => t('Auto Translate'),
      'url' => Url::fromRoute('entity.' . $entity->getEntityTypeId() . '.auto_translation_add', ['node' => $entity->id()]),