When using the admin forms, the Default content Availability on content types is not translated to the content's language mask.
The data returned by the form has 'alwaysAvailable' => NULL despite the content type having 'defaultAlwaysAvailable' => true. This can be verified by inspecting the $form->getData() in the class \EzSystems\RepositoryForms\Content\View\Builder\ContentCreateViewBuilder at line 86.
And according to the class \eZ\Publish\Core\Repository\ContentService we have:
And there you have it, the contant availability is always false.
To reproduce this issue:
- Make sure you have a content type with the option "Default content Availability" enabled.
- Create an object of this type in English
- Check the table ezcontentobject for your content
Expected result :