Bug 65361 - Remove old hook
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@833 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
8312918644
commit
d1be719743
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue