Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
292ad609
Commit
292ad609
authored
Jan 07, 2013
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 825718: Fix Bugzilla::Bug->check() wrt caching mechanism
r=LpSolit,r=LpSolit
parent
9ee81348
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Bug.pm
Bugzilla/Bug.pm
+7
-5
No files found.
Bugzilla/Bug.pm
View file @
292ad609
...
...
@@ -372,14 +372,16 @@ sub cache_key {
sub
check
{
my
$class
=
shift
;
my
(
$id
,
$field
)
=
@_
;
ThrowUserError
(
'improper_bug_id_field_value'
,
{
field
=>
$field
})
unless
defined
$id
;
my
(
$param
,
$field
)
=
@_
;
# Bugzilla::Bug throws lots of special errors, so we don't call
# SUPER::check, we just call our new and do our own checks.
$id
=
trim
(
$id
);
my
$self
=
$class
->
new
(
$id
);
my
$id
=
ref
(
$param
)
?
(
$param
->
{
id
}
=
trim
(
$param
->
{
id
}))
:
(
$param
=
trim
(
$param
));
ThrowUserError
(
'improper_bug_id_field_value'
,
{
field
=>
$field
})
unless
defined
$id
;
my
$self
=
$class
->
new
(
$param
);
if
(
$self
->
{
error
})
{
# For error messages, use the id that was returned by new(), because
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment