Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix null returned instead of object when getting task_details form metadata #74

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading