diff options
-rw-r--r-- | extensions/BMO/lib/Util.pm | 20 | ||||
-rw-r--r-- | extensions/TrackingFlags/lib/Constants.pm | 5 |
2 files changed, 11 insertions, 14 deletions
diff --git a/extensions/BMO/lib/Util.pm b/extensions/BMO/lib/Util.pm index b25215f61..4da02081e 100644 --- a/extensions/BMO/lib/Util.pm +++ b/extensions/BMO/lib/Util.pm @@ -76,17 +76,19 @@ sub parse_date { sub is_active_status_field { my ($field) = @_; - if ($field->type != FIELD_TYPE_EXTENSION - && $field->name =~ /^cf_status/) - { - return !grep { $field->name eq $_ } @$cf_disabled_flags - } if ($field->type == FIELD_TYPE_EXTENSION - && $field->can('flag_type') - && $field->flag_type eq 'status') - { - return 1; + && $field->isa('Bugzilla::Extension::TrackingFlags::Flag') + && $field->flag_type eq 'tracking' + && $field->name =~ /_status_/ + ) { + return $field->is_active; + } + + if ($field->type != FIELD_TYPE_EXTENSION + && $field->name =~ /^cf_status/ + ) { + return !grep { $field->name eq $_ } @$cf_disabled_flags } return 0; diff --git a/extensions/TrackingFlags/lib/Constants.pm b/extensions/TrackingFlags/lib/Constants.pm index edeb1a62b..57b2873e3 100644 --- a/extensions/TrackingFlags/lib/Constants.pm +++ b/extensions/TrackingFlags/lib/Constants.pm @@ -26,11 +26,6 @@ use constant FLAG_TYPES => [ collapsed => 0, }, { - name => 'status', - description => 'Status Flags', - collapsed => 1, - }, - { name => 'blocking', description => 'Blocking Flags', collapsed => 1, |