Skip to content

Commit

Permalink
Merge pull request #2 from dfeyer/Feature/AllowNULLForOverrideConfigu…
Browse files Browse the repository at this point in the history
…ration

[TASK] Allow NULL value for overrideConfiguration

Releases: master
  • Loading branch information
dfeyer committed Sep 8, 2015
2 parents f2c6575 + 923934f commit bde4fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/TYPO3/Form/ViewHelpers/RenderViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class RenderViewHelper extends AbstractViewHelper {
* @param array $overrideConfiguration factory specific configuration
* @return string the rendered form
*/
public function render($persistenceIdentifier = NULL, $factoryClass = 'TYPO3\Form\Factory\ArrayFormFactory', $presetName = 'default', array $overrideConfiguration = array()) {
public function render($persistenceIdentifier = NULL, $factoryClass = 'TYPO3\Form\Factory\ArrayFormFactory', $presetName = 'default', array $overrideConfiguration = NULL) {
if (isset($persistenceIdentifier)) {
$overrideConfiguration = Arrays::arrayMergeRecursiveOverrule($this->formPersistenceManager->load($persistenceIdentifier), $overrideConfiguration);
$overrideConfiguration = Arrays::arrayMergeRecursiveOverrule($this->formPersistenceManager->load($persistenceIdentifier), $overrideConfiguration ?: array());
}

$factory = $this->objectManager->get($factoryClass);
Expand Down

0 comments on commit bde4fe7

Please sign in to comment.