mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-22 10:14:24 +00:00
Signature: allow for null index in signature zone
This commit is contained in:
parent
2b516629f6
commit
119668e415
@ -80,8 +80,10 @@ class SignatureRequestController
|
|||||||
return new JsonResponse(
|
return new JsonResponse(
|
||||||
[
|
[
|
||||||
'state' => $signature->getState(),
|
'state' => $signature->getState(),
|
||||||
'storedObject' => $this->normalizer->normalize($storedObject, 'json')
|
'storedObject' => $this->normalizer->normalize($storedObject, 'json'),
|
||||||
],
|
],
|
||||||
JsonResponse::HTTP_OK, []);
|
JsonResponse::HTTP_OK,
|
||||||
|
[]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ final readonly class RequestPdfSignMessage
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
public int $signatureId,
|
public int $signatureId,
|
||||||
public PDFSignatureZone $PDFSignatureZone,
|
public PDFSignatureZone $PDFSignatureZone,
|
||||||
public int $signatureZoneIndex,
|
public ?int $signatureZoneIndex,
|
||||||
public string $reason,
|
public string $reason,
|
||||||
public string $signerText,
|
public string $signerText,
|
||||||
public string $content,
|
public string $content,
|
||||||
|
@ -17,7 +17,7 @@ final readonly class PDFSignatureZone
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
#[Groups(['read'])]
|
#[Groups(['read'])]
|
||||||
public int $index,
|
public ?int $index,
|
||||||
#[Groups(['read'])]
|
#[Groups(['read'])]
|
||||||
public float $x,
|
public float $x,
|
||||||
#[Groups(['read'])]
|
#[Groups(['read'])]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user