Problem/Motivation

The latest release 3.0.19 includes code from #3549384: Add support for path aliases which makes use of a method on EntityBase called setOriginal when restoring content. This method was only introduced in Drupal 11 via #2839195: Add a method to access the original property .

Steps to reproduce

On a d10 site, try to restore content, and get exception:
"Error: Call to undefined method Drupal\node\Entity\Node::setOriginal() in Drupal__node__NodeStorageTrash68dd472bb772f->restoreFromTrash() (line 81 of modules/contrib/trash/src/TrashStorageTrait.php)."

Proposed resolution

Possibly revert that issue and commit it in a new branch that's D11-only.
Not sure if there's a backwards compatible way to handle that new code in D10 or not

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork trash-3549799

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bkosborne created an issue. See original summary.

amateescu made their first commit to this issue’s fork.

  • amateescu committed 20fe4f15 on 3.x
    [#3549799] fix: Latest release 3.0.19 breaks restore for Drupal 10 sites...
amateescu’s picture

Status: Needs work » Fixed

Merged the fix.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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