All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

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($$)
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
......
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