From 41f801b756e4ec2e0e832e2ea3fd5fcbf24c8dba Mon Sep 17 00:00:00 2001
From: Simon Praetorius <simon@praetorius.me>
Date: Thu, 19 Oct 2023 12:29:52 +0200
Subject: [PATCH] [DOCS] Clarify usage of "value" with "property" in <f:form.*>
 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 <simon@praetorius.me>
Reviewed-by: Simon Praetorius <simon@praetorius.me>
---
 .../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 b3c7e1b9afb2..352ccc842f43 100644
--- a/typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php
+++ b/typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php
@@ -51,7 +51,7 @@ abstract class AbstractFormFieldViewHelper extends AbstractFormViewHelper
         $this->registerArgument(
             'property',
             'string',
-            'Name of Object Property. If used in conjunction with <f:form object="...">, "name" and "value" properties will be ignored.'
+            'Name of Object Property. If used in conjunction with <f:form object="...">, the "name" property will be ignored, while "value" can be used to specify a default field value instead of the object property value.'
         );
     }
 
-- 
GitLab