This commit is contained in:
Lizandro Guarnizo
2026-02-03 21:30:55 -05:00
parent 44423adb32
commit 1aae148396
89 changed files with 8581 additions and 7687 deletions
+16 -2
View File
@@ -27,8 +27,22 @@ try {
$approvedOnly = isset($_GET['approved_only']) && $_GET['approved_only'] == '1';
$limit = isset($_GET['limit']) ? intval($_GET['limit']) : null;
// Ajuste: some DBs may not have body_text column; omit it to avoid SQL errors
$sql = "SELECT id, name, template_name, language_code, category, status, created_at FROM message_templates";
// Incluir todos los campos necesarios para la UI
$sql = "SELECT
id,
name,
template_name,
language_code,
category,
status,
body_text,
header_text,
header_type,
footer_text,
components,
example_parameters,
created_at
FROM message_templates";
$params = [];
if ($approvedOnly) {