Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#1 | et-file_rm_translation-1792606-1.patch | 792 bytes | plach |
Comments
Comment #1
plachThe attached patch fixes the issue which is caused by the file field code expecting the
$entity->original
property to be always defined. Bonus: an additionalf_a_presave()
call is added for consistency with other places.