From 620ae3a1b32bccb6073ed0190ca10f59617b9ec0 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 30 Jul 2026 20:55:40 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20dynamic=5Flist=20next=5Fnode=20busca=20e?= =?UTF-8?q?n=20menus=20si=20no=20est=C3=A1=20en=20flows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cuando el next_node de un collecting está en menus (no flows), handleCollectingInput retornaba null sin respuesta. Ahora intenta buildMenuResponse como fallback, lo que corrige el flujo de selección de grupo en mantenimiento. Co-Authored-By: Claude Sonnet 4.6 --- services/NormalBot.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/NormalBot.php b/services/NormalBot.php index cfbcd78..0468d4d 100644 --- a/services/NormalBot.php +++ b/services/NormalBot.php @@ -185,6 +185,9 @@ class NormalBot if (isset($flows[$nextNode])) { return self::handleFlow($flows[$nextNode], $context, $company, $ctxId, $menus); } + if (isset($menus[$nextNode])) { + return self::buildMenuResponse($menus[$nextNode], $context['from'], $company); + } } else { ConversationContext::updateNode($ctxId, null); }