content_lock_warn_pending_locks() should only inform about a lock only the current node

Created on 27 July 2017, about 8 years ago
Updated 11 June 2025, about 2 months ago


Currently, after saving and viewing a node, a warning about each locked node is displayed to the user. This seems to be counter-intuitive and confusing for users, especially since they just released a lock by saving the node at hand.


content_lock_node_view() is called for a specific node.
It subsequently calls content_lock_warn_pending_locks().
content_lock_warn_pending_locks() retrieves all nodes from the content_lock table that belong to the current user.


Restrict the warnings to the actual node at hand, by modifying the EFQ-query using the current node as an argument.

✨ Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland stefanos.petrakis@gmail.com Biel, Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024