I use taxonomy_single_tag module and Unitag, and both modules worked fine together before I upgraded Unitag to 6.x-1.0-beta3.
Now when I save node with unquoted tag (I use "Tag (single select)" option in vocabulary serttings), this tag is saved quoted.
If I disable Unitag, saving works fine again. If I leave Unitag ebabled and disable taxonomy_single_tag, it works as before too. But I need both modules, so I replaced Unitag 6.x-1.0-beta3 with 6.x-1.0-beta2 until the conflict is not resolved.
I tried to understand what's the matter, looking on the diff between beta3 and beta2, but I can't do this.
Comments
Comment #1
Zen CreditAttribution: Zen commentedIn what way is it not working? Error message?
Please also link to the conflicting module.
Thanks.
Comment #2
quotesBro CreditAttribution: quotesBro commentedThank you for quick respond.
Conflictiing module: http://drupal.org/project/taxonomy_single_tag
The problem is the term without any quotes is being saved quoted. (we want Term --> but get "Term")
Comment #3
quotesBro CreditAttribution: quotesBro commentedI guess this code from taxonomy_single_tag.module should help:
Comment #4
bradya CreditAttribution: bradya commentedYou can fix this by substituting the following code in the taxonomy_single_tag.module
with
Which basically prevents single_tags from escape the enclosing double quotes of the tag.
Comment #5
quotesBro CreditAttribution: quotesBro commentedThanks. It helps in case of the tag without commas inside. But if the tag includes commas - like Test. One, two, three - we get Test. One", "two", "three
Comment #6
quotesBro CreditAttribution: quotesBro commented// my mistake
Comment #7
quotesBro CreditAttribution: quotesBro commentedDon't look at the previous patch, it was uploaded by mistake.
Now I'm attaching the patch against 6.x-1.x-dev which solves the problem with http://drupal.org/project/taxonomy_single_tag module.
Also I've attached the patch for taxonomy_single_tag module in #1463802: taxonomy_single_tag_submit is being called more than once.
Comment #8
Zen CreditAttribution: Zen commentedHello Mikhail,
Would it be fair to say that while your patch fixes things with the taxonomy single tag module, what we are introducing in effect is a new feature where we treat the "multiple select" checkbox differently?
Comments for the new code will also be appreciated.
Thanks,
-K