From 0021af36a5d92556dbb599192d44ead3a7ac0501 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 24 Jun 2026 08:50:47 -0500 Subject: [PATCH] =?UTF-8?q?fix(recepcion):=20reemplazar=20template=20liter?= =?UTF-8?q?als=20anidados=20por=20concatenaci=C3=B3n=20compatible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- modules/turnero/views/recepcion.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/modules/turnero/views/recepcion.php b/modules/turnero/views/recepcion.php index a49fb70..dfa13e8 100644 --- a/modules/turnero/views/recepcion.php +++ b/modules/turnero/views/recepcion.php @@ -907,14 +907,16 @@ async function buscarPaciente() { Crear nuevo`; return; } - lista.innerHTML = datos.map(p => ` -
-
${escHtml(p.nombre_completo||'Sin nombre')}
-
- ${p.tipo_documento||p.numero_documento ? ` ${escHtml((p.tipo_documento||'')+(p.numero_documento?' '+p.numero_documento:''))}` : ''} - ${p.telefono ? ` ${escHtml(p.telefono)}` : ''} -
-
`).join(''); + lista.innerHTML = datos.map(function(p) { + var doc = (p.tipo_documento||'') + (p.numero_documento ? ' ' + p.numero_documento : ''); + var tel = p.telefono || ''; + var docHtml = doc.trim() ? ' ' + escHtml(doc) + '' : ''; + var telHtml = tel ? ' ' + escHtml(tel) + '' : ''; + return '
' + + '
' + escHtml(p.nombre_completo||'Sin nombre') + '
' + + '
' + docHtml + telHtml + '
' + + '
'; + }).join(''); } catch (_) {} }