Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Quick Edit and Workbench Moderation don't play well together because Quick Edit doesn't understand Workbench Moderation's versioning model. Unfortunately, Quick Edit still shows up on published content (which is effectively a locked workflow state), even when forward revisions of that content exist.
Proposed resolution
When viewing published content at its canonical route (e.g., /node/32), disable Quick Edit entirely.
Remaining tasks
Create a pull request and merge it.
User interface changes
Quick Edit will not show up on published content.
Comments
Comment #2
phenaproximaPull request created: https://github.com/acquia/lightning/pull/404
Comment #4
balsamaThanks!
Comment #6
phenaproximaIn the wake of other work I've done recently, I think we need to re-open this and think more about it.
Wim Leers explained to me that Quick Edit respects entity access. In other words...if you can access the Edit tab for a node, you can quick edit it. That is how Quick Edit was written. That is how it wants to work. Trying to cripple Quick Edit, while maintaining edit access in other ways, is a recipe for pain and suffering that gets exponentially messier when you introduce the concept of forward revisions, largely because Quick Edit has no concept of them.
I think we need to backtrack, re-evaluate our approach, and work with Quick Edit, not against it. If you can access an entity's edit form, you should be able to quick edit it too. Likewise, if you can't access the edit form, you shouldn't be able to quick edit. It should be completely consistent. What this means is that we'll be able to stop maintaining torturous, brittle UI-level tomfoolery in favor of very solid and clear cases where we can say confidently whether something should be editable or not.
Comment #7
rooby CreditAttribution: rooby commented+1 for #6.
It's a bit unusual for the user currently, with quick edit being there some times and not others.
Comment #8
phenaproxima