Implemented versioning API, phase 1 (tcemain). See changelog
[Packages/TYPO3.CMS.git] / typo3 / alt_doc.php
index e9148f9..9543079 100755 (executable)
@@ -414,7 +414,7 @@ class SC_alt_doc {
                                return false;
                        }
                '.(isset($HTTP_POST_VARS['_savedokview_x']) && $this->popViewId ? t3lib_BEfunc::viewOnClick($this->popViewId,'',t3lib_BEfunc::BEgetRootLine($this->popViewId),'',$this->viewUrl) : '')
-               );
+               ).$this->doc->getDynTabMenuJScode();
 
                        // Setting up the context sensitive menu:
                $CMparts = $this->doc->getContextMenuCode();
@@ -446,6 +446,7 @@ class SC_alt_doc {
                        $this->tceforms->palettesCollapsed = !$this->MOD_SETTINGS['showPalettes'];
                        $this->tceforms->disableRTE = $this->MOD_SETTINGS['disableRTE'];
                        $this->tceforms->enableClickMenu = TRUE;
+                       $this->tceforms->enableTabMenu = TRUE;
 
                                // Clipboard is initialized:
                        $this->tceforms->clipObj = t3lib_div::makeInstance('t3lib_clipboard');          // Start clipboard
@@ -588,6 +589,7 @@ class SC_alt_doc {
                                                                $this->dontStoreDocumentRef=1;          // Don't save this document title in the document selector if the document is new.
                                                        } else {        // Edit:
                                                                $calcPRec = t3lib_BEfunc::getRecord($table,$theUid);
+                                                               t3lib_BEfunc::fixVersioningPid($table,$calcPRec);
                                                                if (is_array($calcPRec))        {
                                                                        if ($table=='pages')    {       // If pages:
                                                                                $CALC_PERMS = $BE_USER->calcPerms($calcPRec);
@@ -648,6 +650,9 @@ class SC_alt_doc {
                                                                                $this->tceforms->hiddenFieldListArr = array_keys($this->overrideVals[$table]);
                                                                        }
 
+                                                                               // Register default language labels, if any:
+                                                                       $this->tceforms->registerDefaultLanguageData($table,$rec);
+
                                                                                // Create form for the record (either specific list of fields or the whole record):
                                                                        $panel = '';
                                                                        if ($this->columnsOnly) {