зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
efd765e39b
Коммит
b9419bb330
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче