[BUGFIX] Let the SelectViewHelper accept correct values 73/51173/2
authorStanislas Rolland <typo3@sjbr.ca>
Sat, 7 Jan 2017 03:51:41 +0000 (22:51 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Sat, 7 Jan 2017 03:53:06 +0000 (04:53 +0100)
Follow-up to Let the SelectViewHelper accept correct values

Change-Id: I9b878dfe9e11f9b71e7c3433f76273f697e767ff
Resolves: #79174
Reviewed-on: https://review.typo3.org/51173
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Classes/ViewHelpers/Form/SelectViewHelper.php

index 189ab05..da92fb8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Resolves #79192: Remove constant PATH_BE_staticinfotables_rel
        * Require TYPO3 CMS 7.6.0
+       * Follow-up to #79174: Let the SelectViewHelper accept correct values
 
 2017-01-05  Stanislas Rolland  <typo3(arobas)sjbr.ca>
 
index 8117e37..d54681d 100644 (file)
@@ -165,7 +165,7 @@ class SelectViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\SelectViewHelpe
                        throw new \Exception('Please configure the "staticInfoTable"-Argument for this ViewHelper.', 1378136534);
                }
                /** @var \SJBR\StaticInfoTables\Domain\Repository\AbstractEntityRepository $repository */
-               $repository = $this->arguments['staticInfoTable'] . 'Repository';
+               $repository = lcfirst($this->arguments['staticInfoTable']) . 'Repository';
                if (!array_key_exists($repository, get_object_vars($this))) {
                        throw new \Exception('Please configure the right table in the "staticInfoTable"-Argument for this ViewHelper.', 1378136533);
                }