[FEATURE] Edit on click in list module by default
authorStefan Galinski <stefan.galinski@gmail.com>
Thu, 28 Jun 2012 11:17:27 +0000 (13:17 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Thu, 28 Jun 2012 17:54:58 +0000 (19:54 +0200)
Change-Id: I8474d3400245e47c817ca1a2c63116a410d03747
Resolves: #38453
Releases: 6.0
Reviewed-on: http://review.typo3.org/12419
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
typo3/sysext/recordlist/mod1/index.php

index 42970ae..7073ab5 100644 (file)
@@ -219,7 +219,6 @@ class SC_db_list {
                $dblist->hideTables = $this->modTSconfig['properties']['hideTables'];
                $dblist->hideTranslations = $this->modTSconfig['properties']['hideTranslations'];
                $dblist->tableTSconfigOverTCA = $this->modTSconfig['properties']['table.'];
-               $dblist->clickTitleMode = $this->modTSconfig['properties']['clickTitleMode'];
                $dblist->alternateBgColors=$this->modTSconfig['properties']['alternateBgColors']?1:0;
                $dblist->allowedNewTables = t3lib_div::trimExplode(',', $this->modTSconfig['properties']['allowedNewTables'], 1);
                $dblist->deniedNewTables = t3lib_div::trimExplode(',', $this->modTSconfig['properties']['deniedNewTables'], 1);
@@ -229,6 +228,9 @@ class SC_db_list {
                $dblist->MOD_MENU = array('bigControlPanel' => '', 'clipBoard' => '', 'localization' => '');
                $dblist->modTSconfig = $this->modTSconfig;
 
+               $clickTitleMode = trim($this->modTSconfig['properties']['clickTitleMode']);
+               $dblist->clickTitleMode = ($clickTitleMode === '' ? 'edit' : $clickTitleMode);
+
                        // Clipboard is initialized:
                        // Start clipboard
                $dblist->clipObj = t3lib_div::makeInstance('t3lib_clipboard');