diff --git a/ver_formulario_enviado.php b/ver_formulario_enviado.php index 9a65681..5db2c17 100644 --- a/ver_formulario_enviado.php +++ b/ver_formulario_enviado.php @@ -467,9 +467,10 @@ function esc2(mixed $v): string { if (!$cid) continue; $isPro = ($tipo === 'firma_profesional'); - // Cada campo busca su firma propia; solo si no existe usa el fallback global + // La firma profesional global solo se muestra en el PRIMER campo firma_profesional. + // Campos posteriores (ej. desistimiento) solo muestran su propia firma por campo. $fSvg = $isPro - ? ($firmaSharedProfesional ?? $datosCliente[$cid . '_svg'] ?? null) + ? (!$_renderedFirmaProfesional ? ($firmaSharedProfesional ?? $datosCliente[$cid . '_svg'] ?? null) : ($datosCliente[$cid . '_svg'] ?? null)) : ($datosCliente[$cid . '_svg'] ?? $firmaSharedPaciente ?? null); $fFoto = $datosCliente[$cid . '_foto'] ?? null; $fIcon = $isPro ? 'fa-user-md' : 'fa-signature';