From bb6c710a374d6ac1ddd3aa0a69a98d5469463c65 Mon Sep 17 00:00:00 2001 From: Simon Praetorius Date: Thu, 19 Oct 2023 12:29:52 +0200 Subject: [PATCH] [DOCS] Clarify usage of "value" with "property" in ViewHelpers It is already possible to use the "value" argument together with "property" in form ViewHelpers. This should be reflected in the ViewHelper documentation. One possible use case is a form to edit a user. For the password field you would want to define property="password", but also value="" to not expose the current password hash to the form. Resolves: #102206 Releases: main, 12.4, 11.5 Change-Id: I3c7b1a201e38ccef84efcc863075043cf461dd20 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81478 Tested-by: Simon Praetorius Reviewed-by: Simon Praetorius (cherry picked from commit 41f801b756e4ec2e0e832e2ea3fd5fcbf24c8dba) Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81460 --- .../Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php index 314718e72499..71fb4e469cbe 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php @@ -57,7 +57,7 @@ public function initializeArguments() $this->registerArgument( 'property', 'string', - 'Name of Object Property. If used in conjunction with , "name" and "value" properties will be ignored.' + 'Name of Object Property. If used in conjunction with , the "name" property will be ignored, while "value" can be used to specify a default field value instead of the object property value.' ); }