Allow to import configurations via backend module again (#85)

This broke with introduction of latest import date.
This could not be validated, but we do not need validation anyway and
therefore turn it off.

Relates: #9266
This commit is contained in:
Daniel Siepmann 2022-11-28 15:36:26 +01:00 committed by GitHub
parent 8acbe136d4
commit 0c9700cf42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,7 @@ declare(strict_types=1);
namespace WerkraumMedia\ThueCat\Controller\Backend; namespace WerkraumMedia\ThueCat\Controller\Backend;
use TYPO3\CMS\Core\Messaging\AbstractMessage; use TYPO3\CMS\Core\Messaging\AbstractMessage;
use TYPO3\CMS\Extbase\Annotation as Extbase;
use WerkraumMedia\ThueCat\Domain\Import\Importer; use WerkraumMedia\ThueCat\Domain\Import\Importer;
use WerkraumMedia\ThueCat\Domain\Model\Backend\ImportConfiguration; use WerkraumMedia\ThueCat\Domain\Model\Backend\ImportConfiguration;
use WerkraumMedia\ThueCat\Domain\Repository\Backend\ImportLogRepository; use WerkraumMedia\ThueCat\Domain\Repository\Backend\ImportLogRepository;
@ -72,6 +73,9 @@ class ImportController extends AbstractController
]); ]);
} }
/**
* @Extbase\IgnoreValidation("importConfiguration")
*/
public function importAction(ImportConfiguration $importConfiguration): void public function importAction(ImportConfiguration $importConfiguration): void
{ {
$importLog = $this->importer->importConfiguration($importConfiguration); $importLog = $this->importer->importConfiguration($importConfiguration);