From 6bac0ee823cfa7ae6654767a995cfea031359b26 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 30 Jun 2026 16:32:58 -0500 Subject: [PATCH] fix: dynamic list body fallback uses ?: to handle empty string WhatsApp rejects list messages with empty body.text. Using ?? missed empty string from config; ?: correctly falls back to default. Co-Authored-By: Claude Sonnet 4.6 --- services/NormalBot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/NormalBot.php b/services/NormalBot.php index fd614e6..74af543 100644 --- a/services/NormalBot.php +++ b/services/NormalBot.php @@ -251,7 +251,7 @@ class NormalBot $interactive = [ 'type' => 'list', 'header' => ['type' => 'text', 'text' => mb_substr($flow['header'] ?? 'Selecciona', 0, 60)], - 'body' => ['text' => mb_substr($flow['body'] ?? 'Elige una opción:', 0, 1024)], + 'body' => ['text' => mb_substr($flow['body'] ?: 'Elige una opción:', 0, 1024)], 'footer' => ['text' => mb_substr($company['display_name'] ?? '', 0, 60)], 'action' => [ 'button' => mb_substr($flow['button'] ?? 'Ver opciones', 0, 20),