Steps to reproduce:

  1. Create a taxonomy with multiple terms
  2. Create content using this taxonomy
  3. Notice that taxonomy seems OK on content display page
  4. Reorder taxonomy
  5. Notice that content display page still displays the old order

Similiarly, if I delete an item from the taxonomy, I am left with an empty bullet point on my content display page. Additionally, views showing content with this empty bullet point show the error message "Notice: Trying to get property of non-object in taxonomy_term_uri() (line 147 of /var/www/drupal7/modules/taxonomy/taxonomy.module)."

Comments

kpaxman’s picture

Status: Active » Needs review
StatusFileSize
new2.59 KB

Attached is a patch which hides any taxonomy terms which no longer exist, and sorts the terms by the current weight before they are displayed, which resolves my above issues.

kpaxman’s picture

Upon review, my patch doesn't solve ALL potential issues...if the only taxonomy term attached to the content was deleted, the label still appears.

For now, I am leaving as is, and running Taxonomy Orphanage to clean up the taxonomies whenever cron runs. (My patch is still useful...it fixes most of the issues until cron runs.)

liam morland’s picture

Version: 7.x-1.9 » 7.x-1.x-dev
Issue summary: View changes
StatusFileSize
new2.61 KB

Reroll.

pifagor’s picture

Status: Needs review » Reviewed & tested by the community

Coddings standarts
// Do not output terms that do not exist.
// Using output fragments with weights as the array key should force this into current sort order once we sort the array

pifagor’s picture

Status: Reviewed & tested by the community » Needs work
pifagor’s picture

Status: Needs work » Needs review
StatusFileSize
new16.41 KB
alex_optim’s picture

Status: Needs review » Reviewed & tested by the community

  • alex_optim committed 2cbe92f on 7.x-1.x authored by pifagor
    Issue #1927252 by pifagor, kpaxman, Liam Morland: Display formatter...
alex_optim’s picture

Status: Reviewed & tested by the community » Patch (to be ported)
alex_optim’s picture

Status: Patch (to be ported) » Fixed
alex_optim’s picture

Status: Fixed » Closed (fixed)