In content_lock_entity_predelete() we are trying to fetch the lock but the function fetchLock() have parameters in wrong sequence.
It should have been
$data = $lock_service->fetchLock($entity_id, $entity->language()->getId(), NULL, $entity_type);
as per the fetchLock() function.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | wrong_parameter-3063589-2.patch | 514 bytes | sergiu stici |
Issue fork content_lock-3063589
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
Comment #2
sergiu stici commentedHere is the patch, please review.
Comment #4
ryankavalsky commentedI'm not experiencing this issue w/ 8.x-1.0-alpha8.
Comment #5
smustgrave commented@Sergiu Stici could you provide the steps you take to get this issue?
Comment #7
smustgrave commentedNot seeing an issue during delete but 100% appears the parameters are in a wrong order. More surprised errors aren't appearing.
Comment #8
sokru commented+1 for adding this.
Comment #11
alexpottThe whole pre delete thing needs a rewrite. But this issue is correct so merging.