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

Another versioning fix; retain version in MapToImage();

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