Bug 232765 - Refresh field cache after editing product permissions or user groups
parent
3b9ba2b7b5
commit
65e825d471
|
@ -257,6 +257,8 @@ if ($action eq 'delete')
|
|||
|
||||
Bugzilla::Hook::process('editgroups-post_delete', { group => $group });
|
||||
Bugzilla::Views::refresh_some_views();
|
||||
# Refresh fieldvaluecontrol cache
|
||||
Bugzilla->get_field('delta_ts')->touch;
|
||||
|
||||
$vars->{message} = 'group_deleted';
|
||||
ListGroups($vars);
|
||||
|
@ -273,6 +275,8 @@ if ($action eq 'postchanges')
|
|||
|
||||
Bugzilla::Hook::process('editgroups-post_edit', {});
|
||||
Bugzilla::Views::refresh_some_views();
|
||||
# Refresh fieldvaluecontrol cache
|
||||
Bugzilla->get_field('delta_ts')->touch;
|
||||
|
||||
delete_token($token);
|
||||
|
||||
|
@ -320,6 +324,8 @@ if ($action eq 'remove_regexp')
|
|||
|
||||
Bugzilla::Hook::process('editgroups-post_remove_regexp', { deleted => $del });
|
||||
Bugzilla::Views::refresh_some_views();
|
||||
# Refresh fieldvaluecontrol cache
|
||||
Bugzilla->get_field('delta_ts')->touch;
|
||||
|
||||
delete_token($token);
|
||||
|
||||
|
|
|
@ -467,6 +467,9 @@ if ($action eq 'updategroupcontrols')
|
|||
$vars->{product} = $product;
|
||||
$vars->{changes} = $changes;
|
||||
|
||||
# Refresh fieldvaluecontrol cache
|
||||
Bugzilla->get_field('delta_ts')->touch;
|
||||
|
||||
$template->process('admin/products/groupcontrol/updated.html.tmpl', $vars)
|
||||
|| ThrowTemplateError($template->error());
|
||||
exit;
|
||||
|
|
|
@ -338,6 +338,8 @@ elsif ($action eq 'update')
|
|||
|
||||
Bugzilla::Hook::process('editusers-post_update', { userid => $otherUserID });
|
||||
Bugzilla::Views::refresh_some_views([ $otherUser->login ]);
|
||||
# Refresh fieldvaluecontrol cache
|
||||
Bugzilla->get_field('delta_ts')->touch;
|
||||
|
||||
$vars->{message} = 'account_updated';
|
||||
$vars->{changed_fields} = [ keys %$changes ];
|
||||
|
|
|
@ -73,6 +73,8 @@ if (@add_members || @add_bless || @rm_members || @rm_bless)
|
|||
if (@add_members || @rm_members)
|
||||
{
|
||||
Bugzilla::Views::refresh_some_views();
|
||||
# Refresh fieldvaluecontrol cache
|
||||
Bugzilla->get_field('delta_ts')->touch;
|
||||
}
|
||||
delete_token($ARGS->{token});
|
||||
my $url = "editusersingroup.cgi?group=".$vars->{group}->id;
|
||||
|
|
Loading…
Reference in New Issue