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
a59456eb
Commit
a59456eb
authored
Jun 15, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 341453: Bugzilla::Series looks for functions in global scope that are not global functions
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
parent
9d8e3ef8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
Series.pm
Bugzilla/Series.pm
+9
-8
No files found.
Bugzilla/Series.pm
View file @
a59456eb
...
...
@@ -32,6 +32,7 @@ use lib ".";
package
Bugzilla::
Series
;
use
Bugzilla::
Error
;
use
Bugzilla::
Util
;
use
Bugzilla::
User
;
...
...
@@ -85,8 +86,8 @@ sub initFromDatabase {
my
$self
=
shift
;
my
$series_id
=
shift
;
&::
detaint_natural
(
$series_id
)
||
&::
ThrowCodeError
(
"invalid_series_id"
,
{
'series_id'
=>
$series_id
});
detaint_natural
(
$series_id
)
||
ThrowCodeError
(
"invalid_series_id"
,
{
'series_id'
=>
$series_id
});
my
$dbh
=
Bugzilla
->
dbh
;
my
@series
=
$dbh
->
selectrow_array
(
"SELECT series.series_id, cc1.name, "
.
...
...
@@ -135,26 +136,26 @@ sub initFromCGI {
$self
->
{
'series_id'
}
=
$cgi
->
param
(
'series_id'
)
||
undef
;
if
(
defined
(
$self
->
{
'series_id'
}))
{
detaint_natural
(
$self
->
{
'series_id'
})
||
&::
ThrowCodeError
(
"invalid_series_id"
,
||
ThrowCodeError
(
"invalid_series_id"
,
{
'series_id'
=>
$self
->
{
'series_id'
}
});
}
$self
->
{
'category'
}
=
$cgi
->
param
(
'category'
)
||
$cgi
->
param
(
'newcategory'
)
||
&::
ThrowUserError
(
"missing_category"
);
||
ThrowUserError
(
"missing_category"
);
$self
->
{
'subcategory'
}
=
$cgi
->
param
(
'subcategory'
)
||
$cgi
->
param
(
'newsubcategory'
)
||
&::
ThrowUserError
(
"missing_subcategory"
);
||
ThrowUserError
(
"missing_subcategory"
);
$self
->
{
'name'
}
=
$cgi
->
param
(
'name'
)
||
&::
ThrowUserError
(
"missing_name"
);
||
ThrowUserError
(
"missing_name"
);
$self
->
{
'creator'
}
=
Bugzilla
->
user
->
id
;
$self
->
{
'frequency'
}
=
$cgi
->
param
(
'frequency'
);
detaint_natural
(
$self
->
{
'frequency'
})
||
&::
ThrowUserError
(
"missing_frequency"
);
||
ThrowUserError
(
"missing_frequency"
);
$self
->
{
'query'
}
=
$cgi
->
canonicalise_query
(
"format"
,
"ctype"
,
"action"
,
"category"
,
"subcategory"
,
"name"
,
...
...
@@ -209,7 +210,7 @@ sub writeToDatabase {
$self
->
{
'series_id'
}
=
$dbh
->
selectrow_array
(
"SELECT MAX(series_id) "
.
"FROM series"
);
$self
->
{
'series_id'
}
||
&::
ThrowCodeError
(
"missing_series_id"
,
{
'series'
=>
$self
});
||
ThrowCodeError
(
"missing_series_id"
,
{
'series'
=>
$self
});
}
$dbh
->
bz_unlock_tables
();
...
...
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