[BUGFIX] Extensionmanager: Dependency errors are not reset 83/31383/3
authorNicole Cordes <typo3@cordes.co>
Fri, 4 Jul 2014 22:34:19 +0000 (00:34 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 6 Jul 2014 11:54:24 +0000 (13:54 +0200)
Due to changes in https://review.typo3.org/#/c/29845/ dependency errors
are collected and if one error occurred it is returned for every check
regardless of the key. This patch adds a reset for the error array on
every new dependency check.

Resolves: #60106
Releases: 6.3, 6.2
Change-Id: Id734ba1fe8981ffd270d79d4971ac9de9b72b4b4
Reviewed-on: https://review.typo3.org/31383
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extensionmanager/Classes/Utility/DependencyUtility.php

index 9ca5466..2f62c50 100644 (file)
@@ -109,6 +109,7 @@ class DependencyUtility implements \TYPO3\CMS\Core\SingletonInterface {
         * @return void
         */
        public function checkDependencies(Extension $extension) {
         * @return void
         */
        public function checkDependencies(Extension $extension) {
+               $this->dependencyErrors = array();
                $dependencies = $extension->getDependencies();
                foreach ($dependencies as $dependency) {
                        /** @var Dependency $dependency */
                $dependencies = $extension->getDependencies();
                foreach ($dependencies as $dependency) {
                        /** @var Dependency $dependency */