Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-7449

PostSelector component doesn't work if several posts have the same title

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Should have Should have
    • None
    • 5
    • Block: Actions List, Block: Articles, Block: Covers, Block: Posts List

      We use this PostSelector component in the Posts List block for example, for the Manual Override setting. If there are several posts with the same title, we get console errors, and we can only select one of the posts with identical titles. Once selected, the block is filtered as expected, but the other posts with same title no longer appear in the dropdown.

      I see in the FormTokenField docs that it has a `displayTransform` attribute, maybe we could use it to use the post id as value but display the title (unlike now where we use the title also as value, which is what causes issues in case of duplicates)

      This is quite an edge case, probably doesn't happen, but could be nice to fix anyways.

            Unassigned Unassigned
            mleray Maud Leray
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: