]> 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 17:13:42 +0000 (17:13 +0000)
committerghendricks%novell.com <>
Thu, 5 Feb 2009 17:13:42 +0000 (17:13 +0000)
 patch by ghendricks@novell.com r=mkanat a=mkanat

buglist.cgi

index de7e56bd7eddd14570711335257be2e093fc9941..63997eabb3a298d2b784952d86471e9a1b14b8fb 100755 (executable)
@@ -1251,7 +1251,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');