From 86be0669afe7ab5c65c034af4e28c5c85a784c87 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 24 Jun 2026 08:54:17 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"fix(recepcion):=20reemplazar=20templa?= =?UTF-8?q?te=20literals=20anidados=20por=20concatenaci=C3=B3n=20compatibl?= =?UTF-8?q?e"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 0021af36a5d92556dbb599192d44ead3a7ac0501. --- modules/turnero/views/recepcion.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/modules/turnero/views/recepcion.php b/modules/turnero/views/recepcion.php index dfa13e8..a49fb70 100644 --- a/modules/turnero/views/recepcion.php +++ b/modules/turnero/views/recepcion.php @@ -907,16 +907,14 @@ async function buscarPaciente() { Crear nuevo`; return; } - 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(''); + 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(''); } catch (_) {} }