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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
61890499
Commit
61890499
authored
Aug 10, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 161865 - GetFieldID shouldn't INSERT into the fielddefs table
r=joel x2
parent
159185ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
checksetup.pl
checksetup.pl
+7
-3
globals.pl
globals.pl
+1
-6
No files found.
checksetup.pl
View file @
61890499
...
...
@@ -1746,6 +1746,9 @@ sub AddFDef ($$$) {
}
# Note that all of these entries are unconditional, from when GetFieldID
# used to create an entry if it wasn't found. New fielddef columns should
# be created with their associated schema change.
AddFDef
(
"bug_id"
,
"Bug \#"
,
1
);
AddFDef
(
"short_desc"
,
"Summary"
,
1
);
AddFDef
(
"product"
,
"Product"
,
1
);
...
...
@@ -1779,9 +1782,10 @@ AddFDef("(to_days(now()) - to_days(bugs.delta_ts))", "Days since bug changed",
0
);
AddFDef
(
"longdesc"
,
"Comment"
,
0
);
AddFDef
(
"alias"
,
"Alias"
,
0
);
AddFDef
(
"everconfirmed"
,
"Ever Confirmed"
,
0
);
AddFDef
(
"groupset"
,
"Groupset"
,
0
);
AddFDef
(
"reporter_accessible"
,
"Reporter Accessible"
,
0
);
AddFDef
(
"cc_accessible"
,
"CC Accessible"
,
0
);
###########################################################################
# Detect changed local settings
...
...
globals.pl
View file @
61890499
...
...
@@ -349,12 +349,7 @@ sub GetFieldID {
my
(
$f
)
=
(
@_
);
SendSQL
(
"SELECT fieldid FROM fielddefs WHERE name = "
.
SqlQuote
(
$f
));
my
$fieldid
=
FetchOneColumn
();
if
(
!
$fieldid
)
{
my
$q
=
SqlQuote
(
$f
);
SendSQL
(
"REPLACE INTO fielddefs (name, description) VALUES ($q, $q)"
);
SendSQL
(
"SELECT LAST_INSERT_ID()"
);
$fieldid
=
FetchOneColumn
();
}
die
"Unknown field id: $f"
if
!
$fieldid
;
return
$fieldid
;
}
...
...
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