From c211255f6f5735f31dda92b060d1d3889578d8ea Mon Sep 17 00:00:00 2001 From: Fritz Michael Gschwantner Date: Wed, 29 Nov 2023 11:12:00 +0000 Subject: [PATCH] Support Contao mono repo (#214) * Support Contao mono repo * remove version check altogether --- src/Form/Form.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Form/Form.php b/src/Form/Form.php index ec7f6bd..a49784e 100644 --- a/src/Form/Form.php +++ b/src/Form/Form.php @@ -9,7 +9,6 @@ use Codefog\HasteBundle\Form\Validator\ValidatorInterface; use Codefog\HasteBundle\Model\DcaRelationsModel; use Codefog\HasteBundle\Util\ArrayPosition; -use Composer\InstalledVersions; use Contao\ArrayUtil; use Contao\Controller; use Contao\DataContainer; @@ -926,7 +925,7 @@ public function fetch(string $fieldName): mixed $widget = $this->widgets[$fieldName]; // Support file uploads in Contao 5 - if (version_compare(InstalledVersions::getVersion('contao/core-bundle'), '5.0', '>=') && $widget instanceof UploadableWidgetInterface) { + if ($widget instanceof UploadableWidgetInterface) { return $widget->value; }