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
d71d64d9
Commit
d71d64d9
authored
Apr 05, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 287483: Sanitycheck screams about "Bad value 0 found in components.initialqacontact"
Patch By Teemu Mannermaa <wicked@etlicon.fi> r=mkanat, a=myk
parent
9e7eef7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
checksetup.pl
checksetup.pl
+8
-2
editcomponents.cgi
editcomponents.cgi
+6
-2
No files found.
checksetup.pl
View file @
d71d64d9
...
...
@@ -3838,8 +3838,14 @@ add_setting ("display_quips", {"on" => 1, "off" => 2 }, "on" );
if
(
!
$dbh
->
bz_get_field_def
(
'bugs'
,
'qa_contact'
)
->
[
2
])
{
# if it's NOT NULL
$dbh
->
bz_change_field_type
(
'bugs'
,
'qa_contact'
,
'mediumint'
);
$dbh
->
do
(
"UPDATE bugs SET qa_contact = NULL WHERE qa_contact = 0"
);
$dbh
->
do
(
"UPDATE components SET initialqacontact = NULL
WHERE initialqacontact = 0"
);
}
# 2005-03-27 initialqacontact should be NULL instead of 0, bug 287483
if
(
!
$dbh
->
bz_get_field_def
(
'components'
,
'initialqacontact'
)
->
[
2
])
{
# if it's NOT NULL
$dbh
->
bz_change_field_type
(
'components'
,
'initialqacontact'
,
'mediumint'
);
$dbh
->
do
(
"UPDATE components SET initialqacontact = NULL "
.
"WHERE initialqacontact = 0"
);
}
# 2005-03-29 - gerv@gerv.net - bug 73665.
...
...
editcomponents.cgi
View file @
d71d64d9
...
...
@@ -305,6 +305,8 @@ if ($action eq 'new') {
{
'name'
=>
$component
});
}
}
my
$initialqacontactsql
=
$initialqacontact
ne
''
?
SqlQuote
(
$initialqacontactid
)
:
'NULL'
;
# Add the new component
SendSQL
(
"INSERT INTO components ( "
.
...
...
@@ -314,7 +316,7 @@ if ($action eq 'new') {
SqlQuote
(
$component
)
.
","
.
SqlQuote
(
$description
)
.
","
.
SqlQuote
(
$initialownerid
)
.
","
.
SqlQuote
(
$initialqacontactid
)
.
")"
);
$initialqacontactsql
.
")"
);
# Insert default charting queries for this product.
# If they aren't using charting, this won't do any harm.
...
...
@@ -611,9 +613,11 @@ if ($action eq 'update') {
ThrowUserError
(
'component_need_valid_initialqacontact'
,
{
'name'
=>
$componentold
});
}
my
$initialqacontactsql
=
$initialqacontact
ne
''
?
SqlQuote
(
$initialqacontactid
)
:
'NULL'
;
SendSQL
(
"UPDATE components
SET initialqacontact
="
.
SqlQuote
(
$initialqacontactid
)
.
"
SET initialqacontact
= $initialqacontactsql
WHERE id = $component_id"
);
$vars
->
{
'updated_initialqacontact'
}
=
1
;
...
...
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