Signature: allow for null index in signature zone

This commit is contained in:
nobohan 2024-09-12 17:02:45 +02:00
parent 2b516629f6
commit 119668e415
3 changed files with 6 additions and 4 deletions

View File

@ -80,8 +80,10 @@ class SignatureRequestController
return new JsonResponse(
[
'state' => $signature->getState(),
'storedObject' => $this->normalizer->normalize($storedObject, 'json')
'storedObject' => $this->normalizer->normalize($storedObject, 'json'),
],
JsonResponse::HTTP_OK, []);
JsonResponse::HTTP_OK,
[]
);
}
}

View File

@ -21,7 +21,7 @@ final readonly class RequestPdfSignMessage
public function __construct(
public int $signatureId,
public PDFSignatureZone $PDFSignatureZone,
public int $signatureZoneIndex,
public ?int $signatureZoneIndex,
public string $reason,
public string $signerText,
public string $content,

View File

@ -17,7 +17,7 @@ final readonly class PDFSignatureZone
{
public function __construct(
#[Groups(['read'])]
public int $index,
public ?int $index,
#[Groups(['read'])]
public float $x,
#[Groups(['read'])]