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

Fix form when we do not use any resource factory #194

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Dec 23, 2024

When we do not use any resource factory (eg: on resource detached from Doctrine), we have an error cause the resource is not defined.

@loic425 loic425 merged commit 96338ad into Sylius:main Dec 23, 2024
6 checks passed
@loic425 loic425 deleted the fix/form branch December 23, 2024 11:04
GSadee added a commit to Sylius/Sylius that referenced this pull request Jan 10, 2025
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | Related to #Sylius/Stack#194
| License         | MIT

To have more explanation, see comments in
#Sylius/Stack#194

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Improved handling of the `resource` variable in the form template to
ensure it defaults to `null` when undefined, enhancing template
robustness.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
GSadee added a commit to Sylius/SyliusAdminBundle that referenced this pull request Jan 13, 2025
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | Related to #Sylius/Stack#194
| License         | MIT

To have more explanation, see comments in
#Sylius/Stack#194

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Improved handling of the `resource` variable in the form template to
ensure it defaults to `null` when undefined, enhancing template
robustness.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants