While having a taxonomy vocabulary with translation option enabled:
"Localize. Terms are common for all languages, but their name and description may be localized."
- and trying to delete some terms from this vocabulary causes issue 500:

PHP Fatal error: Call to undefined method EntityValueWrapper::getBundle() in /Users/sorin1/Sites/drupal-clean/sites/all/modules/contrib/smartling/lib/Drupal/smartling/Forms/GenericEntitySettingsForm.php on line 85, referer: http://local.drupal-clean.com/taxonomy/term/4/edit?destination=admin%2Fs...

This being caused because $entity_type = $form['#entity_type'] is not present in form while running delete option.

Please find attached proposed fix (patch).

CommentFileSizeAuthor
smartling-2.x-term-deletion.patch728 bytessorinb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sorinb created an issue. See original summary.

  • Soul88 committed a9931af on 7.x-2.x authored by sorinb
    Fix empty entity_type property on the taxonomy deletion form #2773269
    
Soul88’s picture

Status: Fixed » Closed (fixed)

Thank you, Sorin!