For some reason that I still could not identify, at some point, all the blacklist is being deleted.
As I could not identfy the moment nor the cause, I changed unitag.module inserting a " AND blacklist <> 1" at the end of each SQL statement "DELETE FROM".

CommentFileSizeAuthor
#1 unitag-1744286.patch1.02 KBquotesBro
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quotesBro’s picture

FileSize
1.02 KB

I think that sudden deletion of all entries from unitag table is caused by small typo in implemenation of hook_taxonomy().

I don't know why git diff output is so strange, I changed only one line:
if ($type = 'vocabulary' && $op == 'delete') {
=>
if ($type == 'vocabulary' && $op == 'delete') {

rogeriodec’s picture

Title: Blacklist being improperly deleted » Typo in unitag_taxonomy()
Version: 6.x-1.0-beta4 » 6.x-1.x-dev
Priority: Normal » Major
Status: Active » Needs review

Truly a = less makes all the difference ...
I applied the patch and removed the "AND blacklist <> 1" sql sentences.
Let's wait and see what happens.
I think that if within 30 days I did not go back to talking about it, you can consider fixed.
Thank you!

quotesBro’s picture

This issue will be fixed when the patch will be commited to the repository :)

I had almost the same problem as you, but in my case, all term suggestions from one specific vocabulary (several thousand) have been removed for several times. As we can see from
if ($type = 'vocabulary' && $op == 'delete')
this was caused by the removal of any term that belongs to this vocabulary.