From 49dae2de12742b87a28cc6aa6c5e768be91d1b99 Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Tue, 20 Aug 2019 20:57:20 +0200 Subject: [PATCH] Fix wrong id on table When a table is added on the fly, the id was always built based on the first table of the targetted DB, not based on the selected table. Signed-off-by: Hugues Peccatte --- db_designer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/db_designer.php b/db_designer.php index 60ae358fd2..6d15395bbe 100644 --- a/db_designer.php +++ b/db_designer.php @@ -38,6 +38,7 @@ if (isset($_POST['dialog'])) { $req_key = array_search($required, $GLOBALS['designer']['TABLE_NAME']); $GLOBALS['designer']['TABLE_NAME'] = array($GLOBALS['designer']['TABLE_NAME'][$req_key]); + $GLOBALS['designer_url']['TABLE_NAME'] = array($GLOBALS['designer_url']['TABLE_NAME'][$req_key]); $GLOBALS['designer_url']['TABLE_NAME_SMALL'] = array($GLOBALS['designer_url']['TABLE_NAME_SMALL'][$req_key]); $GLOBALS['designer']['TABLE_NAME_SMALL'] = array($GLOBALS['designer']['TABLE_NAME_SMALL'][$req_key]); $GLOBALS['designer_out']['TABLE_NAME_SMALL'] = array($GLOBALS['designer_out']['TABLE_NAME_SMALL'][$req_key]);