From 21566d4bb59d2a02716447213c2282986fd64b69 Mon Sep 17 00:00:00 2001 From: Saksham Gupta Date: Tue, 20 Jul 2021 21:24:18 +0200 Subject: [PATCH] Use the queries we asked the user confirmation for Copied from #16750 by myself (William) Signed-off-by: Saksham Gupta --- templates/table/operations/index.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/table/operations/index.twig b/templates/table/operations/index.twig index 6b206b00b2..8944b63ae3 100644 --- a/templates/table/operations/index.twig +++ b/templates/table/operations/index.twig @@ -384,7 +384,7 @@
  • {{ link_or_button( url('/sql', url_params|merge({ - 'sql_query': 'TRUNCATE TABLE ' ~ backquote(table), + 'sql_query': 'TRUNCATE TABLE ' ~ backquote(db) ~ '.' ~ backquote(table), 'goto': url('/table/structure'), 'reload': true, 'message_to_show': 'Table %s has been emptied.'|trans|format(table)|e @@ -401,7 +401,7 @@
  • {{ link_or_button( url('/sql', url_params|merge({ - 'sql_query': 'DROP TABLE ' ~ backquote(table), + 'sql_query': 'DROP TABLE ' ~ backquote(db) ~ '.' ~ backquote(table), 'goto': url('/database/operations'), 'reload': true, 'purge': true,