fluid-submitviewhelper.diff.txt
| 1 |
Index: Classes/ViewHelpers/Form/SubmitViewHelper.php |
|---|---|
| 2 |
=================================================================== |
| 3 |
--- Classes/ViewHelpers/Form/SubmitViewHelper.php (Revision 1200) |
| 4 |
+++ Classes/ViewHelpers/Form/SubmitViewHelper.php (Arbeitskopie) |
| 5 |
@@ -73,14 +73,10 @@ |
| 6 |
* @author Bastian Waidelich <bastian@typo3.org> |
| 7 |
* @api |
| 8 |
*/ |
| 9 |
- public function render($name = '', $value = '') {
|
| 10 |
+ public function render() {
|
| 11 |
$this->tag->addAttribute('type', 'submit');
|
| 12 |
- if ($name !== '') {
|
| 13 |
- $this->tag->addAttribute('name', $name);
|
| 14 |
- } |
| 15 |
- if ($value !== '') {
|
| 16 |
- $this->tag->addAttribute('value', $value);
|
| 17 |
- } |
| 18 |
+ $this->tag->addAttribute('name', $this->getName());
|
| 19 |
+ $this->tag->addAttribute('value', $this->getValue());
|
| 20 |
|
| 21 |
return $this->tag->render(); |
| 22 |
} |