From a13fadb6442ef41fa61031561f4bf30caefa0e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 13 Oct 2005 17:26:08 +0000 Subject: [PATCH] Allow editing of query without database. --- ChangeLog | 1 + libraries/common.lib.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6875ff79b..38e8eea87 100755 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,7 @@ $Source$ * libraries/get_foreign.lib.php: Free temporary query result. * lang/czech: Improve some translations. * sql.php: We need bookmark code to be included everytime. + * libraries/common.lib.php: Allow editing of query without database. 2005-10-13 Sebastian Mendel * left.php: preselect db if only one db diff --git a/libraries/common.lib.php b/libraries/common.lib.php index f5a0f33b9..ef6112341 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2003,7 +2003,7 @@ if (typeof(document.getElementById) != 'undefined' //if (!isset($GLOBALS['goto'])) { //$edit_target = (isset($GLOBALS['table'])) ? $cfg['DefaultTabTable'] : $cfg['DefaultTabDatabase']; - $edit_target = isset($GLOBALS['db']) ? (isset($GLOBALS['table']) ? 'tbl_properties.php' : 'db_details.php') : ''; + $edit_target = isset($GLOBALS['db']) ? (isset($GLOBALS['table']) ? 'tbl_properties.php' : 'db_details.php') : 'server_sql.php'; //} else if ($GLOBALS['goto'] != 'main.php') { // $edit_target = $GLOBALS['goto']; //} else {