Bug 55712
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@562 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
ca432e9915
commit
f942d7c235
|
@ -447,12 +447,14 @@ sub _validate {
|
|||
# Note that if permissions on this bug are changed,
|
||||
# can_see_bug() will refer to old settings.
|
||||
if (!$requestee->can_see_bug($bug_id)) {
|
||||
next if $skip_requestee_on_error;
|
||||
ThrowUserError('flag_requestee_unauthorized',
|
||||
{ flag_type => $flag_type,
|
||||
requestee => $requestee,
|
||||
bug_id => $bug_id,
|
||||
attach_id => $attach_id });
|
||||
# Bug 55712 - Add flag requestees to CC list
|
||||
Bugzilla->cgi->param(-name => 'newcc', -value => [ Bugzilla->cgi->param('newcc'), $requestee->login ]);
|
||||
#next if $skip_requestee_on_error;
|
||||
#ThrowUserError('flag_requestee_unauthorized',
|
||||
# { flag_type => $flag_type,
|
||||
# requestee => $requestee,
|
||||
# bug_id => $bug_id,
|
||||
# attach_id => $attach_id });
|
||||
}
|
||||
|
||||
# Throw an error if the target is a private attachment and
|
||||
|
|
|
@ -500,21 +500,6 @@ if (defined $cgi->param('newcc')
|
|||
push(@cc_remove, split(/[\s,]+/, $cc_remove)) if $cc_remove;
|
||||
}
|
||||
|
||||
# CustIS Bug 55712 - Add flag requestees to CC
|
||||
for ($cgi->param)
|
||||
{
|
||||
if (/^requestee_type-(\d+)$/so)
|
||||
{
|
||||
my $r = trim($cgi->param($_));
|
||||
if ($bug_objects[0]->assigned_to->login ne $r &&
|
||||
$bug_objects[0]->qa_contact->login ne $r &&
|
||||
$bug_objects[0]->reporter->login ne $r)
|
||||
{
|
||||
push @cc_add, $r;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach my $b (@bug_objects) {
|
||||
$b->remove_cc($_) foreach @cc_remove;
|
||||
$b->add_cc($_) foreach @cc_add;
|
||||
|
|
Loading…
Reference in New Issue