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.
+++ b/core/modules/shortcut/shortcut.admin.js
@@ -79,7 +79,7 @@ Drupal.behaviors.shortcutDrag = {
- };
+ }
This shouldn't be a local function in the first place. Let's open a follow-up issue for that.
Comment | File | Size | Author |
---|---|---|---|
#8 | shortcut.patch | 1.64 KB | droplet |
#4 | core-js-tableDrag-local-1420056-4.patch | 1.66 KB | nod_ |
local_function.patch | 1.29 KB | droplet | |
Comments
Comment #1
nod_Comment #2
nod_tested and works, I'd like to know the why though.
Comment #3
sunLocal functions are invisible and cannot be overridden in any way.
Didn't look into details, so it might turn out that the entire tableDrag object is local, but fixing that would be a separate/larger issue.
Thanks! If this is confirmed to work, RTBC for me.
Comment #4
nod_rerolled, it was missing a semicolon after the function declaration, funny hey :)
Comment #5
droplet CreditAttribution: droplet commentedgood catches
Comment #6
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks!
Comment #8
droplet CreditAttribution: droplet commentedComment #9
xjmBackport looks fine as well.
Comment #10
webchickCommitted and pushed to 7.x. Thanks!