mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 17:15:02 +00:00
Compare commits
4 Commits
fix_saved_
...
v3.5.3
Author | SHA1 | Date | |
---|---|---|---|
edcc01149b | |||
27b2d77fdb | |||
96bb98f854
|
|||
68ed2db51e
|
3
.changes/v3.5.3.md
Normal file
3
.changes/v3.5.3.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
## v3.5.3 - 2025-01-07
|
||||||
|
### Fixed
|
||||||
|
* Fix the EntityToJsonTransformer to return an empty array if the value is ""
|
@@ -6,6 +6,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
|||||||
and is generated by [Changie](https://github.com/miniscruff/changie).
|
and is generated by [Changie](https://github.com/miniscruff/changie).
|
||||||
|
|
||||||
|
|
||||||
|
## v3.5.3 - 2025-01-07
|
||||||
|
### Fixed
|
||||||
|
* Fix the EntityToJsonTransformer to return an empty array if the value is ""
|
||||||
|
|
||||||
## v3.5.2 - 2024-12-19
|
## v3.5.2 - 2024-12-19
|
||||||
### Fixed
|
### Fixed
|
||||||
* ([#345](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/345)) Export: activity filtering of users that were associated to an activity between certain dates. Results contained activities that were not within the specified date range"
|
* ([#345](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/345)) Export: activity filtering of users that were associated to an activity between certain dates. Results contained activities that were not within the specified date range"
|
||||||
|
@@ -230,7 +230,7 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface
|
|||||||
|
|
||||||
// check the alias does not exists yet
|
// check the alias does not exists yet
|
||||||
if (\array_key_exists($attr[self::WIDGET_SERVICE_TAG_ALIAS], $this->widgetServices)) {
|
if (\array_key_exists($attr[self::WIDGET_SERVICE_TAG_ALIAS], $this->widgetServices)) {
|
||||||
throw new InvalidArgumentException('a service has already be defined with the '.self::WIDGET_SERVICE_TAG_ALIAS.' '.$attr[self::WIDGET_SERVICE_TAG_ALIAS]);
|
throw new InvalidConfigurationException('a service has already be defined with the '.self::WIDGET_SERVICE_TAG_ALIAS.' '.$attr[self::WIDGET_SERVICE_TAG_ALIAS]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// register the service as available
|
// register the service as available
|
||||||
@@ -259,7 +259,7 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface
|
|||||||
|
|
||||||
// check the alias does not exists yet
|
// check the alias does not exists yet
|
||||||
if (\array_key_exists($alias, $this->widgetServices)) {
|
if (\array_key_exists($alias, $this->widgetServices)) {
|
||||||
throw new InvalidArgumentException('a service has already be defined with the '.self::WIDGET_SERVICE_TAG_ALIAS.' '.$alias);
|
throw new InvalidConfigurationException('a service has already be defined with the '.self::WIDGET_SERVICE_TAG_ALIAS.' '.$alias);
|
||||||
}
|
}
|
||||||
|
|
||||||
// register the factory as available
|
// register the factory as available
|
||||||
|
@@ -28,8 +28,8 @@ class EntityToJsonTransformer implements DataTransformerInterface
|
|||||||
|
|
||||||
public function reverseTransform($value)
|
public function reverseTransform($value)
|
||||||
{
|
{
|
||||||
if ($this->multiple && '' === $value) {
|
if ('' === $value) {
|
||||||
return [];
|
return $this->multiple ? [] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->multiple && [] === $value) {
|
if ($this->multiple && [] === $value) {
|
||||||
|
Reference in New Issue
Block a user