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

Craft 5 - Multiple instanced fields on events will not save values #315

Open
gregorterrill opened this issue Aug 14, 2024 · 4 comments · May be fixed by #323
Open

Craft 5 - Multiple instanced fields on events will not save values #315

gregorterrill opened this issue Aug 14, 2024 · 4 comments · May be fixed by #323
Assignees
Labels
issue Something isn't working correctly

Comments

@gregorterrill
Copy link

It appears that in Craft 5, if you add multiple instances of a field to the field layout of a calendar (with different labels / handles, but the same underlying field), only the first instance of that field will actually save its value. The rest of them are all blank.

Steps to reproduce:

  1. Create a calendar.
  2. Add the same field multiple times to that calendar's field layout, changing the label and handle for each one.
  3. Create an event in that calendar.
  4. Fill out all fields and save.
  5. Only the first custom field will have its value saved, the others will be blank.

Version info:

  • Craft Version: 5.3.4
  • Calendar Version: 5.0.7
  • Calendar Edition: Pro (trial)
@gregorterrill gregorterrill added the issue Something isn't working correctly label Aug 14, 2024
@strandofgenius
Copy link

I am also having this issue with Calendar 5.0.7

@gregorterrill
Copy link
Author

I actually just noticed a likely related issue as well - in the calendar config screen, the "ICS Description field" and "ICS Location field" dropdowns only show the original non-instanced field names. So for example, I have a "Short Text" base field with two instances "Excerpt" and "Pricing Info" in the layout. I would expect to see "Excerpt" and "Pricing Info" as options in the dropdown, but instead I only see one "Short Text" option. Seems like the plugin just doesn't recognize instanced fields.

@kjmartens
Copy link
Contributor

Sorry about this. We'll investigate this issue shortly. 🙂

@seandelaney
Copy link
Contributor

PR includes fix for the "ICS Description field" and "ICS Location field" dropdowns too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue Something isn't working correctly
4 participants