[+BUGFIX] Fluid: Fixed fatal error and missing uid to __identifier conversion.
authorSebastian Kurfürst <sebastian@typo3.org>
Sun, 13 Sep 2009 18:59:22 +0000 (18:59 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Sun, 13 Sep 2009 18:59:22 +0000 (18:59 +0000)
typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Link/PageViewHelper.php

index 8e11049..e269e44 100644 (file)
@@ -162,7 +162,7 @@ class Tx_Fluid_ViewHelpers_FormViewHelper extends Tx_Fluid_ViewHelpers_Form_Abst
                if ($identifier === NULL) {
                        return chr(10) . '<!-- Object of type ' . get_class($object) . ' is without identity -->' . chr(10);
                }
-               return chr(10) . '<input type="hidden" name="'. $this->prefixFieldName($this->arguments['name']) . '[uid]" value="' . $identifier .'" />' . chr(10);
+               return chr(10) . '<input type="hidden" name="'. $this->prefixFieldName($this->arguments['name']) . '[__identity]" value="' . $identifier .'" />' . chr(10);
        }
 
        /**
index c0d6352..9588b5a 100644 (file)
@@ -86,7 +86,7 @@ class Tx_Fluid_ViewHelpers_Link_PageViewHelper extends Tx_Fluid_Core_ViewHelper_
                        ->setArguments($additionalParams)
                        ->setCreateAbsoluteUri($absolute)
                        ->setAddQueryString($addQueryString)
-                       ->setArgumentsToBeExcludedFromQueryString($argumentsToBeExcludedFromQueryString);
+                       ->setArgumentsToBeExcludedFromQueryString($argumentsToBeExcludedFromQueryString)
                        ->build();
 
                $this->tag->addAttribute('href', $uri);