CRM-18475 CiviCRM API : EntityTag-Create Tag Array insert fails if tag exists

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7.6
    • Fix Version/s: Unscheduled
    • Component/s: CiviCRM API
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Civi issue inserting array
      When trying to add an array of tags Example: ["1","2","3"] to a contact using API : EntityTag-Create a set of tags are not added whenever one if them is already assigned to contact and in result shows "not added":"1"

      Prevents that ability to mass update contacts by tag array.

      We will be happy to fund this to get this resolved.

        Attachments

          Issue Links

            Activity

            [CRM-18475] CiviCRM API : EntityTag-Create Tag Array insert fails if tag exists
            Coleman Watts added a comment -

            Thanks for your offer to fund this issue. Can you describe the problem in a bit more detail? Are you saying that if one of the tags already exists then the others will fail?

            Josh Ovett added a comment -

            Yes correct, if one of the tags already exists then all others will fail.

            Josh Ovett added a comment - - edited

            I would show the issue , but there is another bug i reported that prevents showing it in dmaster.
            [JIRA] (CRM-18512) API explorer , when selecting a tag it should show its id in url not name
            Key: CRM-18512
            URL: https://issues.civicrm.org/jira/browse/CRM-18512

            Coleman Watts added a comment -

            I've tested this out in the api explorer and found the bug has a bit of nuance to it:

            1. Use the api explorer with the "EntityTag" api to add "Company" to a contact.
            2. Visit the contact screen and verify they now have the tag
            3. Now use the exploer to add "Company, Volunteer"
            4. See that the contact has not received the "Volunteer" tag, but for no apparent reason now has the "Non-Profit" tag.
            Coleman Watts added a comment -

            Josh Ovett if you would like to fund the core team to resolve this bug I would estimate it to be a 3-5 hour task. Rates are here: https://civicrm.org/work-with-the-core-team

            Josh Ovett added a comment -

            API MultiTag insert / update. Attached is zip file are fixes tested for each Civi version 4.4, 4.6 and 4.7. for civicrm/api/v3/EntityTag.php

            Eileen McNaughton added a comment -

            I just set fixVersion to unscheduled since it doesn't look like this is en target for 4.7.9 - please set the fix version when it is clear which version it will be in

              People

              • Assignee:
                Unassigned
                Reporter:
                Josh Ovett

                Dates

                • Created:
                  Updated: