From 59addca9603c211047a0e65d5033372c936dbe0b Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 24 Jun 2026 01:32:12 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20error=20de=20conexi=C3=B3n=20falso=20al?= =?UTF-8?q?=20firmar=20consentimiento=20turnero?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Al mover el canvas al esquema se eliminó la variable widget del JS, pero el success handler seguía haciendo widget.outerHTML → ReferenceError → caía al catch y mostraba error de conexión aunque la firma se guardó. Fix: envolver el canvas en div#turneroFirmaWidget y restaurar widget en el JS para que el reemplazo al éxito funcione correctamente. Co-Authored-By: Claude Sonnet 4.6 --- ver_formulario_enviado.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ver_formulario_enviado.php b/ver_formulario_enviado.php index bc49d10..27a9f25 100644 --- a/ver_formulario_enviado.php +++ b/ver_formulario_enviado.php @@ -510,7 +510,7 @@ function esc2(mixed $v): string { Foto - <?= $fLabel ?> - +

He leído el documento. Dibuje su firma:

+ @@ -890,6 +891,7 @@ function esc2(mixed $v): string { /* ── Firma de consentimiento turnero ────────────────────────────────── */ (function () { var canvas = document.getElementById('turneroCv'); + var widget = document.getElementById('turneroFirmaWidget'); if (!canvas) return; var ctx = canvas.getContext('2d'); var btnLimp = document.getElementById('turneroLimpiar');