Closed (fixed)
Project:
Views Bulk Operations (VBO)
Version:
7.x-3.0
Component:
Core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2012 at 03:33 UTC
Updated:
26 Dec 2013 at 21:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dwhutton commentedUpdate: changed title to clarify issue.
If I use VBO to list all nodes that contain 'bribery' in the body, and to add the taxonomy term 'Corruption' to each, some of these nodes (which already had that tag) will now be tagged TWICE with the term 'Corruption'. If similar VBO operations are repeated, some nodes may have three or more occurrences of the same taxonomy term.
Part of this issue is now resolved with a patch here http://drupal.org/node/1507216 which prevents duplicate terms (with different TIDs) being added to the VOCABULARY. However, VBO continues to add duplicate taxonomy terms (with the same TID) to the NODE -- if that node already had that term associated with it.
Comment #2
mimrock commentedI made a patch to make sure that no taxonomy reference is stored more than once in the same field of the same node.
Comment #3
mimrock commentedComment #4
dwhutton commentedUnfortunately this patch does not work on my site.
I suspect that this may be because the code does not handle multiple languages. My site has two languages (English and French) and all the taxonomy terms are associated with one language or the other.
Comment #5
mimrock commentedThat's possible.
Comment #6
vikramy commentedPatch #2 works for me. I don't have any multilingual site to test this but will try.
Comment #7
Andreas Radloff commented#2 Works for me too, one language
Comment #8
bojanz commentedMade it work for other reference fields as well (entityreference being the most important one), fixed the multilingual issue, add the PHP dependency since we're relying on a parameter introduced in PHP 5.2.9.
Committed:
http://drupalcode.org/project/views_bulk_operations.git/commitdiff/ddda8...
Comment #10
mperrando commentedThe fixing patch breaks the Drupal system requirement on the PHP minimum verison 5.2.5.
This can break an already running site that cannot be updated to PHP 5.2.9 (what ahppened to me).
Shouldn't this issue be reopened?
Comment #11
bojanz commentedNo, I've explicitly added the dependency.
PHP 5.2.9 was released 5 years ago. If you're running a PHP version older than that, you can patch VBO yourself.