Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit a78658d

Browse files
Update ProcessExecutionCrudController.php
Avoid fatal error if no permission to display row
1 parent e04df3c commit a78658d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/Crud/ProcessExecutionCrudController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function configureFields(string $pageName): array
7575
'target',
7676
'startDate',
7777
'endDate',
78-
IntegerField::new('status')->formatValue(static function (int $value) {
78+
IntegerField::new('status')->formatValue(static function (?int $value) {
7979
return match ($value) {
8080
ProcessExecution::STATUS_FAIL => '<button class="btn btn-danger btn-lm">failed</button>',
8181
ProcessExecution::STATUS_START => '<button class="btn btn-warning btn-lm">started</button>',

0 commit comments

Comments
 (0)