[TASK] Reload pagetree after hide / unhide page in click menu 42/51042/3
authorGianluigi Martino <gmartino27@gmail.com>
Sat, 24 Dec 2016 09:18:12 +0000 (10:18 +0100)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Wed, 4 Jan 2017 11:33:12 +0000 (12:33 +0100)
Pagetree reload now after hide / unhide page in click menu with the
correct status

Resolves: #79090
Releases: master
Change-Id: I5312115c51096094914cf29d3832c0f1e36eaf0b
Reviewed-on: https://review.typo3.org/51042
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Gianluigi Martino <gmartino27@gmail.com>
Tested-by: Gianluigi Martino <gmartino27@gmail.com>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Tested-by: Mona Muzaffar
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php

index a988527..d665cfb 100644 (file)
@@ -925,7 +925,7 @@ class ClickMenu
                 '&data[' . $table . '][' . $uid . '][' . $flagField . ']=' . ($rec[$flagField] ? 0 : 1) . '&prErr=1&vC=' . $this->backendUser->veriCode()
             ) . ';};';
         if ($table === 'pages') {
-            $editOnClick .= 'top.nav.refresh.defer(500, top.nav);';
+            $editOnClick .= 'top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree.defer(500);';
         }
         return $this->linkItem(
             $title,