From 3fd11c4431e7242c1a10ac3bec6acf764aa9633a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 10 Jul 2003 09:38:14 +0000 Subject: [PATCH] Fix JS error when in query window is not active SQL tab. --- ChangeLog | 2 ++ footer.inc.php3 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index df0fe0ad4..49c91bb82 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2003-07-10 Michal Cihar * lang/spanish: Updated, thanks to Daniel Hinostroza (dhinostroza). * lang/italian: Updated, thanks to Pietro Danesi (danone). + * footer.inc.php3: Fix JS error when in query window is not active SQL + tab. 2003-07-09 Michal Cihar * libraries/auth/cookie.auth.lib.php3: Fixed broken login with backslash diff --git a/footer.inc.php3 b/footer.inc.php3 index 563e4c76f..e26fe350f 100755 --- a/footer.inc.php3 +++ b/footer.inc.php3 @@ -41,7 +41,7 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { - if (!parent.frames.queryframe.querywindow.document.sqlform.LockFromUpdate.checked) { + if (parent.frames.queryframe.querywindow.document.sqlform.LockFromUpdate && !parent.frames.queryframe.querywindow.document.sqlform.LockFromUpdate.checked) { parent.frames.queryframe.querywindow.document.querywindow.db.value = ""; parent.frames.queryframe.querywindow.document.querywindow.query_history_latest_db.value = ""; parent.frames.queryframe.querywindow.document.querywindow.table.value = "";