It appears that when a regcode is deleted, the regcode_term records related to it are not deleted.

A record is added to the regcode_term table when a code is assigned a tag. Not cleaning up these regcode_term records can cause an issue if you use the tag to find the related regcode(s), because you will have an rid that isn't tied to a record in the regcode table.

I'll work on a patch and post it here when I've tested it.

CommentFileSizeAuthor
#1 regcode_delete_tags-1395690-1.patch716 bytesJuliaKoelsch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JuliaKoelsch’s picture

Status: Active » Needs review
FileSize
716 bytes

I've attached a patch. Let me know if you have any questions. Thanks!

nsurround’s picture

Applied the patch in #1 but still does not delete the associated tag term in the vocabulary.

aidanlis’s picture

Issue summary: View changes
Status: Needs review » Needs work

@nsurround it shouldn't delete the term, just the reference to it. I need a patch which does this more thoroughly than just the VBO action.