Uploaded image for project: 'Content Tags'
  1. Content Tags
  2. CONTTAGS-104

tagfn.getContentByTags returns all items tagged ignoring the provided search root

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Neutral
    • None
    • 1.2.1
    • None

    Description

      When running 

      tagfn.getContentByTags("website", newsRootContentMap.@path, "OR", tags)

      The final query is: 

      SELECT * FROM [nt:base] WHERE ISDESCENDANTNODE([/lloyds-2020/nieuws]) AND [mgnl:tags] = 'voorbeeld' OR [mgnl:tags] = 'test'

      Where it should be: 

      SELECT * FROM [nt:base] WHERE ISDESCENDANTNODE([/lloyds-2020/nieuws]) AND ([mgnl:tags] = 'voorbeeld' OR [mgnl:tags] = 'test')

      Right now it results in all items tagged "test" regardless of search root.

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                jvanderheide Jeffrey van der Heide
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD