[BUGFIX] Use correct array structure for EM error messages 40/31240/5
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:18:35 +0000 (19:18 +0200)
commit5d541538e9f82abbe5ccf232c9fcb2569af511c0
tree0659989eb17688e74569fa5bd6ba08987d245c65
parent1ae7b94b86a64ab6a86d7417a5dfb1f19777ee75
[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/31240
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
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]