display node linked to a previously deleted taxonomy term bug

Created on 11 March 2015, over 9 years ago
Updated 10 October 2023, about 1 year ago

What's the problem

When you display node linked to a previously deleted taxonomy term, an error message appears :

Notice: Trying to get property of non-object in shs_field_formatter_view () (line 510 in /srv/www/9964_protosite9964/htdocs/sites/all/modules/contrib/shs/shs.module)

Correction

In SHS module, a test was performed on the "tid" to define if there was a term. But if the term has been deleted the "tid" already exist in the node even if the term did not exist any more. So this test should be done on the "term" and not on the "tid".

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
  • API change

    Changes an existing API or subsystem. Not backportable to earlier major versions, unless absolutely required to fix a critical bug.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024