Skip to content

Commit bf1dbf6

Browse files
committed
Fixed handling of processes data
1 parent aa6ceb2 commit bf1dbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/Admin/ProcessOverviewCrudController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function configureFields(string $pageName): iterable
106106
->setFormTypeOptions([
107107
// @todo Add search for process
108108
'choice_loader' => new CallbackChoiceLoader(function () use ($dataSource): array {
109-
$processes = $this->dataSourceHelper->getProcesses($dataSource);
109+
$processes = $this->dataSourceHelper->getProcesses($dataSource)['items'] ?? [];
110110
$options = array_combine(
111111
array_column($processes, 'name'),
112112
array_column($processes, 'id'),

0 commit comments

Comments
 (0)