craft3-fields
craft3-fields copied to clipboard
[Bug] - Draft field value reset on Craft 3.6 and PHP 7.4
⚙️ System settings
Craft CMS: 3.6.10 PHP: 7.4.16
🐛 Bug description
With Craft 3.6 and PHP 7.4, when a new draft is created for an Entry with the NSM Embed field, blocks with field values after the embed field get reset.
👣 Reproduction steps
Steps to reproduce the behavior:
- Create an Entry with the NSM Embed field.
- Click on 'Create a draft'.
- While viewing the draft, click on another site and then go back to the original site.
- See error. Draft field values after the embed field are reset.
Resources
https://user-images.githubusercontent.com/11489608/110871980-a9c19300-828c-11eb-9551-2ccb3ba69087.mp4
Hmm that's super weird… I'll check it out over the weekend.
Hi @leevigraham, any update on this? We're still experiencing this issue. I'm pretty sure https://github.com/newism/craft3-fields/issues/45 is related.
Similarly, when an NSM field is within a nested field (i.e., Matrix, Neo, etc.) it does not correctly apply draft values to the entry. This occurs for most NSM fields with the exception of Email
. Additionally, it doesn't seem to matter what the nested parent's localization pattern is; it occurs for both localized and non-localized parent blocks.
Steps to reproduce the behavior:
- Add NSM field within a nested block.
- "Create a draft" and add values to NSM fields.
- Publish draft.
- See error. NSM field values from draft are not present in Entry.
Haven't looked into it yet. I'm running a 3.7 update today so I'll check at the same time.
@sidedwards I think I've finally figured this out. Can you try v1.0.4 if you're still using the plugin: https://github.com/newism/craft3-fields/releases/tag/1.0.4