Problem/Motivation
The code in GroupContent::postDelete calls save() on the group content's corresponding entity, even if that entity has been deleted (see group_entity_delete()).
This can lead to odd behavior, such as this notice:
Notice: Trying to get property of non-object in /.../core/lib/Drupal/Core/Field/Plugin/Field/FieldType/PasswordItem.php line 49
Proposed resolution
Check if the entity has been deleted by re-loading from storage (which will return NULL for deleted entities).
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3010896-02.patch | 903 bytes | jhedstrom |
Comments
Comment #2
jhedstromComment #3
jhedstromComment #4
lobsterr commentedThis issue will be solved as a part of #3029355: Deleting a node deletes the linked group_content entities which then resaves the node