Commit a3cf3b1a authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 333031: Uninitialized value when entering a new bug and an alias is given -…

Bug 333031: Uninitialized value when entering a new bug and an alias is given - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
parent e416c1d9
......@@ -1198,7 +1198,7 @@ sub ValidateBugAlias {
# Make sure the alias is unique.
my $query = "SELECT bug_id FROM bugs WHERE alias = ?";
if (detaint_natural($curr_id)) {
if ($curr_id && detaint_natural($curr_id)) {
$query .= " AND bug_id != $curr_id";
}
my $id = $dbh->selectrow_array($query, undef, $alias);
......
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