Compare commits
2
Commits
38d575cbe9
...
b5d0c484c0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5d0c484c0 | ||
|
|
d8bb376424 |
No files matched your search
@@ -34,6 +34,12 @@ abstract class AbstractMappedFinisher extends AbstractFinisher
|
|||||||
return $mappings;
|
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
|
protected function buildPayload(): array
|
||||||
{
|
{
|
||||||
$values = [];
|
$values = [];
|
||||||
@@ -44,7 +50,7 @@ abstract class AbstractMappedFinisher extends AbstractFinisher
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$values[$remote] = $formValues[$local];
|
$values[$remote] = $this->normalizeValue($formValues[$local], $local);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $values;
|
return $values;
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||||
|
<formvh:renderRenderable renderable="{element}">
|
||||||
|
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
|
||||||
|
<f:form.textfield
|
||||||
|
type="date"
|
||||||
|
property="{element.identifier}"
|
||||||
|
id="{element.uniqueIdentifier}"
|
||||||
|
class="form-field"
|
||||||
|
errorClass="form-field--has-error"
|
||||||
|
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||||
|
/>
|
||||||
|
</f:render>
|
||||||
|
</formvh:renderRenderable>
|
||||||
|
</html>
|
||||||
Reference in new issue
Block a user