From 8e23dab6261677087085f439bddabfdd487c8c2f Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Mon, 12 May 2003 17:17:13 +0000 Subject: [PATCH] Fix Bug #735970 (query history only with correct queries) --- ChangeLog | 2 ++ footer.inc.php3 | 12 +++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4325e1c8e..c58f69737 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2003-05-12 Garvin Hicking * queryframe.php3: Remove left/bottom margin to better fit the link title in the small frame. + * footer.inc.php3: Only update db/table variables if the query was correct. + Fixes #735970. 2003-05-12 Michal Cihar * index.php3: Better fix for #736003. diff --git a/footer.inc.php3 b/footer.inc.php3 index c729cd882..8bd8b67d8 100755 --- a/footer.inc.php3 +++ b/footer.inc.php3 @@ -32,6 +32,9 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { if (top.frames.queryframe && top.frames.queryframe.querywindow && !top.frames.queryframe.querywindow.closed && top.frames.queryframe.querywindow.location) { Query Window can be updated.
");' : ''); ?> + top.frames.queryframe.querywindow.document.querywindow.db.value = ""; top.frames.queryframe.querywindow.document.querywindow.query_history_latest_db.value = ""; top.frames.queryframe.querywindow.document.querywindow.table.value = ""; @@ -40,7 +43,14 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { - + top.frames.queryframe.querywindow.document.querywindow.submit(); + + // no submit, query was invalid + } }