Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rob Maas 8 posts 88 karma points
    Mar 27, 2019 @ 15:38
    Rob Maas
    0

    Merging tags - content types with multiple tag fields combine all tag values

    Hello,

    I have a issue while merging tags:

    We have a ContentType with 6 different Tag fields, each one a different DataType targetting a separate tag-group. While merging tags all tags are copied into the last tag field (for the related content that was tagged with one of the merged tags).

    So for example we have a item with these values:

    • Tagfield1: testtag, testtag2
    • Tagfield2: testtag3, testtag4
    • Tagfield3: testtag5
    • Tagfield4: testtag6
    • Tagfield5: testtag7
    • Tagfield6: testtag8, testtag9

    When merging 'testtag3' with 'testtag4' we end up with something like this:

    • Tagfield1: testtag, testtag2
    • Tagfield2: testtag4
    • Tagfield3: testtag5
    • Tagfield4: testtag6
    • Tagfield5: testtag7
    • Tagfield6: testtag, testtag2, testtag4, testtag5, testtag6, testtag7, testtag8, testtag9

    This way we not only end up with corrupted values, but also tags that are copied in other tag-groups.

    Is this something someone can help me with?

    Regards, Rob

  • Nigel Wilson 944 posts 2076 karma points
    Mar 27, 2019 @ 18:26
    Nigel Wilson
    0

    Hi Rob

    I created the Tag Manager package so am happy to investigate.

    I hadn't tried such a "complex" case of multiple tag properties on one document type.

    What version of Umbraco and what version of Tag manager are you using please ?

    Cheers

    Nigel

  • Rob Maas 8 posts 88 karma points
    Mar 28, 2019 @ 07:32
    Rob Maas
    0

    Hello Nigel,

    Cool, thank you for your contribution.

    I'm running Umbraco 7.10.4 and updated Tag Manager yesterday, so that should be 5.1.

    Rob

  • Nigel Wilson 944 posts 2076 karma points
    Mar 29, 2019 @ 05:58
    Nigel Wilson
    0

    Hi Rob - quick update...

    I have replicated the issue on my local test copy, however haven't got a solution yet.

    So will keep chipping away and I am sure I'll get to the bottom of where the SQL code is lacking...

    Cheers

    Nigel

  • Nigel Wilson 944 posts 2076 karma points
    Mar 29, 2019 @ 19:07
    Nigel Wilson
    0

    Hi Rob

    I have tracked down the issue, however it is not my code that is the cause.

    Additional tags are being created within the "default" tag group when I run the following:

    contentService.SaveAndPublishWithStatus(content);
    

    I am not sure if the code prior to this method is the cause, or it is a bug in core.

    Will keep investigating.

    Cheers, Nigel

  • Rob Maas 8 posts 88 karma points
    May 08, 2019 @ 14:19
    Rob Maas
    0

    Hi Nigel,

    Did you end up finding the root cause of this issue?

    Regards,

    Rob

  • Nigel Wilson 944 posts 2076 karma points
    May 08, 2019 @ 18:57
    Nigel Wilson
    0

    Hi Rob

    Arghhh !

    Sorry but I cannot recall where I got to with this - to be honest I've had a crazy past 6-8 weeks with a lot of personal / family stuff going on, and this simply fell off my radar.

    I will try and get back onto it in the coming days.

    Again, sorry for my slackness

    Nigel

Please Sign in or register to post replies

Write your reply to:

Draft