I have enabled entity translation on atoms and replaced the title with a title_field instance.
When trying to translate an atom, I get the following messages:

    Warning: Invalid argument supplied for foreach() in EntityTranslationDefaultHandler->localTasksAlter() (line 1564 of /vagrant/drupal/current/sites/all/modules/contrib/entity_translation/includes/translation.handler.inc).
    Notice: Undefined index: count in menu_secondary_local_tasks() (line 2249 of /vagrant/drupal/current/includes/menu.inc).

I found a fix in Entity translation issue queue https://www.drupal.org/node/2325585#comment-10767944

CommentFileSizeAuthor
#2 fix-local-tasks-2662494-1.patch791 bytesmerilainen

Comments

mErilainen created an issue. See original summary.

merilainen’s picture

StatusFileSize
new791 bytes

Here is a patch.

martin_q’s picture

Status: Active » Reviewed & tested by the community

Looks sensible and fixes the bug for me.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: fix-local-tasks-2662494-1.patch, failed testing.

The last submitted patch, 2: fix-local-tasks-2662494-1.patch, failed testing.

The last submitted patch, 2: fix-local-tasks-2662494-1.patch, failed testing.

The last submitted patch, 2: fix-local-tasks-2662494-1.patch, failed testing.

The last submitted patch, 2: fix-local-tasks-2662494-1.patch, failed testing.

martin_q’s picture

Status: Needs work » Needs review

Is the problem really with the patch? I reviewed the Jenkins log for one of them and the error reported is
java.io.IOException: remote file operation failed: /var/lib/drupalci/web at hudson.remoting.Channel@3db34eb1:d0148ce7-69b9-43e5-8cba-c2863103cc7c: hudson.remoting.ChannelClosedException: channel is already closed