When trying to re-order taxonomy terms within a vocabulary i am getting the following JS error:

Uncaught TypeError: Cannot read property 'tBodies' of undefined taxonomy.js?mz346t:31
> tableDrag.row.onSwap taxonomy.js?mz346t:31
> Drupal.tableDrag.row.swap tabledrag.js?mz346t:997
> Drupal.tableDrag.dragRow tabledrag.js?mz346t:493
> (anonymous function) tabledrag.js?mz346t:109
> c.event.handle jquery.js?v=1.4.4:64
> h.handle.o

This only occurs for vocabularies that have more than 1 page of terms.

I am reporting is as a bug, but it does not prevent the order change from being saved when clicking the Save changes button.

CommentFileSizeAuthor
#5 taxonomy-drag.patch2.89 KBdroplet
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

OnkelTem’s picture

Version: 7.25 » 7.38

Same problem with more then one page of terms.

OnkelTem’s picture

Priority: Minor » Major

Just tested this on moderately clean install of Drupal 7.38, generating terms with Devel. The error is reproduced.
Setting to Major as this prevents users from ordering terms.

cilefen’s picture

Priority: Major » Normal
Issue tags: +JavaScript

I reproduced the error but it did not prevent saving the terms in the new order, so I am marking this "Normal". Are you sure that is the case? I am sorry if I overlooked something.

cilefen’s picture

Title: JS Error when ordering taxonomy terms » Uncaught TypeError JS Error when ordering taxonomy terms for vocabularies with more than one page of terms
droplet’s picture

Version: 7.38 » 7.x-dev
Status: Active » Needs review
FileSize
2.89 KB

wrong `context`. It can be fully backported from D8