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

Unable to add entries via relational fields #50

Open
KBjana opened this issue Dec 9, 2024 · 4 comments
Open

Unable to add entries via relational fields #50

KBjana opened this issue Dec 9, 2024 · 4 comments

Comments

@KBjana
Copy link

KBjana commented Dec 9, 2024

Describe the bug

I've just installed the plugin and set up the Many to Many fields and viewing data works no problem, but if you try to add an entry it appears to work, but it's not added to the source field. I've tried several similar plugins and reportedly this is an issue that's come up with all of them since the relational changes in Craft 5.3.

Steps to reproduce

  1. Installed plugin
  2. Create Many to Many field
  3. Add to existing entry type
  4. Open entry, I can see that it's picking up data from the source field
  5. Add a new (existing) entry and save. The new entry appears to be there.
  6. Open the added entry, the new relationship is not there.

Craft CMS version

5.5.2

Plugin version

4.0.1

Multi-site?

No

Additional context

No response

@engram-design
Copy link
Member

I can confirm something strange is going on. It seems adding or removing items applies initially, but then after some time the entire field is wiped and the related entries aren't updated.

@stephenheron
Copy link

Yeah, we had a lot of problems with this plugin.

I had to get right into the code and change quite a bit of things to work like I expected it to: stephenheron@b02ae5d

Not sure if my changes will fix your issue's but it made it work for us.

@engram-design
Copy link
Member

Thanks for chiming in @stephenheron that's at least a start for us to go off.

@engram-design
Copy link
Member

Just applied those fixes for the next release. Fixed for the next release. To get this early, run composer require verbb/many-to-many:"dev-craft-5 as 4.0.1".

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

3 participants