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

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

papcio122
Copy link
Contributor

@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
Contributor 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
Copy link

sonarcloud bot commented Nov 19, 2024

@papcio122 papcio122 requested a review from adamwojs November 19, 2024 11:07
@juskora
Copy link
Contributor

juskora commented Dec 13, 2024

QA Approved on Ibexa DXP Commerce 4.6.14

@mikadamczyk mikadamczyk merged commit b2bfb90 into 4.6 Dec 16, 2024
14 checks passed
@mikadamczyk mikadamczyk deleted the IBX-8711 branch December 16, 2024 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working QA approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants