Problem/Motivation

EntityTranslationDefaultHandler::removeTranslation() doesn't invalidate the entity cache what leads to a misleading entity display.
The data in the database are removed, but the removed data are still visible in the frontend.
Maybe this is a side-effect when using Entity cache

Proposed resolution

Call entity_get_controller($this->entityType)->resetCache(array($this->getEntityId())); in EntityTranslationDefaultHandler::removeTranslation().

Remaining tasks

reviews needed

User interface changes

none

API changes

none

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work
plach’s picture

Status: Needs work » Needs review
plach’s picture

Status: Needs review » Fixed

Committed and pushed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit bcce8c2 on 7.x-1.x, factory, et-fc, revisions authored by das-peter, committed by plach:
    Issue #1933742 by das-peter: Fixed Delete translation doesn't flush the...

  • Commit bcce8c2 on 7.x-1.x, factory, et-fc, revisions, workbench authored by das-peter, committed by plach:
    Issue #1933742 by das-peter: Fixed Delete translation doesn't flush the...