Commit fb03ef1d authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: make sure we are getting the actual meta_value for hive_use_triggers

parent 71834643
......@@ -99,7 +99,7 @@ sub hive_use_triggers { # getter only, not setter
my $self = shift @_;
unless( defined($self->{'_hive_use_triggers'}) ) {
my $hive_use_triggers = $self->get_MetaAdaptor->fetch_by_meta_key( 'hive_use_triggers' );
my $hive_use_triggers = $self->get_MetaAdaptor->fetch_value_by_key( 'hive_use_triggers' );
$self->{'_hive_use_triggers'} = $hive_use_triggers || 0;
}
return $self->{'_hive_use_triggers'};
......
......@@ -41,7 +41,8 @@ sub store_pair {
sub fetch_value_by_key {
my ($self, $meta_key) = @_;
return $self->fetch_by_meta_key( $meta_key )->{'meta_value'};
my $pair = $self->fetch_by_meta_key( $meta_key );
return $pair && $pair->{'meta_value'};
}
1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment