Actions
Bug #81805
closedSaveToDatabase throws exception on single table
Start date:
2017-07-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint
Description
While working with SaveToDatabaseFinisher I found out, the executeInternal() funtion doesn't work correctly.
Line 199 tests $this->options for existing an array.
After debugging I found the problem:
$this->options is always an array, the condition itself has to check for configuration of single or multiple database operations.
Therefore it is necessary to check for existence of the key 'table' for deciding if single or multiple configuration.
if (!is_array($this->options)) {
must be set to
if (isset($this->options['table'])) {
to check for correct handling. I think, this could made better, but this workaround works for me, because 'table' must been set all time.
Actions