Skip to content

Commit

Permalink
3.100 (#7200)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed May 18, 2021
1 parent 59db361 commit bd8505c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.100.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.99.1...3.100.0) - 2021-05-18
### Deprecated
- [[#7191](https://github.com/sonata-project/SonataAdminBundle/pull/7191)] Passing a `code` value in the request of AppendFormFieldElementAction, GetShortObjectDescriptionAction, RetrieveAutocompleteItemsAction, RetrieveFormFieldElementAction and SetObjectFieldValueAction. Pass `_sonata_admin` instead. ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#7191](https://github.com/sonata-project/SonataAdminBundle/pull/7191)] Passing a `Pool` argument to the constructor of AppendFormFieldElementAction, GetShortObjectDescriptionAction, RetrieveAutocompleteItemsAction, RetrieveFormFieldElementAction and SetObjectFieldValueAction. Pass an AdminFetcher instead. ([@VincentLanglet](https://github.com/VincentLanglet))

### Fixed
- [[#7191](https://github.com/sonata-project/SonataAdminBundle/pull/7191)] AppendFormFieldElementAction, GetShortObjectDescriptionAction, RetrieveAutocompleteItemsAction, RetrieveFormFieldElementAction and SetObjectFieldValueAction now set the childAdmin subjects to the childAdmin. ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#7196](https://github.com/sonata-project/SonataAdminBundle/pull/7196)] Changed .select2() to .attr() ([@cecicifu](https://github.com/cecicifu))
- [[#7196](https://github.com/sonata-project/SonataAdminBundle/pull/7196)] Set id in the value attribute of hidden input after save ([@cecicifu](https://github.com/cecicifu))

## [3.99.1](https://github.com/sonata-project/SonataAdminBundle/compare/3.99.0...3.99.1) - 2021-05-11
### Fixed
- [[#7181](https://github.com/sonata-project/SonataAdminBundle/pull/7181)] Fix SimplePager pagination ([@VincentLanglet](https://github.com/VincentLanglet))
Expand Down
4 changes: 2 additions & 2 deletions src/Action/AppendFormFieldElementAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(Environment $twig, $poolOrAdminFetcher, AdminHelper
$this->adminFetcher = $poolOrAdminFetcher;
} elseif ($poolOrAdminFetcher instanceof Pool) {
@trigger_error(sprintf(
'Passing other type than %s in argument 2 to %s() is deprecated since sonata-project/admin-bundle 3.x'
'Passing other type than %s in argument 2 to %s() is deprecated since sonata-project/admin-bundle 3.100'
.' and will throw %s error in 4.0.',
AdminFetcherInterface::class,
__METHOD__,
Expand All @@ -82,7 +82,7 @@ public function __invoke(Request $request): Response
// NEXT_MAJOR: Remove this BC-layer.
if (null === $request->get('_sonata_admin')) {
@trigger_error(
'Not passing the "_sonata_admin" parameter in the request is deprecated since sonata-project/admin-bundle 3.x'
'Not passing the "_sonata_admin" parameter in the request is deprecated since sonata-project/admin-bundle 3.100'
.' and will throw an exception in 4.0.',
\E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/Action/GetShortObjectDescriptionAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct(Environment $twig, $poolOrAdminFetcher)
$this->adminFetcher = $poolOrAdminFetcher;
} elseif ($poolOrAdminFetcher instanceof Pool) {
@trigger_error(sprintf(
'Passing other type than %s in argument 2 to %s() is deprecated since sonata-project/admin-bundle 3.x'
'Passing other type than %s in argument 2 to %s() is deprecated since sonata-project/admin-bundle 3.100'
.' and will throw %s error in 4.0.',
AdminFetcherInterface::class,
__METHOD__,
Expand All @@ -74,7 +74,7 @@ public function __invoke(Request $request): Response
// NEXT_MAJOR: Remove this BC-layer.
if (null === $request->get('_sonata_admin')) {
@trigger_error(
'Not passing the "_sonata_admin" parameter in the request is deprecated since sonata-project/admin-bundle 3.x'
'Not passing the "_sonata_admin" parameter in the request is deprecated since sonata-project/admin-bundle 3.100'
.' and will throw an exception in 4.0.',
\E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/Action/RetrieveAutocompleteItemsAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct($poolOrAdminFetcher)
$this->adminFetcher = $poolOrAdminFetcher;
} elseif ($poolOrAdminFetcher instanceof Pool) {
@trigger_error(sprintf(
'Passing other type than %s in argument 2 to %s() is deprecated since sonata-project/admin-bundle 3.x'
'Passing other type than %s in argument 2 to %s() is deprecated since sonata-project/admin-bundle 3.100'
.' and will throw %s error in 4.0.',
AdminFetcherInterface::class,
__METHOD__,
Expand Down Expand Up @@ -74,7 +74,7 @@ public function __invoke(Request $request): JsonResponse
// NEXT_MAJOR: Remove this BC-layer.
if (null === $request->get('_sonata_admin')) {
@trigger_error(
'Not passing the "_sonata_admin" parameter in the request is deprecated since sonata-project/admin-bundle 3.x'
'Not passing the "_sonata_admin" parameter in the request is deprecated since sonata-project/admin-bundle 3.100'
.' and will throw an exception in 4.0.',
\E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/Action/RetrieveFormFieldElementAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(Environment $twig, $poolOrAdminFetcher, AdminHelper
$this->adminFetcher = $poolOrAdminFetcher;
} elseif ($poolOrAdminFetcher instanceof Pool) {
@trigger_error(sprintf(
'Passing other type than %s in argument 2 to %s() is deprecated since sonata-project/admin-bundle 3.x'
'Passing other type than %s in argument 2 to %s() is deprecated since sonata-project/admin-bundle 3.100'
.' and will throw %s error in 4.0.',
AdminFetcherInterface::class,
__METHOD__,
Expand All @@ -81,7 +81,7 @@ public function __invoke(Request $request): Response
// NEXT_MAJOR: Remove this BC-layer.
if (null === $request->get('_sonata_admin')) {
@trigger_error(
'Not passing the "_sonata_admin" parameter in the request is deprecated since sonata-project/admin-bundle 3.x'
'Not passing the "_sonata_admin" parameter in the request is deprecated since sonata-project/admin-bundle 3.100'
.' and will throw an exception in 4.0.',
\E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/Action/SetObjectFieldValueAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function __construct(
$this->adminFetcher = $poolOrAdminFetcher;
} elseif ($poolOrAdminFetcher instanceof Pool) {
@trigger_error(sprintf(
'Passing other type than %s in argument 2 to %s() is deprecated since sonata-project/admin-bundle 3.x'
'Passing other type than %s in argument 2 to %s() is deprecated since sonata-project/admin-bundle 3.100'
.' and will throw %s error in 4.0.',
AdminFetcherInterface::class,
__METHOD__,
Expand Down Expand Up @@ -145,7 +145,7 @@ public function __invoke(Request $request): JsonResponse
// NEXT_MAJOR: Remove this BC-layer.
if (null === $request->get('_sonata_admin')) {
@trigger_error(
'Not passing the "_sonata_admin" parameter in the request is deprecated since sonata-project/admin-bundle 3.x'
'Not passing the "_sonata_admin" parameter in the request is deprecated since sonata-project/admin-bundle 3.100'
.' and will throw an exception in 4.0.',
\E_USER_DEPRECATED
);
Expand Down

0 comments on commit bd8505c

Please sign in to comment.