Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-8711: Added setting default for struct option in ContentFieldType #74

Open
wants to merge 1 commit into
base: 4.6
Choose a base branch
from

Conversation

papcio122
Copy link

@papcio122 papcio122 commented Oct 1, 2024

🎫 Issue IBX-8711

Related PRs:

Description:

Option "struct" is required in Ibexa\ContentForms\Form\Type\Content\ContentFieldType but has no default value.
This caused a throwing exception when editing the uploaded image in imageAssetField, when creating a form in Ibexa\Bundle\ImageEditor\Controller\ImageAssetController::buildImageFieldTypeForm().

Added setting a default value for this option.

@papcio122 papcio122 added Bug Something isn't working Ready for review labels Oct 1, 2024
@papcio122 papcio122 requested review from ViniTou and a team October 1, 2024 08:13
Copy link

sonarcloud bot commented Oct 1, 2024

Copy link
Contributor

@ViniTou ViniTou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But please take a look why there is missing CoreSearch bundle in behat tests.

Also, if there is a slight chance that you could also remove dependency on

use Ibexa\Contracts\Core\Repository\Values\User\UserCreateStruct;
use Ibexa\Contracts\Core\Repository\Values\User\UserUpdateStruct;

here, and move that somehow to user bundle it would be great - or at least create issue for it as I have feeling it would bite us at some point.

@ViniTou ViniTou changed the title IBX-8711 added setting default for struct option in ContentFieldType IBX-8711: Added setting default for struct option in ContentFieldType Oct 24, 2024
@papcio122
Copy link
Author

The issue for removing the dependency: https://issues.ibexa.co/browse/IBX-9146

@papcio122 papcio122 requested review from a team and removed request for a team October 24, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants