fix: firma profesional solo aparece en el campo donde se firmo, no en todos
This commit is contained in:
@@ -467,9 +467,10 @@ function esc2(mixed $v): string {
|
|||||||
if (!$cid) continue;
|
if (!$cid) continue;
|
||||||
$isPro = ($tipo === 'firma_profesional');
|
$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
|
$fSvg = $isPro
|
||||||
? ($firmaSharedProfesional ?? $datosCliente[$cid . '_svg'] ?? null)
|
? (!$_renderedFirmaProfesional ? ($firmaSharedProfesional ?? $datosCliente[$cid . '_svg'] ?? null) : ($datosCliente[$cid . '_svg'] ?? null))
|
||||||
: ($datosCliente[$cid . '_svg'] ?? $firmaSharedPaciente ?? null);
|
: ($datosCliente[$cid . '_svg'] ?? $firmaSharedPaciente ?? null);
|
||||||
$fFoto = $datosCliente[$cid . '_foto'] ?? null;
|
$fFoto = $datosCliente[$cid . '_foto'] ?? null;
|
||||||
$fIcon = $isPro ? 'fa-user-md' : 'fa-signature';
|
$fIcon = $isPro ? 'fa-user-md' : 'fa-signature';
|
||||||
|
|||||||
Reference in New Issue
Block a user