Bug 65361 - Remove old hook

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@833 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2010-06-30 18:46:42 +00:00
parent 8312918644
commit d1be719743
1 changed files with 0 additions and 19 deletions

View File

@ -1,19 +0,0 @@
#!/usr/bin/perl
use strict;
use Bugzilla::Util qw(trim);
use Bugzilla::Error;
my $a = Bugzilla->hook_args;
my $nok = {};
if ($a->{bug} && $a->{bug}->product eq 'TN-RMS' &&
$a->{old_status}->name ne 'CLOSED' && $a->{new_status}->name eq 'CLOSED')
{
$nok->{s} = 1 if $a->{bug}->{cf_sprint} =~ /^\s*$/so;
$nok->{w} = 1 if $a->{bug}->{status_whiteboard} =~ /^\s*$/so;
$nok->{a} = 1 if $a->{bug}->{cf_agreement} =~ /^[\s-]*$/so;
if (%$nok)
{
ThrowUserError('rms_fields_empty', $nok);
}
}