All of a sudden facing an issue assigning a custom field group to a post type.
Everything working fine and then suddenly after I edit a custom field group by adding a new group field, it reverted to 'post' as the assigned post type. I exported the fields and noticed that the 'settings' key was empty. The database shows it empty too.
I deleted the custom field group, re-imported, with a new post_name and a populated settings key in the JSON and after saving the field group it just emptied the settings key again.
Deactivating and reactivating the plugin does nothing.
Re-saving permalinks. No change.
Disabling all plugins. No change.
New custom field group seems to be assigned to the CPT fine. The problematic custom field group must have some kind of specific combination of fields that is corrupting something.
See recording: https://www.loom.com/share/246a622f429741a0926229ab45a376d8?sid=f0420f06-8885-4578-a2a8-d4803b5a97e1