[BUGFIX] Show error message when hiding page from context menu 03/55903/2
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Mon, 26 Feb 2018 12:51:58 +0000 (13:51 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Mon, 26 Feb 2018 14:16:22 +0000 (15:16 +0100)
Renamed key in the response to match what is expected
in actions.js evaluateResponse method.

Releases: 8.7, 7.6
Resolves: #82282
Change-Id: I4528963aded3a8203ab144c8353fc0509aa8a1e7
Reviewed-on: https://review.typo3.org/55903
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeCommands.php

index a611d84..2ba4f98 100644 (file)
@@ -42,7 +42,7 @@ class ExtdirectTreeCommands
         } catch (\Exception $exception) {
             $returnValue = [
                 'success' => false,
-                'error' => $exception->getMessage()
+                'message' => $exception->getMessage()
             ];
         }
         return $returnValue;