Bug #47693
Updated by Riccardo De Contardi over 9 years ago
With the following typoscript it should be possible to add an editpanel to the website
lib.myLib = EDITPANEL
lib.myLib {
label = insert new content element
allow = new
newRecordFromTable = tt_content
}
But I get an error:
PHP Catchable Fatal Error: Argument 4 passed to t3lib_frontendedit::displayEditPanel() must be an array, null given, called in /my/path/to/typo3/typo3_src-4.5.25/typo3/sysext/cms/tslib/class.tslib_content.php on line 7860 and defined in /my/path/to/typo3/typo3_src-4.5.25/t3lib/class.t3lib_frontendedit.php line 82
This will fix the problem:
Patch typo3/sysext/cms/tslib/class.tslib_content.php ~ line 7860:
- if (!count($dataArr)) {
+ if (!count($dataArr) && $this->data) {
$dataArr = $this->data;
}