Fixed bug #8272: Listview - warning icon goes to new line in iconblock (thanks to...
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 29 Apr 2008 07:26:36 +0000 (07:26 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 29 Apr 2008 07:26:36 +0000 (07:26 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3638 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.db_list_extra.inc

index 2f303ee..741da4d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-29  Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug #8272: Listview - warning icon goes to new line in iconblock (thanks to Steffen Kamper)
+
 2008-04-28  Benjamin Mack  <benni@typo3.org>
 
        * Fixed bug #8265: no links in htmlmails (thanks to Ralf Hettinger)
index 90cc779..48f384e 100755 (executable)
@@ -616,7 +616,13 @@ class localRecordList extends recordList {
                        foreach($this->fieldArray as $fCol)     {
                                if ($fCol==$titleCol)   {
                                        $recTitle = t3lib_BEfunc::getRecordTitle($table,$row,FALSE,TRUE);
-                                       $theData[$fCol] = $this->linkWrapItems($table,$row['uid'],$recTitle,$row);
+                                               // If the record is edit-locked by another user, we will show a little warning sign:
+                                       if (($lockInfo = t3lib_BEfunc::isRecordLocked($table, $row['uid']))) {
+                                               $warning = '<a href="#" onclick="' . htmlspecialchars('alert(' . $GLOBALS['LANG']->JScharCode($lockInfo['msg']) . '); return false;') . '">' .
+                                                       '<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/recordlock_warning3.gif', 'width="17" height="12"') . ' title="' . htmlspecialchars($lockInfo['msg']) . '" alt="" />' .
+                                                       '</a>';
+                                       }
+                                       $theData[$fCol] = $warning . $this->linkWrapItems($table, $row['uid'], $recTitle, $row);
                                } elseif ($fCol == 'pid') {
                                        $theData[$fCol]=$row[$fCol];
                                } elseif ($fCol == '_PATH_') {
@@ -1064,13 +1070,7 @@ class localRecordList extends recordList {
                        }
                }
 
-                       // If the record is edit-locked by another user, we will show a little warning sign:
-               if ($lockInfo=t3lib_BEfunc::isRecordLocked($table,$row['uid'])) {
-                       $cells['locked'] = '<a href="#" onclick="'.htmlspecialchars('alert('.$LANG->JScharCode($lockInfo['msg']).');return false;').'">'.
-                                       '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/recordlock_warning3.gif','width="17" height="12"').' title="'.htmlspecialchars($lockInfo['msg']).'" alt="" />'.
-                                       '</a>';
-               }
-
+                       
                /**
                 * @hook                        recStatInfoHooks: Allows to insert HTML before record icons on various places
                 * @date                        2007-09-22