Bug #66046 ยป fluid_selectViewHelper.patch
typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php 2015-03-26 15:51:14.860155584 +0100 | ||
---|---|---|
$options = array();
|
||
$optionsArgument = $this->arguments['options'];
|
||
foreach ($optionsArgument as $key => $value) {
|
||
if (is_object($value) || is_array($value)) {
|
||
if (is_object($value)) {
|
||
if ($this->hasArgument('optionValueField')) {
|
||
$key = \TYPO3\CMS\Extbase\Reflection\ObjectAccess::getPropertyPath($value, $this->arguments['optionValueField']);
|
||
if (is_object($key)) {
|
||
... | ... | |
$value = $this->persistenceManager->getIdentifierByObject($value);
|
||
}
|
||
}
|
||
if (is_object($value) || is_array($value) || is_string($value)) {
|
||
$options[$key] = $value;
|
||
}
|
||
}
|
||
if ($this->arguments['sortByOptionLabel']) {
|
||
asort($options, SORT_LOCALE_STRING);
|
||
}
|