From bac6f6bb0ce38f5042ab4a8345a4f45b6ed7aebd Mon Sep 17 00:00:00 2001 From: Yash Bothra Date: Sat, 25 Jan 2020 04:21:33 +0530 Subject: [PATCH] Fix #15447 - disable checkbox of pmadb Signed-off-by: Yash Bothra --- libraries/classes/Controllers/Server/DatabasesController.php | 1 + templates/server/databases/index.twig | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/classes/Controllers/Server/DatabasesController.php b/libraries/classes/Controllers/Server/DatabasesController.php index b378c52f96..90156d1c7b 100644 --- a/libraries/classes/Controllers/Server/DatabasesController.php +++ b/libraries/classes/Controllers/Server/DatabasesController.php @@ -394,6 +394,7 @@ class DatabasesController extends AbstractController $database['SCHEMA_NAME'], true ), + 'is_pmadb' => $database['SCHEMA_NAME'] === $cfg['Server']['pmadb'], 'url' => $url, ]; $collation = Charsets::findCollationByName( diff --git a/templates/server/databases/index.twig b/templates/server/databases/index.twig index 760452a38f..6b5c3814c2 100644 --- a/templates/server/databases/index.twig +++ b/templates/server/databases/index.twig @@ -169,13 +169,13 @@ {% for database in databases %} - + {% if is_drop_allowed %} + {{- database.is_system_schema or database.is_pmadb ? ' disabled' }}> {% endif %}