Steps to reproduce
- Create a node A.
- Refer node A into node B via paragraph module and save node B.
- Edit node B and remove the paragraph module and save node B.
- Now try to delete node A you will get the error because node A exist as a reference in node B's old revisions
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | entity_reference_integrity-n3448440-13.patch | 11.25 KB | ashraf.hussain |
| #12 | entity_reference_integrity-n3448440-12.patch | 11.1 KB | ashraf.hussain |
Comments
Comment #2
vikramsaini1609 commented@rajgai. I was facing the same issue. I have fixed the issue and also added a line in error message to take care multilingual site.
Comment #3
rajghai commentedComment #4
ashraf.hussain commentedUpdating the patch to be compatible with 2.0.0
Comment #5
ashraf.hussain commentedThe previous patch has been updated to validate values like 'node/123' in the link field. Previously, it was only validating values in the link field that were referenced like 'Node title (123)'."
Comment #6
ashraf.hussain commentedUpdating the patch to not validate when saving unpublished nodes.
Comment #7
ashraf.hussain commentedFixed an issue in previous patch where media was incorrectly giving validation if a node has redirect where id is same for media and node id.
Solution: Build possible stored URI formats based on the actual target entity type.
Comment #8
ashraf.hussain commentedFixing indentation from previous patch
Comment #9
ashraf.hussain commentedAdding a code to skip non-fieldable entities like node types on getDependentIdsFromLink and hasDependentsFromLinks as it gives fatal error.
Comment #10
ashraf.hussain commentedUpdating the patch to fix return type.
Comment #11
ashraf.hussain commentedUpdating the patch to get the validation error on redirect on unpublished page.
Comment #12
ashraf.hussain commentedUpdating to patch to take care of the below scenario
1. If a node is unpublished and it has a redirect, when we edit and save the unpublished node, it should not give validation error for redirect.
2. If a node is unpublished and it has a redirect, when we delete the page, it should give validation error for redirect.
Comment #13
ashraf.hussain commentedWe can use this version if we no longer want to enforce redirect integrity checks during node unpublish or delete operations.