- Issue created by @ACoolDevDude
- Merge request !28Issue 3515843: Added check to make sure of type matches. β (Open) created by Unnamed author
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
sounds like this might need to run _before_ trash module?
When you have a content type that is using workflows / content moderation, revisions, workbench_email, and the trash module enabled, an error happens when trying to move an item into the trash bin.
TypeError: Drupal\content_moderation\ModerationInformation::isModeratedEntity(): Argument #1 ($entity) must be of type Drupal\Core\Entity\EntityInterface, null given, called in /var/www/html/web/modules/contrib/workbench_email/workbench_email.module on line 118
The problem is that on line 110 of workbench_email.module, the entity coming back when it intercepts during the Trash moving process isn't a typeof EntityInterface. I propose having a check to make sure that what is loaded is of that type.
I have created a patch file to help with this.
Active
3.0
Code
sounds like this might need to run _before_ trash module?