"taxonomy_overview_terms" from taxonomy module doesn't load full entities and works directly with DB loading and saving terms weight. I.e. from taxonomy_overview_terms_submit:

    // Update term_hierachy and term_data directly since we don't have a
    // fully populated term object to save.
    db_update('taxonomy_term_hierarchy')
      ->fields(array('parent' => $term->parent))
      ->condition('tid', $term->tid, '=')
      ->execute();

    db_update('taxonomy_term_data')
      ->fields(array('weight' => $term->weight))
      ->condition('tid', $term->tid, '=')
      ->execute();

As a result it creates inconsistencies between "taxonomy_term_data" and "taxonomy_term_data_revision" tables. Modules like taxonomy_menu won't work correctly. As a rough hack i added an additional form submit handler to "taxonomy_overview_terms" and manually sync DB tables, but it's not very clear... Maybe a new revision for every term should be created...

Comments

skylord’s picture

Issue summary: View changes
David_Rothstein’s picture

Status: Active » Needs review
StatusFileSize
new1.31 KB

As a rough hack i added an additional form submit handler to "taxonomy_overview_terms" and manually sync DB tables

That seems like a reasonable start to me. I needed this too, so here's a patch.

David_Rothstein’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
David_Rothstein’s picture

Same patch, but correct comment number this time.

skipyT’s picture

Status: Needs review » Reviewed & tested by the community

thanks, seems ok.

skipyT’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.