From: ghendricks%novell.com <> Date: Thu, 5 Feb 2009 16:36:18 +0000 (+0000) Subject: Bug 476943 - Edit multiple issues token after switching to shadow DB X-Git-Tag: bugzilla-3.2.3~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa511c3676d50f93fbd03a5eab6b703bdaa6475e;p=thirdparty%2Fbugzilla.git Bug 476943 - Edit multiple issues token after switching to shadow DB patch by ghendricks@novell.com r=mkanat a=mkanat --- diff --git a/buglist.cgi b/buglist.cgi index 3d9228fd03..5325b1eeeb 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -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');