up
This commit is contained in:
@@ -27,7 +27,8 @@ try {
|
||||
$approvedOnly = isset($_GET['approved_only']) && $_GET['approved_only'] == '1';
|
||||
$limit = isset($_GET['limit']) ? intval($_GET['limit']) : null;
|
||||
|
||||
$sql = "SELECT id, name, template_name, language_code, category, status, body_text, created_at FROM message_templates";
|
||||
// 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";
|
||||
$params = [];
|
||||
|
||||
if ($approvedOnly) {
|
||||
|
||||
Reference in New Issue
Block a user