Commit 48043e6e authored by Leigh B Stoller's avatar Leigh B Stoller

Another versioning fix; retain version in MapToImage();

parent 64a17b74
...@@ -829,8 +829,12 @@ sub MapToImage($$) ...@@ -829,8 +829,12 @@ sub MapToImage($$)
if (!defined($query_result) || !$query_result->numrows); if (!defined($query_result) || !$query_result->numrows);
my ($imageid) = $query_result->fetchrow_array(); my ($imageid) = $query_result->fetchrow_array();
# Look for corresponding image version.
return Image->Lookup($imageid); my $image = Image->Lookup($imageid, $self->vers());
if (!defined($image)) {
$image = Image->Lookup($imageid);
}
return $image;
} }
# Stubs for calling "libTaintStates" common taint handling code # Stubs for calling "libTaintStates" common taint handling code
......
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