This commit is contained in:
Julien Fastré 2024-09-06 14:40:25 +02:00
parent 4d73f9b81a
commit bf056046ab
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -78,7 +78,7 @@ class WorkflowOnHoldController
throw new AccessDeniedHttpException('You are not allowed to remove workflow on hold');
}
$hold = $entityWorkflowStep->getHoldsOnStep()->findFirst(fn(int $index, EntityWorkflowStepHold $entityWorkflowStepHold) => $user === $entityWorkflowStepHold->getByUser());
$hold = $entityWorkflowStep->getHoldsOnStep()->findFirst(fn (int $index, EntityWorkflowStepHold $entityWorkflowStepHold) => $user === $entityWorkflowStepHold->getByUser());
if (null === $hold) {
// this should not happens...