diff options
Diffstat (limited to 'extensions/TrackingFlags/lib/Flag.pm')
-rw-r--r-- | extensions/TrackingFlags/lib/Flag.pm | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/extensions/TrackingFlags/lib/Flag.pm b/extensions/TrackingFlags/lib/Flag.pm index f54e42a7a..82c0314e3 100644 --- a/extensions/TrackingFlags/lib/Flag.pm +++ b/extensions/TrackingFlags/lib/Flag.pm @@ -376,16 +376,8 @@ sub set_is_active { $_[0]->set('is_active', $_[1]); } #### Accessors #### ############################### -use constant ID_FIELD => 'field_id'; - -use Class::XSAccessor { - accessors => { - id => __PACKAGE__->ID_FIELD, - name => __PACKAGE__->NAME_FIELD, - }, -}; - sub flag_id { return $_[0]->{'id'}; } +sub name { return $_[0]->{'name'}; } sub description { return $_[0]->{'description'}; } sub flag_type { return $_[0]->{'type'}; } sub sortkey { return $_[0]->{'sortkey'}; } @@ -468,6 +460,7 @@ sub activity_count { # Here we return 'field_id' instead of the real # id as we want other Bugzilla code to treat this # as a Bugzilla::Field object in certain places. +sub id { return $_[0]->{'field_id'}; } sub type { return FIELD_TYPE_EXTENSION; } sub legal_values { return $_[0]->values; } sub custom { return 1; } |