From c0f99fe9bc1a1aaf391787b060e1ab172bbde6b6 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 24 Jun 2026 01:37:48 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20mostrar=20todos=20los=20lugares=20desti?= =?UTF-8?q?no=20en=20dropdown=20de=20recepci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El dropdown solo mostraba el primer lugar tipo muestras (LIMIT 1). Ahora carga todos los lugares activos tipo muestras, incluyendo Pediatría y Ginecología que ya estaban en la BD. Co-Authored-By: Claude Sonnet 4.6 --- modules/turnero/views/recepcion.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/modules/turnero/views/recepcion.php b/modules/turnero/views/recepcion.php index 2f50e20..7cde690 100644 --- a/modules/turnero/views/recepcion.php +++ b/modules/turnero/views/recepcion.php @@ -13,13 +13,13 @@ if (!isUserLoggedIn()) { try { $pdo = Database::getInstance()->getConnection(); - // Para destino solo nos interesa recepción y toma de muestras $lugarRecepcion = $pdo->query( "SELECT id, nombre FROM turnero_lugares WHERE tipo='recepcion' AND activo=1 ORDER BY sort_order LIMIT 1" )->fetch(PDO::FETCH_ASSOC); - $lugarMuestras = $pdo->query( - "SELECT id, nombre FROM turnero_lugares WHERE tipo='muestras' AND activo=1 ORDER BY sort_order LIMIT 1" - )->fetch(PDO::FETCH_ASSOC); + $lugaresDestino = $pdo->query( + "SELECT id, nombre FROM turnero_lugares WHERE tipo='muestras' AND activo=1 ORDER BY sort_order" + )->fetchAll(PDO::FETCH_ASSOC); + $lugarMuestras = $lugaresDestino[0] ?? null; // compatibilidad $examenes = $pdo->query( "SELECT id, codigo, nombre, categoria FROM exam_tipos WHERE activo = 1 ORDER BY categoria, nombre" @@ -439,12 +439,9 @@ document.addEventListener('DOMContentLoaded', function() {
Lugar destino