* Fixed error where deleted pages appear in the page tree when
authorSebastian Kurfürst <sebastian.kurfuerst@typo3.org>
Mon, 26 Dec 2005 20:44:14 +0000 (20:44 +0000)
committerSebastian Kurfürst <sebastian.kurfuerst@typo3.org>
Mon, 26 Dec 2005 20:44:14 +0000 (20:44 +0000)
preview is activated. t3lib_pageselect->where_hid_del had to be changed.
* changed length of page alias from 20 to 32 characters

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@934 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_page.php
typo3/sysext/cms/ext_tables.php
typo3/sysext/cms/ext_tables.sql

index af6986c..12900d1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-12-25  Sebastian Kurfuerst  <sebastian@garbage-group.de>
 
+       * Fixed error where deleted pages appear in the page tree when preview is activated. t3lib_pageselect->where_hid_del had to be changed.
+       * changed length of page alias from 20 to 32 characters
        * Fixed bug #2087, introduced by #1078
        * Marked t3lib_ajax as subject to change
 
index f82f82e..4da3f57 100755 (executable)
@@ -145,7 +145,7 @@ class t3lib_pageSelect {
                } else {
                                // For version previewing, make sure that enable-fields are not de-selecting hidden pages - we need versionOL() to unset them only if the overlay record instructs us to.
                        $this->versioningPreview_where_hid_del = $this->where_hid_del;  // Copy where_hid_del to other variable (used in relation to versionOL())
-                       $this->where_hid_del = '';      // Clear where_hid_del
+                       $this->where_hid_del = ' AND pages.deleted=0 '; // Clear where_hid_del
                }
        }
 
index b8988a6..86a8f2a 100755 (executable)
@@ -206,7 +206,7 @@ if (TYPO3_MODE=='BE')       {
                        'config' => Array (
                                'type' => 'input',
                                'size' => '10',
-                               'max' => '20',
+                               'max' => '32',
                                'eval' => 'nospace,alphanum_x,lower,unique',
                                'softref' => 'notify'
                        )
index 9bcc1bf..39ec25c 100755 (executable)
@@ -405,7 +405,7 @@ CREATE TABLE pages (
   content_from_pid int(10) unsigned DEFAULT '0' NOT NULL,
   mount_pid int(10) unsigned DEFAULT '0' NOT NULL,
   mount_pid_ol tinyint(4) DEFAULT '0' NOT NULL,
-  alias varchar(20) DEFAULT '' NOT NULL,
+  alias varchar(32) DEFAULT '' NOT NULL,
   l18n_cfg tinyint(4) DEFAULT '0' NOT NULL,
   fe_login_mode tinyint(4) DEFAULT '0' NOT NULL,
   KEY alias (alias)