Actions
Bug #89667
closedPHPDoc for SubmitViewHelper looks incorrect
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2019-11-13
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Description
Looking at the PHPDoc for the SumitViewHelper it looks like the second example is wrong:
Is:
/**
* Creates a submit button.
*
* Examples
* ========
*
* Defaults
* --------
*
* ::
*
* <f:form.submit value="Send Mail" />
*
* Output::
*
* <input type="submit" />
*
* Dummy content for template preview
* ----------------------------------
*
* ::
*
* <f:submit name="mySubmit" value="Send Mail"><button>dummy button</button></f:submit>
*
* Output::
*
* <input type="submit" name="mySubmit" value="Send Mail" />
*/
should be:
/**
* Creates a submit button.
*
* Examples
* ========
*
* Defaults
* --------
*
* ::
*
* <f:form.submit value="Send Mail" />
*
* Output::
*
* <input type="submit" />
*
* Dummy content for template preview
* ----------------------------------
*
* ::
*
* <f:form.submit name="mySubmit" value="Send Mail"><button>dummy button</button></f:form.submit>
*
* Output::
*
* <input type="submit" name="mySubmit" value="Send Mail" />
*/
When using the <f.submit> as the PHPDoc suggestion I get
#1407060572: Fluid parse error in template BackendModule_action_index_a5e062765b6dffa1d95af238639101a7b55c1b56, line 10 at character 6. Error: The ViewHelper "<f:submit>" could not be resolved. Based on your spelling, the system would load the class "TYPO3Fluid\Fluid\ViewHelpers\SubmitViewHelper", however this class does not exist. (error code 1407060572).
Actions