From 04e783d88bd5606b4ec9617634990b398b9a2376 Mon Sep 17 00:00:00 2001 From: vfilippov Date: Mon, 6 Sep 2010 15:31:15 +0000 Subject: [PATCH] Bug 68430 git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@924 6955db30-a419-402b-8a0d-67ecbb4d7f56 --- extensions/custis/code/process_bug-after_move.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extensions/custis/code/process_bug-after_move.pl b/extensions/custis/code/process_bug-after_move.pl index b7f550d6e..cb09f8164 100644 --- a/extensions/custis/code/process_bug-after_move.pl +++ b/extensions/custis/code/process_bug-after_move.pl @@ -20,6 +20,7 @@ if (($clear_on_close || $reset_own_flags) && !$cgi->param('force_flags')) my $flags; my @requery_flags; my $flag; + my $login; # 1) Check flag requests and remind user about resetting his own incoming requests. # 2) When closing bugs, clear all flag requests (CustIS Bug 68430). # Not used in mass update and email modes. @@ -33,7 +34,11 @@ if (($clear_on_close || $reset_own_flags) && !$cgi->param('force_flags')) { $flag = Bugzilla::Flag->new({ id => $2 }); $flag->{status} = $cgi->param($1); - $flag->{requestee_id} = login_to_id(trim($cgi->param("requestee-$2"))); + if (($login = trim($cgi->param("requestee-".$flag->{id}))) && + ($login = login_to_id($login))) + { + $flag->{requestee_id} = $login; + } push @$flags, $flag; } }