Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
".
Comment | File | Size | Author |
---|---|---|---|
#1 | unitag-1744286.patch | 1.02 KB | quotesBro |
Comments
Comment #1
quotesBro CreditAttribution: quotesBro commentedI 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') {
Comment #2
rogeriodec CreditAttribution: rogeriodec commentedTruly 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!
Comment #3
quotesBro CreditAttribution: quotesBro commentedThis 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.