]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 139632: connect to the database in enter_bug.cgi in case it is time to...
authormyk%mozilla.org <>
Thu, 25 Apr 2002 04:28:36 +0000 (04:28 +0000)
committermyk%mozilla.org <>
Thu, 25 Apr 2002 04:28:36 +0000 (04:28 +0000)
connection.
Patch by Myk Melez <myk@mozilla.org>.
2xr=gerv

enter_bug.cgi

index dce3dd4ac93d85c32fc95e0cfc85e874ce32c9bb..f2836a5fa4a45f2ac7a63d67599fc3a1c0b8ddcb 100755 (executable)
@@ -53,6 +53,11 @@ use vars qw(
   %versions
 );
 
+# We have to connect to the database, even though we don't use it in this code,
+# because we might occasionally rebuild the version cache, which causes tokens
+# to get deleted from the database, which needs a database connection.
+ConnectToDatabase();
+
 # If we're using bug groups to restrict bug entry, we need to know who the 
 # user is right from the start. 
 confirm_login() if (Param("usebuggroupsentry"));