diff --git a/CHANGELOG.md b/CHANGELOG.md index c58fc84..cecd57b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [1.11.2] - 2026-10-06 + +### Fixed +- **API Platform (Client)**: Corregido un error ("The input data is misformatted") al mover clientes a otras unidades organizativas o aulas desde la interfaz. El endpoint de la API (`/clients/change-organizational-unit`) estaba utilizando incorrectamente la restricción de validación `GreaterThan(1)` sobre la lista de equipos en lugar de `Count(min: 1)`, lo que provocaba un fallo interno en el serializador de Symfony. Ahora se pueden mover equipos correctamente, incluso de uno en uno. + ## [1.11.1] - 2026-10-02 ### Fixed diff --git a/src/Dto/Input/ChangeOrganizationalUnitInput.php b/src/Dto/Input/ChangeOrganizationalUnitInput.php index 0addc49..5f45435 100644 --- a/src/Dto/Input/ChangeOrganizationalUnitInput.php +++ b/src/Dto/Input/ChangeOrganizationalUnitInput.php @@ -13,10 +13,10 @@ final class ChangeOrganizationalUnitInput /** * @var ClientOutput[] */ - #[Assert\GreaterThan(1)] + #[Assert\Count(min: 1)] #[Groups(['client:write'])] #[ApiProperty( - description: 'Los clientes a mover (mínimo 2)', + description: 'Los clientes a mover (mínimo 1)', example: [] )] public ?array $clients = [];