statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
3.6k stars 493 forks source link

"Allow creating" is not saved on the Entries-fieldtype #10083

Closed espenlg closed 2 months ago

espenlg commented 2 months ago

Bug description

When I edit a fieldset and toggle "Allow creating" to off and click apply/save it does not actually save. If I go into edit mode on the field again it looks fine, but if I reload the page it is restored.

I did a video do illustrate: https://github.com/statamic/cms/assets/1135679/b4b536ab-f93e-438a-b91b-903ac8962d56

How to reproduce

Hopefully the description is sufficient.

Logs

No response

Environment

Environment
Application Name: Laugstol
Laravel Version: 11.7.0
PHP Version: 8.2.16
Composer Version: 2.7.2
Environment: local
Debug Mode: ENABLED
URL: laugstol.test/
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Statamic
Addons: 0
Sites: 2 (Norsk, Engelsk)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.0.2 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

duncanmcclean commented 2 months ago

This should be fixed in the latest release, v5.1.0.

espenlg commented 2 months ago

Great! For some reason the v5.1.0 update is not .. like the others .. But maybe I can adjust composer.json and get the update anyway. Screenshot 2024-05-15 at 14 43 48 Screenshot 2024-05-15 at 14 44 03

duncanmcclean commented 2 months ago

What does your composer.json look like? The version constraint probably needs to be tweaked.

espenlg commented 2 months ago

What does your composer.json look like? The version constraint probably needs to be tweaked.

It's not been changed since I installed a fresh v5 on monday. It was: "statamic/cms": "^5.0" and I changed it to: "statamic/cms": "^5.1" then did a composer update statamic/cms --with-dependencies and it worked fine.

duncanmcclean commented 2 months ago

That's strange. Working now though?

espenlg commented 2 months ago

Yes, changing composer.json helped.