diff options
author | mkanat%bugzilla.org <> | 2008-10-03 08:30:38 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-10-03 08:30:38 +0200 |
commit | fab5d3a38aadaed1e6153c0fbd820449258586b2 (patch) | |
tree | 2e1f8816d56aaf213fd9b4e6812b28ed3cbf8527 /Bugzilla/Status.pm | |
parent | 931bd3b651ccca832a618f7b28bbc35e503665d4 (diff) | |
download | bugzilla-fab5d3a38aadaed1e6153c0fbd820449258586b2.tar.gz bugzilla-fab5d3a38aadaed1e6153c0fbd820449258586b2.tar.xz |
Bug 455641: Implement Bugzilla::Field::Choice->update and have editvalues.cgi use it
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bbaetz, a=mkanat
Diffstat (limited to 'Bugzilla/Status.pm')
-rw-r--r-- | Bugzilla/Status.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Bugzilla/Status.pm b/Bugzilla/Status.pm index 5f37974e7..565433850 100644 --- a/Bugzilla/Status.pm +++ b/Bugzilla/Status.pm @@ -77,11 +77,19 @@ sub create { ##### Accessors #### ############################### -sub name { return $_[0]->{'value'}; } -sub sortkey { return $_[0]->{'sortkey'}; } sub is_active { return $_[0]->{'isactive'}; } sub is_open { return $_[0]->{'is_open'}; } +sub is_static { + my $self = shift; + if ($self->name eq 'UNCONFIRMED' + || $self->name eq Bugzilla->params->{'duplicate_or_move_bug_status'}) + { + return 1; + } + return 0; +} + ############## # Validators # ############## |