Details
Description
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:
if ($contentCreateStruct->alwaysAvailable === null) { $contentCreateStruct->alwaysAvailable = false; }
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 :
initial_language_id | language_mask |
---|---|
2 | 3 |
Actual result:
initial_language_id | language_mask |
---|---|
2 | 2 |
Attachments
Issue Links
- relates to
-
EZP-26831 newContentCreateStruct is not respecting ContentType defaultAlwaysAvailable
-
- Closed
-