From d8bb37642442325f31dfb99a550af3b971beed99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 25 Sep 2026 14:43:08 +0200 Subject: [PATCH] fix: send form date values as YYYY-MM-DD strings to epteam api --- .../ext/ep_theme/Classes/Form/AbstractMappedFinisher.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_theme/Classes/Form/AbstractMappedFinisher.php b/public/typo3conf/ext/ep_theme/Classes/Form/AbstractMappedFinisher.php index aa271ca6..c0276dbf 100644 --- a/public/typo3conf/ext/ep_theme/Classes/Form/AbstractMappedFinisher.php +++ b/public/typo3conf/ext/ep_theme/Classes/Form/AbstractMappedFinisher.php @@ -34,6 +34,12 @@ abstract class AbstractMappedFinisher extends AbstractFinisher return $mappings; } + /** + * The mapped values, keyed by the remote name the receiving side expects. Values pass through + * normalizeValue() just like the labeled ones do, so a date element arrives as a Y-m-d string + * instead of a serialized DateTime. A value that does not survive normalization keeps its key: + * the remote names make up the request shape and dropping one would change it. + */ protected function buildPayload(): array { $values = []; @@ -44,7 +50,7 @@ abstract class AbstractMappedFinisher extends AbstractFinisher continue; } - $values[$remote] = $formValues[$local]; + $values[$remote] = $this->normalizeValue($formValues[$local], $local); } return $values;