[BUGFIX] StorageRepository::findByStorageType() uses wrong typeField 58/20858/3
authorPhilipp Gampe <philipp.gampe@typo3.org>
Fri, 17 May 2013 03:52:17 +0000 (05:52 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 6 Jul 2013 10:44:09 +0000 (12:44 +0200)
The table "sys_file_storage" has no field "type".
Use the field "driver" instead.

Resolves: #48127
Releases: 6.2, 6.1, 6.0
Change-Id: I64e66a8244ddae85faf68ec3d46b4b9f2f1934ff
Reviewed-on: https://review.typo3.org/20858
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Frans Saris
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Resource/StorageRepository.php

index e865d99..38eb5b7 100644 (file)
@@ -47,7 +47,7 @@ class StorageRepository extends AbstractRepository {
        /**
         * @var string
         */
-       protected $typeField = 'type';
+       protected $typeField = 'driver';
 
        /**
         * @var \TYPO3\CMS\Core\Log\Logger