[BUGFIX] Missing initialization of DefaultBEMode in feedit
authorBjoern Pedersen <bjoern.pedersen@frm2.tum.de>
Mon, 7 Mar 2011 10:12:08 +0000 (11:12 +0100)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Wed, 9 Mar 2011 06:46:33 +0000 (07:46 +0100)
Formsonopage-mode raises error: Call to undefined method stdClass::getDynNestedStack.
Thus call initDefaultBEMode() during initialization.

Change-Id: If3ffc4b4fb3aff0dac72f3cbca405cb74d082783
Resolves: #M15553
Reviewed-on: http://review.typo3.org/1078
Reviewed-by: Björn Pedersen <bjoern.pedersen@frm2.tum.de>
Tested-by: Andreas Wolf <andreas.wolf@ikt-werk.de>
Reviewed-by: Andreas Wolf <andreas.wolf@ikt-werk.de>
typo3/sysext/feedit/view/class.tx_feedit_editpanel.php

index 0042e9c..1cfb27a 100644 (file)
@@ -353,6 +353,7 @@ class tx_feedit_editpanel {
         */
        protected function editContent($formTag, $formName, $theCmd, $newUID, array $dataArray, $table, $currentRecord, $blackLine) {
                $tceforms = t3lib_div::makeInstance('t3lib_TCEforms_FE');
+               $tceforms->initDefaultBEMode();
                $tceforms->prependFormFieldNames = 'TSFE_EDIT[data]';
                $tceforms->prependFormFieldNames_file = 'TSFE_EDIT_file';
                $tceforms->doSaveFieldName = 'TSFE_EDIT[doSave]';