-
Notifications
You must be signed in to change notification settings - Fork 16
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 4 → 5 Migrated Event fields uneditable on multi-site #342
Comments
I think I'm running into a similar issue, though not on multisite. I have 3 calendars, all use the same field "background" in their field layout. When I change and save the value in an event belonging to two of those calendars the event saves fine, but in one of them it doesn't save. I also get a notice that the event saved, but the change is not there. I noticed if I change the handle for the calendar with the issue, it does save and the changes stick. I also noticed that in the db table Some config from the database:The relevant items from the {
"65819b05-7e9f-4919-9a69-b5f53ac321b3": "<p>An agenda (with webinar information) will be posted below when available</p>",
"7cc6cee3-40f5-4d27-9ea7-8c13316a3db6": "<p>An agenda (with webinar information) will be posted below when available</p>"
} # Relevant element from the Calendar A config
dateAdded: '2024-11-23T04:24:45+00:00'
elementCondition: null
fieldUid: 67d5853e-9524-4f93-9d85-5a384d089370 # Background
handle: null
includeInCards: false
instructions: ''
label: Purpose
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 65819b05-7e9f-4919-9a69-b5f53ac321b3
userCondition: null
warning: null
width: 100 # Relevant element from the Calendar B config
dateAdded: '2024-11-23T04:24:47+00:00'
elementCondition: null
fieldUid: 67d5853e-9524-4f93-9d85-5a384d089370 # Background
handle: null
includeInCards: false
instructions: ''
label: Purpose
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 7cc6cee3-40f5-4d27-9ea7-8c13316a3db6
userCondition: null
warning: null
width: 100 |
Sorry for the delay and the trouble you're experiencing, @andypullen and @danbrellis. A developer will be checking into this shortly. 🙂 |
I'm trying to follow your reproduce steps. I want to make sure that I have same setup.
I've got an English and Dutch site
I've added a calendar called English and only enabled for English site
Okay
Okay
This is the part I'm not following. I can edit the Dutch event. My English site is my primary site. But my Dutch event saves fine and I can see my changes saved when I go back to view it again. |
I was running the latest versions of Craft Calendar in both instances, CraftCMS 4 and then CraftCMS 5. |
@seandelaney Sorry for the confusing description! It is still happening for us. The important piece is that the field must have been populated before the upgrade. Here is an example of it not working: Screen.Shot.2024-12-19.at.14.09.33.mp4If the field was blank before the upgrade from CraftCMS 4 → 5, its edits will be retained. I hope this helps! |
@seandelaney This happens to me as well, and on a single site. The fields are not getting saved when submitted, and there is no error message or anything. These are custom fields added into section. |
Happy New Year @nku-multi-concept @danbrellis @andypullen ! Before we go any further, can all of you please update to the latest version of Calendar 5 and test saving again. Before Christmas we found a issue with saving fields. Let me know how you get on? |
Happy New Year! It unfortunately still does not work for me. Let me know how else I can help! |
Can I get a copy of your Craft 4 DB before you upgraded to Craft 5 please? You can remove any sensitive/private info. Email to [email protected] |
@seandelaney - it seems some combination of merging fields, converting from redactor to ckeditor, and updating the calendar plugin as you suggested did the trick and this issue is resolved for me. Good luck to others and thanks for your help! |
We upgraded recently to Craft 5 and found that any fields with pre-existing content before the migration cannot be edited on events in calendars that are enabled only on secondary sites. When editing the fields, the notice at the bottom of the control panel shows that the event was updated, but its content never gets adjusted. I am able to edit content on an empty field, and then come back and edit just fine.
I'm not 100% I've got the exact issue pinned down, but I've tested the best I can. I hope the description helps enough to reproduce, if possible.
Steps to reproduce
php craft calendar/events/fix-titles
migration stepExpected behavior
All fields should be editable in every scenario.
Craft & Plugin Info (please complete the following information):
Additional context
Here are the scenarios I've found:
The text was updated successfully, but these errors were encountered: