diff options
author | mkanat%bugzilla.org <> | 2008-06-26 08:00:05 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-06-26 08:00:05 +0200 |
commit | 4a0e946fb30212c232c6651a47e057d6cc602a1d (patch) | |
tree | a1e4af20b94d12785858aa41cf79aec9eecf0808 /Bugzilla/Bug.pm | |
parent | 6de90de1f2db0766633cc188bfe800b6980f4925 (diff) | |
download | bugzilla-4a0e946fb30212c232c6651a47e057d6cc602a1d.tar.gz bugzilla-4a0e946fb30212c232c6651a47e057d6cc602a1d.tar.xz |
Bug 440609 â Implement Bugzilla::Bug->check for use instead of ValidateBugID and use it in one file
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 9 |
1 files changed, 9 insertions, 0 deletions
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): # |