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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RobLoach’s picture

Thanks! Good catch... Using jQuery 1.3 or 1.7?

goron’s picture

Status: Active » Needs review

This was using 1.3. I think the problem will still be present and the same solution will apply for 1.7.

RobLoach’s picture

FileSize
982 bytes

Is this it?

RobLoach’s picture

For just Drupal 6?

goron’s picture

I 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.

goron’s picture

Yes, the patch in #3 applies cleanly to latest dev

markhalliwell’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Drupal 6 reached EOL (end-of-life) on February 24, 2016.