Skip to content

Commit

Permalink
Support Contao mono repo (#214)
Browse files Browse the repository at this point in the history
* Support Contao mono repo

* remove version check altogether
  • Loading branch information
fritzmg authored Nov 29, 2023
1 parent 25b2f0e commit c211255
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Form/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit c211255

Please sign in to comment.