Skip to content
Snippets Groups Projects
Commit eb1c4e56 authored by Felix Kokocinski's avatar Felix Kokocinski
Browse files

bugfix

parent 65920b86
No related branches found
No related tags found
No related merge requests found
......@@ -167,13 +167,18 @@ sub ditag {
if(@_) {
$self->{'ditag'} = shift;
} elsif(!$self->{'ditag'} && $self->{'adaptor'} && $self->{'ditag_id'}) {
#lazy load the ditag
my $ditag_adaptor = $self->adaptor->db->get_DitagAdaptor;
$self->{'ditag'} = $ditag_adaptor->fetch_by_dbID($self->ditag_id);
} elsif(!$self->{'ditag'}) {
if($self->{'ditag_id'}) {
#lazy load the ditag
my $ditag_adaptor = $self->analysis->adaptor->db->get_DitagAdaptor;
$self->{'ditag'} = $ditag_adaptor->fetch_by_dbID($self->ditag_id);
}
else{
throw "Could not get Ditag for DitagFeature ".$self->dbID;
}
}
return $self->{'ditag'};
return($self->{'ditag'});
}
......
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