From 4a0e946fb30212c232c6651a47e057d6cc602a1d Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 26 Jun 2008 06:00:05 +0000 Subject: =?UTF-8?q?Bug=20440609=20=C3=A2=C2=80=C2=93=20Implement=20Bugzill?= =?UTF-8?q?a::Bug->check=20for=20use=20instead=20of=20ValidateBugID=20and?= =?UTF-8?q?=20use=20it=20in=20one=20file=20Patch=20By=20Max=20Kanat-Alexan?= =?UTF-8?q?der=20=20r=3DLpSolit,=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index ec603e2b2..2335d0caa 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -272,6 +272,15 @@ sub new { return $self; } +sub check { + my $class = shift; + # XXX At some point we will eliminate ValidateBugID and make this + # method more efficient. + ValidateBugID(@_); + my $self = $class->new(@_); + return $self; +} + # Docs for create() (there's no POD in this file yet, but we very # much need this documented right now): # -- cgit v1.2.1