Skip to content

Commit

Permalink
Fix null returned instead of object when getting task_details form me…
Browse files Browse the repository at this point in the history
…tadata (#74)
  • Loading branch information
NeuralClone authored Jul 10, 2024
1 parent 629e540 commit 66027c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Metadata/FormMetadataLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Sulu\Bundle\AdminBundle\Metadata\FormMetadata\FormMetadataLoaderInterface;
use Sulu\Bundle\AdminBundle\Metadata\FormMetadata\OptionMetadata;
use Sulu\Bundle\AdminBundle\Metadata\MetadataInterface;
use Sulu\Bundle\AdminBundle\Metadata\SchemaMetadata\SchemaMetadata;
use Sulu\Bundle\AutomationBundle\TaskHandler\AutomationTaskHandlerInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
use Task\TaskBundle\Handler\TaskHandlerFactory;
Expand Down Expand Up @@ -58,6 +59,9 @@ public function getMetadata(string $key, string $locale, array $metadataOptions)
$form = new FormMetadata();
$form->setKey(self::TASK_DETAILS_VIEW);

$schemaMetadata = new SchemaMetadata();
$form->setSchema($schemaMetadata);

// Single Select
$singleSelectHandler = new FieldMetadata('handlerClass');
$singleSelectHandler->setType('single_select');
Expand Down

0 comments on commit 66027c7

Please sign in to comment.