RSS

(root)/bugzilla/4.2 : 7456 : Bugzilla/Milestone.pm

To get this branch, use:
bzr branch /bugzilla/4.2

« back to all changes in this revision

Viewing changes to Bugzilla/Milestone.pm

Dave Lawrence
2010-08-30 21:20:07
Revision ID: dkl@redhat.com-20100831042007-0zf306r0aj9k73wr
Bug 77193 - Add the ability to retire (disable) old versions, components and milestones
r/a=mkanat

Show diffs side-by-side

added added

removed removed

43
43
    value
44
44
    product_id
45
45
    sortkey
 
46
    isactive
46
47
);
47
48
 
48
49
use constant REQUIRED_FIELD_MAP => {
52
53
use constant UPDATE_COLUMNS => qw(
53
54
    value
54
55
    sortkey
 
56
    isactive
55
57
);
56
58
 
57
59
use constant VALIDATORS => {
58
 
    product => \&_check_product,
59
 
    sortkey => \&_check_sortkey,
60
 
    value   => \&_check_value,
 
60
    product  => \&_check_product,
 
61
    sortkey  => \&_check_sortkey,
 
62
    value    => \&_check_value,
 
63
    isactive => \&Bugzilla::Object::check_boolean,
61
64
};
62
65
 
63
66
use constant VALIDATOR_DEPENDENCIES => {
203
206
# Methods
204
207
################################
205
208
 
206
 
sub set_name { $_[0]->set('value', $_[1]); }
207
 
sub set_sortkey { $_[0]->set('sortkey', $_[1]); }
 
209
sub set_name      { $_[0]->set('value', $_[1]);    }
 
210
sub set_sortkey   { $_[0]->set('sortkey', $_[1]);  }
 
211
sub set_is_active { $_[0]->set('isactive', $_[1]); }
208
212
 
209
213
sub bug_count {
210
214
    my $self = shift;
226
230
sub name       { return $_[0]->{'value'};      }
227
231
sub product_id { return $_[0]->{'product_id'}; }
228
232
sub sortkey    { return $_[0]->{'sortkey'};    }
 
233
sub is_active  { return $_[0]->{'isactive'};   }
229
234
 
230
235
sub product {
231
236
    my $self = shift;

Loggerhead 1.18.1 is a web-based interface for Bazaar branches