up
This commit is contained in:
+16
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user