Fixed bug #10979: class localRecordList should use $this->fixedL from class recordLis...
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 24 Apr 2009 19:53:01 +0000 (19:53 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 24 Apr 2009 19:53:01 +0000 (19:53 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5363 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.db_list_extra.inc

index f9323a3..f4755a8 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
 
 2009-04-24  Christian Kuhn  <lolli@schwarzbu.ch>
 
 
 2009-04-24  Christian Kuhn  <lolli@schwarzbu.ch>
 
+       * Fixed bug #10979: class localRecordList should use $this->fixedL from class recordList instead of own logic 
        * Fixed bug #10977: Copyright in TYPO3 comment still 2008 (Thanks to Johannes Feustel)
        * Added feature #9876: Provide $severity in t3lib_div::sysLog() Hook (Thanks to Michael Stucki)
        * Fixed bug #10823: IRRE long titles on groupdb fields are displayed wrong (<span title) (Thanks to Nabil Saleh)
        * Fixed bug #10977: Copyright in TYPO3 comment still 2008 (Thanks to Johannes Feustel)
        * Added feature #9876: Provide $severity in t3lib_div::sysLog() Hook (Thanks to Michael Stucki)
        * Fixed bug #10823: IRRE long titles on groupdb fields are displayed wrong (<span title) (Thanks to Nabil Saleh)
index 3cc532c..acfd8cf 100644 (file)
@@ -119,6 +119,10 @@ class localRecordList extends recordList {
        var $CBnames=array();                                   // Tracking names of elements (for clipboard use)
        var $duplicateStack=array();                    // Used to track which elements has duplicates and how many
 
        var $CBnames=array();                                   // Tracking names of elements (for clipboard use)
        var $duplicateStack=array();                    // Used to track which elements has duplicates and how many
 
+       public function __construct() {
+               parent::__construct();
+       }
+
        /**
         * Create the panel of buttons for submitting the form or otherwise perform operations.
         *
        /**
         * Create the panel of buttons for submitting the form or otherwise perform operations.
         *
@@ -1203,15 +1207,9 @@ class localRecordList extends recordList {
                                }
 
                                        // "Delete" link:
                                }
 
                                        // "Delete" link:
-                               if (
-                                       ($table=='pages' && ($localCalcPerms&4)) || ($table!='pages' && ($this->calcPerms&16))
-                                       )       {
+                               if (($table=='pages' && ($localCalcPerms&4)) || ($table!='pages' && ($this->calcPerms&16))) {
                                        $titleOrig = t3lib_BEfunc::getRecordTitle($table,$row,FALSE,TRUE);
                                        $titleOrig = t3lib_BEfunc::getRecordTitle($table,$row,FALSE,TRUE);
-                                       $titleLength = $GLOBALS['BE_USER']->uc['titleLen'];
-                                       if (!$titleLength || !t3lib_div::testInt($titleLength) || $titleLength < 0) {
-                                               $titleLength = 30;
-                                       }
-                                       $title = t3lib_div::slashJS(t3lib_div::fixed_lgd_cs($titleOrig, $titleLength),1);
+                                       $title = t3lib_div::slashJS(t3lib_div::fixed_lgd_cs($titleOrig, $this->fixedL), 1);
                                        $params = '&cmd['.$table.']['.$row['uid'].'][delete]=1';
                                        $cells['delete']='<a href="#" onclick="'.htmlspecialchars('if (confirm('.$LANG->JScharCode($LANG->getLL('deleteWarning').' "'. $title.'" '.t3lib_BEfunc::referenceCount($table,$row['uid'],' (There are %s reference(s) to this record!)')).')) {jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');} return false;').'">'.
                                                        '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/garbage.gif','width="11" height="12"').' title="'.$LANG->getLL('delete',1).'" alt="" />'.
                                        $params = '&cmd['.$table.']['.$row['uid'].'][delete]=1';
                                        $cells['delete']='<a href="#" onclick="'.htmlspecialchars('if (confirm('.$LANG->JScharCode($LANG->getLL('deleteWarning').' "'. $title.'" '.t3lib_BEfunc::referenceCount($table,$row['uid'],' (There are %s reference(s) to this record!)')).')) {jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');} return false;').'">'.
                                                        '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/garbage.gif','width="11" height="12"').' title="'.$LANG->getLL('delete',1).'" alt="" />'.