Fix hiding inactive components in js form

master
Vitaliy Filippov 2014-05-20 15:50:50 +04:00
parent ae4c70c847
commit e7339f20e8
2 changed files with 5 additions and 3 deletions

View File

@ -70,6 +70,8 @@ use constant UPDATE_COLUMNS => qw(
is_active
);
use constant ISACTIVE_COLUMN => 'is_active';
use constant VALIDATORS => {
create_series => \&Bugzilla::Object::check_boolean,
product => \&_check_product,

View File

@ -36,8 +36,8 @@ use constant UPDATE_COLUMNS => qw(
use constant NAME_FIELD => 'value';
use constant LIST_ORDER => 'sortkey, value';
use constant CUSTOM_SORT => undef;
use constant ISACTIVE_COLUMN => 'isactive';
use constant REQUIRED_CREATE_FIELDS => qw(value);
@ -218,9 +218,9 @@ sub get_all
my $f = $class->field;
my $all;
my $cache = Bugzilla->cache_fields;
if (!$include_disabled && grep { $_ eq 'isactive' } $class->DB_COLUMNS)
if (!$include_disabled && grep { $_ eq $class->ISACTIVE_COLUMN } $class->DB_COLUMNS)
{
$all = $class->match({ isactive => 1 });
$all = $class->match({ $class->ISACTIVE_COLUMN => 1 });
}
elsif (!defined $f->{legal_values})
{