]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 476943 - Edit multiple issues token after switching to shadow DB
authorghendricks%novell.com <>
Thu, 5 Feb 2009 16:36:18 +0000 (16:36 +0000)
committerghendricks%novell.com <>
Thu, 5 Feb 2009 16:36:18 +0000 (16:36 +0000)
 patch by ghendricks@novell.com r=mkanat a=mkanat

buglist.cgi

index 3d9228fd0362e4273152ece36db2b1fc69efef0c..5325b1eeeb5a0ef77ac63f840dbcb74efb7ab243 100755 (executable)
@@ -1195,7 +1195,11 @@ if ($dotweak && scalar @bugs) {
     }
     $vars->{'dotweak'} = 1;
     $vars->{'use_keywords'} = 1 if Bugzilla::Keyword::keyword_count();
+  
+    # issue_session_token needs to write to the master DB.
+    Bugzilla->switch_to_main_db();
     $vars->{'token'} = issue_session_token('buglist_mass_change');
+    Bugzilla->switch_to_shadow_db();
 
     $vars->{'products'} = Bugzilla->user->get_enterable_products;
     $vars->{'platforms'} = get_legal_field_values('rep_platform');