Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Page/TextTags field - Selection disappears after changing page title to an already existing one #1736

Open
Laksone opened this issue May 17, 2023 · 3 comments

Comments

@Laksone
Copy link

Laksone commented May 17, 2023

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"

  1. Select "Page New" through a TextTags field
  2. Change the title of "Page New" to "Page" (or another page title that already exists)
  3. 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

@ryancramerdesign
Copy link
Member

@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.

@Toutouwai
Copy link

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:
2023-05-19_104330

Field value after changing the title of page "Dog" to "Cat":
2023-05-19_104357

Possibly related to Selectize not allowing duplicate items?
selectize/selectize.js#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

@Laksone
Copy link
Author

Laksone commented Jun 1, 2023

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.
grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants