Commit 2b3d9fb4 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 415663: Flag->snapshot() calls Flag->match() with attach_id being undefined…

Bug 415663: Flag->snapshot() calls Flag->match() with attach_id being undefined when editing bug flags - Patch by Fré©ric Buclin <LpSolit@gmail.com> a=LpSolit
parent 24c32fe3
......@@ -215,6 +215,11 @@ sub match {
$criteria->{'attach_id'} = IS_NULL;
}
}
# Flag->snapshot() calls Flag->match() with bug_id and attach_id
# as hash keys, even if attach_id is undefined.
if (exists $criteria->{'attach_id'} && !defined $criteria->{'attach_id'}) {
$criteria->{'attach_id'} = IS_NULL;
}
return $class->SUPER::match(@_);
}
......
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