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.
This is a bug that exists in the core tabledrag.js, that only shows up with empty tables using tabledrag.
See #737596: tabledrag.js: $(".indentation", testCell).get(1) is undefined.
Here's a patch for the tabledrag.js that comes with jQuery Update.
Comment | File | Size | Author |
---|---|---|---|
#3 | jquery_update.patch | 982 bytes | RobLoach |
tabledrag_empty_indentation.patch | 780 bytes | goron | |
Comments
Comment #1
RobLoachThanks! Good catch... Using jQuery 1.3 or 1.7?
Comment #2
goron CreditAttribution: goron commentedThis was using 1.3. I think the problem will still be present and the same solution will apply for 1.7.
Comment #3
RobLoachIs this it?
Comment #4
RobLoachFor just Drupal 6?
Comment #5
goron CreditAttribution: goron commentedI believe the patch I put in the initial post (#0) is the one that'll apply cleanly. There's a 1-line comment difference. I may be wrong. But yes, that's the idea.
I think it's just for D6 because there doesn't seem to be a replacement tabledrag.js in jQuery Update 7.x, so the patch isn't applicable.
Comment #6
goron CreditAttribution: goron commentedYes, the patch in #3 applies cleanly to latest dev
Comment #7
markhalliwellDrupal 6 reached EOL (end-of-life) on February 24, 2016.