Signature: add and process returnPath in the signature app

This commit is contained in:
nobohan
2024-09-05 14:11:57 +02:00
committed by Julien Fastré
parent 4933238f3f
commit d08212df46
2 changed files with 21 additions and 8 deletions

View File

@@ -396,7 +396,10 @@ class WorkflowController extends AbstractController
}
if ($signature->getSigner() instanceof User) {
return $this->redirectToRoute('chill_main_workflow_signature_add', ['id' => $signature_id]);
return $this->redirectToRoute('chill_main_workflow_signature_add', [
'id' => $signature_id,
'returnPath' => $request->query->get('returnPath', null),
]);
}
$metadataForm = $this->createForm(WorkflowSignatureMetadataType::class);
@@ -420,7 +423,10 @@ class WorkflowController extends AbstractController
$this->entityManager->persist($signature);
$this->entityManager->flush();
return $this->redirectToRoute('chill_main_workflow_signature_add', ['id' => $signature_id]);
return $this->redirectToRoute('chill_main_workflow_signature_add', [
'id' => $signature_id,
'returnPath' => $request->query->get('returnPath', null),
]);
}
return $this->render(