statamic / cms

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

Globals in an array type(?) are being saved as null from the UI if no value is specified #11074

Closed dchymko closed 6 hours ago

dchymko commented 2 weeks ago

Bug description

This is a follow up to a ticket that I create in the Stumblr repo about this: https://github.com/statamic/starter-kit-stumblr/pull/7#issuecomment-2457720296

I couldn't reproduce in any of the standard globals in any of my sites. But I can definitely reproduce this for the social_links global in Stumblr which makes me wonder if this is just specific to array fields?

Also I don't know if this a "bug" necessarily. I feel like the views should account for nullish values.?

How to reproduce

See the ticket above for Stumblr

Logs

No response

Environment

I don't have access to that site right now, but this is a new install of the Stumblr starter kit.

Installation

Fresh statamic/statamic site via CLI

Additional details

No response