Bug in Page/TextTags field - Selection disappears after changing page title to an already existing one
I think i found a bug in Page/TextTags field where selected pages dissapear after renaming one of them to a page title that already exists.
Steps to reproduce: Let's assume there is a page with the name "Example" and a page named "Example New"
- Select "Page New" through a TextTags field
- Change the title of "Page New" to "Page" (or another page title that already exists)
- After that the page is not showing anymore in TextTags field
This only seems to occur for TextTags. AsmSelect and ListSelect seems to work fine and after changing the type the pages are showing again.
ProcessWire Version 3.0.200 PHP Version 8.0.28
@Laksone The page reference fields use page IDs to refer to them rather than anything related to the name/title, so I'm wondering if this might be a different issue, maybe related to the PW version? The current dev version is up to 3.0.217, and the most recent master version is 3.0.210. Are you able to reproduce the issue in one of the newer versions? If so, can you provide more details about how your TextTags field is configured? I'm assuming it's actually a Page field, but configured to use the TagsTags input? Thanks.
I checked in the latest 3.0.217 and can confirm the issue with a Page Reference field using Text Tags as the input type.
Field value before:
Field value after changing the title of page "Dog" to "Cat":
Possibly related to Selectize not allowing duplicate items? https://github.com/selectize/selectize.js/issues/129 And a possibly related issue with Selectize being used in the TinyMCE module config: https://processwire.com/talk/topic/28513-tinymce-6-divider/?do=findComment&comment=232849
Possibly related to Selectize not allowing duplicate items? selectize/selectize.js#129
Thanks. I think you are right!
Just discovered the "custom page label format" and added the parent to the labels which solves the issue for me.