Commit 9754ee32 authored by Jessica Severin's avatar Jessica Severin
Browse files

added check in the setter to_analysis that if the from_analysis and the

setter analysis share the same adaptor (same database) then use the
logic_name as the url rather than a full url.
parent 7df9afd6
......@@ -186,7 +186,11 @@ sub to_analysis {
"not a [$analysis]");
}
$self->{'_to_analysis'} = $analysis;
$self->{'_to_analysis_url'} = $analysis->url;
if($self->from_analysis and ($self->from_analysis->adaptor == $analysis->adaptor)) {
$self->{'_to_analysis_url'} = $analysis->logic_name;
} else {
$self->{'_to_analysis_url'} = $analysis->url;
}
}
# lazy load the analysis object if I can
if(!defined($self->{'_to_analysis'}) and defined($self->to_analysis_url)) {
......
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