summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index de7e56bd7..63997eabb 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -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');