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

Can't remove entries in an Entries field within a Vizy block #299

Closed
bleepsandblops opened this issue May 12, 2024 · 6 comments
Closed

Can't remove entries in an Entries field within a Vizy block #299

bleepsandblops opened this issue May 12, 2024 · 6 comments

Comments

@bleepsandblops
Copy link

Describe the bug

I feel like this is a new bug because I would have noticed it before, but if you create a simple Vizy block with just an Entries field, you can add to it fine but can't remove entries. If you save and go back to the post, the entries you've deleted are still there.
If you remove all of them it seems to work.

Opening the entry
Screenshot 2024-05-12 at 15 35 56
Removing one related entry, before saving
Screenshot 2024-05-12 at 15 35 42
After saving and re-opening, it's still there
Screenshot 2024-05-12 at 15 35 36

Thank you!

Steps to reproduce

  1. Create a Vizy block with an Entries field, add this to an entry type
  2. Create an entry with this block, add a few items to it, save
  3. Open the entry again, and remove one or two entries, save
  4. The entries are still there

Craft CMS version

4.8.10

Plugin version

2.1.19

Multi-site?

No

Additional context

No response

@engram-design
Copy link
Member

engram-design commented May 16, 2024

This would have to do with our mitigation of field changes until you interact with the field. This is done so that content changes aren't triggered when you haven't changed anything in the field. This is most common for nested Vizy fields, but can happen on just single level ones.

We watch for when you click in on a Vizy field, and have a flag to stop any changes from being recorded. Bizarrely, this doesn't seem to be triggered when clicking the remove button on an element select. Everything else about clicking in on a Vizy field and Vizy block is working correctly, but not the remove button. You can confirm this by clicking on anything else in the field first, then removing the entries.

Looking into options...

@engram-design
Copy link
Member

Fixed for the next release. To get this early, run composer require verbb/vizy:"dev-craft-4 as 2.1.19".

@engram-design
Copy link
Member

Fixed in 2.1.20

@bleepsandblops
Copy link
Author

@engram-design this is still an issue (or maybe is back?) on Vizy 3.0.4 - Craft 5.4.7.1

@engram-design
Copy link
Member

Fixed for the next release. To get this early, run composer require verbb/vizy:"dev-craft-4 as 2.1.23" or composer require verbb/vizy:"dev-craft-5 as 3.0.4".

@engram-design engram-design reopened this Oct 22, 2024
@engram-design
Copy link
Member

Fixed in 3.0.5

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

No branches or pull requests

2 participants