Fixed bug #12849: Element wizard & web_list.allowedNewTables doesn't respect hiding...
authorBenni Mack <benni.mack@typo3.org>
Fri, 26 Feb 2010 13:23:09 +0000 (13:23 +0000)
committerBenni Mack <benni.mack@typo3.org>
Fri, 26 Feb 2010 13:23:09 +0000 (13:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7045 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/db_new.php

index 831fff1..b69e0f7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2010-02-26  Benjamin Mack  <benni@typo3.org>
 
-       * Fixed bug #13611: Replace calls to t3lib_div:: within t3lib_div to self:: du to performance reasons (Thanks to Georg Ringer)
+       * Fixed bug #12849: Element wizard & web_list.allowedNewTables doesn't respect hiding pages (Thanks to Georg Ringer)
+       * Fixed bug #13611: Replace calls to t3lib_div:: within t3lib_div to self:: due to performance reasons (Thanks to Georg Ringer)
 
 2010-02-25  Stanislas Rolland  <typo3@sjbr.ca>
 
index 7d3fbc7..b86275d 100644 (file)
@@ -427,13 +427,16 @@ class SC_db_new {
                        // Half-line:
                $rowContent.= '<br />' . $halfLine;
 
-                       // Compile table row:
-               $startRows[]='
-                       <tr>
-                               <td nowrap="nowrap">' . $rowContent . '</td>
-                               <td>' . t3lib_BEfunc::cshItem($table, '', $this->doc->backPath, '', $doNotShowFullDescr) . '</td>
-                       </tr>
-               ';
+                       // Compile table row to show the icon for "new page (select position)"
+               $startRows = array();
+               if ($this->showNewRecLink('pages')) {
+                       $startRows[] = '
+                               <tr>
+                                       <td nowrap="nowrap">' . $rowContent . '</td>
+                                       <td>' . t3lib_BEfunc::cshItem($table, '', $this->doc->backPath, '', $doNotShowFullDescr) . '</td>
+                               </tr>
+                       ';
+               }
 
 
                        // New tables (but not pages) INSIDE this pages