[BUGFIX] Revert and adjust changes in InstallFromTer.json 18/53318/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 23 Jun 2017 19:11:50 +0000 (21:11 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 26 Jun 2017 20:20:44 +0000 (22:20 +0200)
The original patch removed variables that were assumed to be unused. The
assumption was wrong, as the variables are used in JavaScript context and
are thus now undefined.

This patch revert the changes done back then, but uses the f:format.json
view helper.

Resolves: #81692
Related: #81301
Releases: master
Change-Id: I21e4d737f6205c6c7d7f29dd08358c39806002e3
Reviewed-on: https://review.typo3.org/53318
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/extensionmanager/Resources/Private/Templates/Download/InstallFromTer.json

index 5767379..fa0cf53 100644 (file)
@@ -1 +1,9 @@
-{result -> f:format.json() -> f:format.raw()}
\ No newline at end of file
+<f:format.raw><f:format.json value="{
+result: result,
+extension: extension.extensionKey,
+installationTypeLanguageKey: installationTypeLanguageKey,
+errorCount: '{f:count(subject: unresolvedDependencies)}',
+errorTitle: '{f:translate(key: \'downloadExtension.dependencies.errorTitle\')}',
+errorMessage: '{f:render(partial: \'List/UnresolvedDependencies\', arguments: \'{_all}\')}',
+skipDependencyUri: '{f:uri.action(action: \'installExtensionWithoutSystemDependencyCheck\', format: \'json\', arguments: \'{extension: extension}\')}'
+}" /></f:format.raw>
\ No newline at end of file