#66046ViewHelper SelectView does not
Description
*Problem*
TYPO3 6.2.11 together with powermail 2.2.0 produced following error with a simple select field in a form.
No identifying value for object of class “” found.
*Analysis*
As far as I understood the code of SelectViewHelper from fluid the $value should be added to $options if it is an object or an array.
If it is an object it has to be preprocessed. Actually above exception is thrown if it is an array instead of adding it to $options.
Suggestion
protected function getOptions() {
[ ... ]
$optionsArgument = $this->arguments['options'];
foreach ($optionsArgument as $key => $value) {
- if (is_object($value)) || is_array($value)) {
+ if (is_object($value)) {
if ($this->hasArgument('optionValueField')) {
[ ... ]
}
[ ... ]
- }
- $options[$key] = $value;
+ if (is_object($value)) || is_array($value)) {
+ $options[$key] = $value;
+ }Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.