Skip to content

Commit d61788a

Browse files
authored
Merge 4.x into 5.x
2 parents aa47dee + 3fbcc80 commit d61788a

4 files changed

Lines changed: 19 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [4.43.0](https://github.com/sonata-project/SonataAdminBundle/compare/4.42.0...4.43.0) - 2026-06-03
6+
### Added
7+
- [[#8381](https://github.com/sonata-project/SonataAdminBundle/pull/8381)] Support for symfony/stimulus-bundle 3. ([@virtualize](https://github.com/virtualize))
8+
- [[#8373](https://github.com/sonata-project/SonataAdminBundle/pull/8373)] Added optional flag to `FormErrorIteratorToConstraintViolationList::transform()` to sanitize error messages and prevent leaking sensitive information (e.g. internal file system paths) ([@micbis](https://github.com/micbis))
9+
- [[#8371](https://github.com/sonata-project/SonataAdminBundle/pull/8371)] Support for `doctrine/collections` 3 ([@dmaicher](https://github.com/dmaicher))
10+
11+
### Fixed
12+
- [[#8382](https://github.com/sonata-project/SonataAdminBundle/pull/8382)] Do not generate the edit button URL in `edit_many_script` when the associated admin has no accessible `edit` route ([@EmmanuelVella](https://github.com/EmmanuelVella))
13+
14+
### Removed
15+
- [[#8371](https://github.com/sonata-project/SonataAdminBundle/pull/8371)] Support for `doctrine/collections` < 2 ([@dmaicher](https://github.com/dmaicher))
16+
17+
### Security
18+
- [[#8373](https://github.com/sonata-project/SonataAdminBundle/pull/8373)] Added opt-in protection against exposing sensitive system information (e.g. temporary upload paths) in validation error payloads ([@micbis](https://github.com/micbis))
19+
520
## [4.42.0](https://github.com/sonata-project/SonataAdminBundle/compare/4.41.0...4.42.0) - 2026-01-05
621
### Changed
722
- [[#8369](https://github.com/sonata-project/SonataAdminBundle/pull/8369)] The `symfony/security-acl` dependency is now optional. You need to explicitly require it as a dependency if you are using ACL. ([@dmaicher](https://github.com/dmaicher))

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"symfony/security-core": "^6.4 || ^7.3 || ^8.0",
5757
"symfony/security-csrf": "^6.4 || ^7.3 || ^8.0",
5858
"symfony/serializer": "^6.4 || ^7.3 || ^8.0",
59-
"symfony/stimulus-bundle": "^2.22",
59+
"symfony/stimulus-bundle": "^2.22 || ^3.0",
6060
"symfony/string": "^6.4 || ^7.3 || ^8.0",
6161
"symfony/translation": "^6.4 || ^7.3 || ^8.0",
6262
"symfony/translation-contracts": "^2.3 || ^3.0",

src/Form/DataTransformer/ModelToIdPropertyTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class ModelToIdPropertyTransformer implements DataTransformerInterface
3535
/**
3636
* @var callable|null
3737
*
38-
* @phpstan-var null|callable(T, P): string
38+
* @phpstan-var callable(T, P): string|null
3939
*/
4040
private $toStringCallback;
4141

src/Resources/views/CRUD/Association/edit_many_script.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ This code manages the many-to-[one|many] association field popup
560560
if (undefined === objectId || null === objectId || '' === objectId) {
561561
jQuery('#field_widget_{{ id }}').html('{{ 'short_object_description_placeholder'|trans({}, 'SonataAdminBundle') }}');
562562
563-
{% if btn_edit %}
563+
{% if associationadmin.hasroute('edit') and associationadmin.hasAccess('edit') and btn_edit %}
564564
jQuery('#field_actions_{{ id }} a.btn-warning').addClass('hidden');
565565
{% endif %}
566566
@@ -587,7 +587,7 @@ This code manages the many-to-[one|many] association field popup
587587
}
588588
});
589589
590-
{% if btn_edit %}
590+
{% if associationadmin.hasroute('edit') and associationadmin.hasAccess('edit') and btn_edit %}
591591
var edit_button_url = '{{
592592
associationadmin.generateUrl('edit', {(associationadmin.idParameter) : 'OBJECT_ID'})
593593
}}'.replace('OBJECT_ID', objectId);

0 commit comments

Comments
 (0)