Skip to content

Commit

Permalink
[BUGFIX] Avoid PHP warnings within DatePickerViewHelper
Browse files Browse the repository at this point in the history
Avoid PHP warnings within ext:form DatePickerViewHelper if the property
properties.additionalAttributes.placeholder is not defined within
the form definition.

Releases: master, 8.7
Resolves: #84065
Change-Id: I49e0bb3a9548f0be402e1a4794c60c1b42744fac
Reviewed-on: https://review.typo3.org/55922
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Wolfgang Klinger <wolfgang@wazum.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
waldhacker1 authored and lolli42 committed Feb 28, 2018
1 parent e9bddaf commit df93770
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -81,7 +81,7 @@ public function render()
$enableDatePicker = $this->arguments['enableDatePicker'];
$dateFormat = $this->arguments['dateFormat'];
$previewMode = (bool)$this->arguments['previewMode'];
$placeholder = $this->arguments['placeholder'] ?? $this->arguments['additionalAttributes']['placeholder'];
$placeholder = $this->arguments['additionalAttributes']['placeholder'] ?? $this->arguments['placeholder'];

$name = $this->getName();
$this->registerFieldNameForFormTokenGeneration($name);
Expand Down

0 comments on commit df93770

Please sign in to comment.