Closed (fixed)
Project:
Bulk Edit Terms
Version:
8.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
10 Nov 2021 at 17:49 UTC
Updated:
12 Nov 2021 at 11:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
crizHere is a patch.
Please note that when the maximum of allowed values (cardinality) is already populated for a node, an existing value will be overwritten, no matter if cardinality is not 1. This was also the case before this patch. Not sure how to handle this, as the description of the form field is not always true. Maybe at least a note in the readme would be good.
Comment #3
fjgarlin commentedThis line will add the new terms to the first available vocabulary, not the one selected:
'bundle' => array_values($target_bundles)[0],Selected one:
So in this example, new tags will be added to "Tags", but should be added to "Test"
Comment #4
fjgarlin commentedI altered slightly your patch to deal with the situation described above. Please test it out and let me know if it still does everything as you would expect. I tried myself and it was working but it'd be great a second pair of eyes.
Comment #5
crizThanks! Yes, I missed this setting. Tested and works.
Comment #7
fjgarlin commentedThanks for this addition. I've pushed the change so I'll close the issue.
Comment #8
fjgarlin commented