Fixed bug #16961: When the title length is changed in the user setup module the paget...
authorErnesto Baschny <ernst@cron-it.de>
Tue, 11 Jan 2011 19:06:05 +0000 (19:06 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Tue, 11 Jan 2011 19:06:05 +0000 (19:06 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10027 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/setup/mod/index.php

index 2098b19..1f2cdcb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
 
        * Fixed bug #16878: Make t3lib_utility_Client::getBrowserInfo() aware of more operating systems (Thanks to Andreas Lappe)
        * Fixed bug #16630: migrateWorkspaces in Install-Tool does not work, if extbase is not intalled
+       * Fixed bug #16961: When the title length is changed in the user setup module the pagetree needs to be updated (Thanks to Stefan Galinski)
 
 2011-01-11  Jeff Segars  <jeff@webempoweredchurch.org>
 
index bc2c577..fc68246 100755 (executable)
@@ -106,6 +106,7 @@ class SC_mod_user_setup_index {
         */
        var $OLD_BE_USER;
        var $languageUpdate;
+       protected $pagetreeNeedsRefresh = FALSE;
 
        protected $isAdmin;
        protected $dividers2tabs;
@@ -161,6 +162,11 @@ class SC_mod_user_setup_index {
                                $this->languageUpdate = true;
                        }
 
+                               // reload pagetree if the title length is changed
+                       if (isset($d['titleLen']) && ($d['titleLen'] !== $BE_USER->uc['titleLen'])) {
+                               $this->pagetreeNeedsRefresh = TRUE;
+                       }
+
                        if ($d['setValuesToDefault']) {
                                        // If every value should be default
                                $BE_USER->resetUC();
@@ -377,6 +383,10 @@ class SC_mod_user_setup_index {
                        ';
                }
 
+               if ($this->pagetreeNeedsRefresh) {
+                       t3lib_BEfunc::setUpdateSignal('updatePageTree');
+               }
+
                        // Start page:
                $this->doc->loadJavascriptLib('md5.js');