[BUGFIX] Use correct array structure for EM error messages 67/31267/2
authorSascha Egerer <sascha.egerer@dkd.de>
Mon, 30 Jun 2014 09:27:51 +0000 (11:27 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 1 Jul 2014 17:19:25 +0000 (19:19 +0200)
commitf3883006f086ec3fd0b8ddfc6c6321d4e369352e
tree0589f9ffd3b7588f95e7c36b0449dc460c48446d
parentecbe0ee064b02dea92124defe7857a1b13a38263
[BUGFIX] Use correct array structure for EM error messages

The extension manager stores errors (like exceptions that
are thrown while installing an extension) in an array and
passes them to a fluid template.

The array has to be in a defined structure like
$errorMessages[extension name][i] = array(
»       error code,
»       error message
)

Currently, if an extension is installed from ter and an error occurs
while downloading the extension, the code and text are stored directly
under the extension name and therefore the array is not correctly parsed
by the fluid template.

Resolves: #59991
Releases: 6.3, 6.2
Change-Id: Id330f0af2a99ab99cb8b736332cb8506c857716c
Reviewed-on: https://review.typo3.org/31267
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/extensionmanager/Classes/Controller/DownloadController.php
typo3/sysext/extensionmanager/Tests/Unit/Controller/DownloadControllerTest.php [new file with mode: 0644]