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
e1ab613c
Commit
e1ab613c
authored
Apr 27, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 289012: Can't use an undefined value as a HASH reference at userprefs.cgi line 142.
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
parent
51bb0240
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
Setting.pm
Bugzilla/User/Setting.pm
+2
-2
checksetup.pl
checksetup.pl
+14
-10
No files found.
Bugzilla/User/Setting.pm
View file @
e1ab613c
...
...
@@ -127,7 +127,7 @@ sub add_setting {
sub
get_all_settings
{
my
(
$user_id
)
=
@_
;
my
$settings
;
my
$settings
=
{}
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$sth
=
$dbh
->
prepare
(
...
...
@@ -162,7 +162,7 @@ sub get_all_settings {
sub
get_defaults
{
my
$dbh
=
Bugzilla
->
dbh
;
my
$default_settings
;
my
$default_settings
=
{}
;
my
$sth
=
$dbh
->
prepare
(
q{SELECT name, default_value, is_enabled
FROM setting
...
...
checksetup.pl
View file @
e1ab613c
...
...
@@ -84,6 +84,7 @@
# add more database-related checks --DATABASE--
# change table definitions --TABLE--
# add more groups --GROUPS--
# add user-adjustable sttings --SETTINGS--
# create initial administrator account --ADMIN--
#
# Note: sometimes those special comments occur more than once. For
...
...
@@ -3772,9 +3773,6 @@ if($dbh->bz_column_info('bugs', 'lastdiffed')->{NOTNULL}) {
$dbh
->
bz_alter_column
(
'bugs'
,
'lastdiffed'
,
{
TYPE
=>
'DATETIME'
});
}
# 2005-03-03 travis@sedsystems.ca -- Bug 41972
add_setting
(
"display_quips"
,
{
"on"
=>
1
,
"off"
=>
2
},
"on"
);
# 2005-03-09 qa_contact should be NULL instead of 0, bug 285534
if
(
$dbh
->
bz_column_info
(
'bugs'
,
'qa_contact'
)
->
{
NOTNULL
})
{
$dbh
->
bz_alter_column
(
'bugs'
,
'qa_contact'
,
{
TYPE
=>
'INT3'
});
...
...
@@ -3923,13 +3921,6 @@ if ( $dbh->isa('Bugzilla::DB::Mysql') ) {
}
}
# 2005-03-10 travis@sedsystems.ca -- Bug 199048
add_setting
(
"comment_sort_order"
,
{
"oldest_to_newest"
=>
1
,
"newest_to_oldest"
=>
2
,
"newest_to_oldest_desc_first"
=>
3
},
"oldest_to_newest"
);
# 2005-04-07 - alt@sonic.net, bug 289455
# make classification_id field type be consistent with DB:Schema
$dbh
->
bz_alter_column
(
'products'
,
'classification_id'
,
...
...
@@ -4011,6 +4002,19 @@ if (!GroupDoesExist('bz_canusewhines')) {
}
###########################################################################
# Create --SETTINGS-- users can adjust
###########################################################################
# 2005-03-03 travis@sedsystems.ca -- Bug 41972
add_setting
(
"display_quips"
,
{
"on"
=>
1
,
"off"
=>
2
},
"on"
);
# 2005-03-10 travis@sedsystems.ca -- Bug 199048
add_setting
(
"comment_sort_order"
,
{
"oldest_to_newest"
=>
1
,
"newest_to_oldest"
=>
2
,
"newest_to_oldest_desc_first"
=>
3
},
"oldest_to_newest"
);
###########################################################################
# Create Administrator --ADMIN--
###########################################################################
...
...
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