With latest core dev and ET when deleting the translation of an entity having a file field, the following notices are thrown:

Notice: Undefined property: stdClass::$original in file_field_update() (line 265 of [...]\modules\file\file.field.inc).
CommentFileSizeAuthor
#1 et-file_rm_translation-1792606-1.patch792 bytesplach
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plach’s picture

Status: Active » Fixed
FileSize
792 bytes

The attached patch fixes the issue which is caused by the file field code expecting the $entity->original property to be always defined. Bonus: an additional f_a_presave() call is added for consistency with other places.

Status: Fixed » Closed (fixed)

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

  • Commit 6794df2 on 7.x-1.x, et-permissions-1829630, factory, et-fc, revisions by plach:
    Issue #1792606 by plach: Fixed Notices when deleting the translation of...

  • Commit 6794df2 on 7.x-1.x, et-permissions-1829630, factory, et-fc, revisions, workbench by plach:
    Issue #1792606 by plach: Fixed Notices when deleting the translation of...