Bug 134368 - Fix bad syntax!!!

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1834 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2013-10-01 15:19:45 +00:00
parent 56995d8d49
commit 9b9395fd81
1 changed files with 6 additions and 5 deletions

View File

@ -220,7 +220,7 @@ foreach my $arg_key (keys $ARGS) {
my $comment_id = $arg_key;
$comment_id =~ s/^edit_comment\[(.*)\]$/$1/;
trick_taint($ARGS->{$arg_key});
%edit_comment->{$comment_id} = $ARGS->{$arg_key};
$edit_comment{$comment_id} = $ARGS->{$arg_key};
}
}
@ -415,12 +415,13 @@ foreach my $b (@bug_objects)
$b->set_custom_field($field, [$cgi->param($fname)]);
}
}
# Custis Bug 134368 - Edit comment
# CustIS Bug 134368 - Edit comment
if (%edit_comment)
{
foreach my $comment_id (keys %edit_comment) {
$b->edit_comment($comment_id, %edit_comment->{$comment_id});
foreach my $comment_id (keys %edit_comment)
{
$b->edit_comment($comment_id, $edit_comment{$comment_id});
}
}
}