Fixed bug #12947: saveDocNew saves on top instead of after (Thanks to Steffen Gebert)
authorSteffen Kamper <info@sk-typo3.de>
Thu, 14 Jan 2010 08:29:43 +0000 (08:29 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Thu, 14 Jan 2010 08:29:43 +0000 (08:29 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6771 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/alt_doc.php
typo3/sysext/cms/ext_localconf.php

index dcc5304..c555ab0 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-14  Steffen Kamper  <info@sk-typo3.de>
+
+       * Fixed bug #12947: saveDocNew saves on top instead of after (Thanks to Steffen Gebert)
+
 2010-01-13  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #13200: Text change: Links for additional software in install tool wrong / non-working (Thanks to Susanne Moog)
index 2805f22..4541eae 100644 (file)
@@ -1371,9 +1371,6 @@ class SC_alt_doc {
        function getNewIconMode($table, $key = 'saveDocNew') {
                $TSconfig = $GLOBALS['BE_USER']->getTSConfig('options.'.$key);
                $output = trim(isset($TSconfig['properties'][$table]) ? $TSconfig['properties'][$table] : $TSconfig['value']);
-               if (($key == 'saveDocNew' || $key == 'saveDocView') && $TSconfig['value'] != '0') {
-                       $output = !(isset($TSconfig['properties'][$table]) && $TSconfig['properties'][$table] == '0');
-               }
                return $output;
        }
 
index 0b9d02c..54e7cba 100755 (executable)
@@ -3,6 +3,8 @@
 if (!defined ('TYPO3_MODE'))   die ('Access denied.');
 
 t3lib_extMgm::addUserTSConfig('
+       options.saveDocView = 1
+       options.saveDocNew = 1
        options.saveDocNew.pages = 0
        options.saveDocNew.pages_language_overlay = 0
 ');