Skip to content
Snippets Groups Projects
Commit cf7db69b authored by Jessica Severin's avatar Jessica Severin
Browse files

fixed bug in fetch_by_status: need to add ',' to list of status names when passing more

than one status
parent b4588cf8
No related branches found
No related tags found
No related merge requests found
......@@ -99,12 +99,15 @@ sub fetch_by_status {
my $self = shift;
my $constraint = "ast.status in (";
my $addComma;
while(@_) {
my $status = shift;
$constraint .= ',' if($addComma);
$constraint .= "'$status' ";
$addComma = 1;
}
$constraint .= ")";
return $self->_generic_fetch($constraint);
}
......
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