[BUGFIX] Remove checked items from Upgrade Analysis 62/51562/4
authorPhilipp Gampe <philipp.gampe@typo3.org>
Tue, 7 Feb 2017 11:49:24 +0000 (12:49 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 7 Feb 2017 13:45:33 +0000 (14:45 +0100)
Ignored files require the full path to a file for resurrection,
not just the headline.

Resolves: #79659
Releaes: master
Change-Id: I7f4ea9a0b2080c71dcd7d708c1c0ffccb30f15be
Reviewed-on: https://review.typo3.org/51562
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/install/Classes/Controller/Action/Ajax/FilterManager.php
typo3/sysext/install/Resources/Private/Templates/Action/Ajax/FilterManager.html

index c78d886..2ad92ba 100644 (file)
@@ -37,7 +37,7 @@ class FilterManager extends AbstractAjaxAction
         $files = [];
         foreach ($ignoredFiles as $filePath) {
             $file = current($documentationFileService->getListEntry($filePath));
-            $files[] = $file['headline'];
+            $files[$file['headline']] = $file['filepath'];
         }
         $this->view->assign('files', $files);
         return $this->view->render();
index c473a6b..e2a7bb5 100644 (file)
@@ -1,14 +1,14 @@
 <div class="t3js-response">
-    <f:for each="{files}" as="file">
+    <f:for each="{files}" as="filepath" key="headline">
         <div class="panel-group" role="tablist" aria-multiselectable="false">
 
             <div class="panel panel-default">
                 <div class="panel-heading" role="tab">
-                    <input type="checkbox" class="t3js-upgradeanalysis-restore pull-left" data-filepath="{file}"
+                    <input type="checkbox" class="t3js-upgradeanalysis-restore pull-left" data-filepath="{filepath}"
                            title="restore this document"/>
                     <h3 class="panel-title">
                             <strong>
-                                {file}</strong>
+                                {headline}</strong>
                     </h3>
                 </div>
             </div>