Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class FieldDefinitionCreateStruct extends ValueObject
/**
* Indicates if the field is translatable.
*/
public bool $isTranslatable = true;
public bool $isTranslatable = false;

/**
* Indicates if the field is required.
Expand Down
1 change: 1 addition & 0 deletions tests/integration/Core/Repository/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ protected function createSimpleContentType(
$fieldDefinitionIdentifier,
$fieldTypeIdentifier
);
$fieldDefinitionCreateStruct->isTranslatable = true;
$contentTypeCreateStruct->addFieldDefinition($fieldDefinitionCreateStruct);
}
$contentTypeService->publishContentTypeDraft(
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/Core/Repository/ContentServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6674,6 +6674,7 @@ public function testCopyTranslationsFromInvalidPublishedContentToDraft()
$contentTypeCreateStruct->names = ['eng-US' => 'Test content type for Copy Translations'];
$fieldDefinition = $contentTypeService->newFieldDefinitionCreateStruct('name', 'ibexa_string');
$fieldDefinition->position = 1;
$fieldDefinition->isTranslatable = true;
$contentTypeCreateStruct->addFieldDefinition($fieldDefinition);
$contentTypeService->publishContentTypeDraft(
$contentTypeService->createContentType(
Expand Down Expand Up @@ -6718,6 +6719,7 @@ public function testCopyTranslationsFromInvalidPublishedContentToDraft()
$fieldDefinition = $contentTypeService->newFieldDefinitionCreateStruct('req_field', 'ibexa_string');
$fieldDefinition->position = 2;
$fieldDefinition->isRequired = true;
$fieldDefinition->isTranslatable = true;
$contentTypeService->addFieldDefinition($contentTypeDraft, $fieldDefinition);
$contentTypeService->publishContentTypeDraft($contentTypeDraft);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ public function testNewFieldDefinitionCreateStructValues($createStruct)
'descriptions' => [],
'fieldGroup' => null,
'position' => null,
'isTranslatable' => true,
'isTranslatable' => false,
'isRequired' => false,
'isInfoCollector' => false,
'validatorConfiguration' => null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ private function createContentForContentTranslatedNameTesting(iterable $values):
$fieldCreate->names = ['eng-GB' => 'value'];
$fieldCreate->fieldGroup = 'main';
$fieldCreate->position = 1;
$fieldCreate->isTranslatable = true;

$contentTypeCreateStruct->addFieldDefinition($fieldCreate);

Expand Down
Loading