Bug 72149

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1086 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2010-11-18 14:44:05 +00:00
parent e2fa47c244
commit 8472584d38
1 changed files with 2 additions and 0 deletions

View File

@ -1862,6 +1862,8 @@ sub _check_select_field {
sub _check_bugid_field {
my ($invocant, $value, $field) = @_;
return undef if !$value;
# If there is no change, do not check the bug id, as it may be invisible for current user
return $invocant->{$field} if ref $invocant && $invocant->{$field} eq $value;
return $invocant->check($value, $field)->id;
}