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
1e400dc0
Commit
1e400dc0
authored
Nov 22, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 180966 - warnings in webserver error log (take 2)
r=joel, a=justdave
parent
9973264f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
22 deletions
+26
-22
User.pm
Bugzilla/User.pm
+1
-1
process_bug.cgi
process_bug.cgi
+24
-20
showdependencytree.cgi
showdependencytree.cgi
+1
-1
No files found.
Bugzilla/User.pm
View file @
1e400dc0
...
...
@@ -267,7 +267,7 @@ sub match_field {
next
if
!
defined
(
$vars
->
{
'mform'
}
->
{
$field
});
# Skip it if this is a --do_not_change-- field
next
if
$dontchange
eq
$vars
->
{
'form'
}
->
{
$field
};
next
if
$dontchange
&&
$dontchange
eq
$vars
->
{
'form'
}
->
{
$field
};
# We need to move the query to $raw_field, where it will be split up,
# modified by the search, and put back into $::FORM and $::MFORM
...
...
process_bug.cgi
View file @
1e400dc0
...
...
@@ -109,6 +109,8 @@ if (defined $::FORM{'dup_id'} && $::FORM{'knob'} eq "duplicate") {
ValidateComment
(
$::FORM
{
'comment'
});
$::FORM
{
'dontchange'
}
=
''
unless
exists
$::FORM
{
'dontchange'
};
# If the bug(s) being modified have dependencies, validate them
# and rebuild the list with the validated values. This is important
# because there are situations where validation changes the value
...
...
@@ -730,20 +732,21 @@ if (defined $::FORM{'qa_contact'}) {
}
# jeff.hedlund@matrixsi.com time tracking data processing:
foreach
my
$field
(
"estimated_time"
,
"remaining_time"
)
{
if
(
defined
$::FORM
{
$field
})
{
my
$er_time
=
trim
(
$::FORM
{
$field
});
if
(
$er_time
ne
$::FORM
{
'dontchange'
})
{
if
(
$er_time
>
99999.99
)
{
ThrowUserError
(
"value_out_of_range"
,
{
field
=>
$field
});
}
if
(
$er_time
=~
/^(?:\d+(?:\.\d*)?|\.\d+)$/
)
{
DoComma
();
$::query
.=
"$field = "
.
SqlQuote
(
$er_time
);
}
else
{
$vars
->
{
'field'
}
=
$field
;
ThrowUserError
(
"need_positive_number"
);
if
(
UserInGroup
(
Param
(
'timetrackinggroup'
)))
{
foreach
my
$field
(
"estimated_time"
,
"remaining_time"
)
{
if
(
defined
$::FORM
{
$field
})
{
my
$er_time
=
trim
(
$::FORM
{
$field
});
if
(
$er_time
ne
$::FORM
{
'dontchange'
})
{
if
(
$er_time
>
99999.99
)
{
ThrowUserError
(
"value_out_of_range"
,
{
field
=>
$field
});
}
if
(
$er_time
=~
/^(?:\d+(?:\.\d*)?|\.\d+)$/
)
{
DoComma
();
$::query
.=
"$field = "
.
SqlQuote
(
$er_time
);
}
else
{
$vars
->
{
'field'
}
=
$field
;
ThrowUserError
(
"need_positive_number"
);
}
}
}
}
...
...
@@ -1202,18 +1205,19 @@ foreach my $id (@idlist) {
SendSQL
(
"select now()"
);
$timestamp
=
FetchOneColumn
();
if
(
$::FORM
{
'work_time'
}
>
99999.99
)
{
delete
$::FORM
{
'work_time'
}
unless
UserInGroup
(
Param
(
'timetrackinggroup'
));
if
(
$::FORM
{
'work_time'
}
&&
$::FORM
{
'work_time'
}
>
99999.99
)
{
ThrowUserError
(
"value_out_of_range"
,
{
field
=>
'work_time'
});
}
if
(
defined
$::FORM
{
'comment'
}
||
defined
$::FORM
{
'work_time'
})
{
if
(
$::FORM
{
'work_time'
}
!=
0
&&
if
(
$::FORM
{
'comment'
}
||
$::FORM
{
'work_time'
})
{
if
(
$::FORM
{
'work_time'
}
&&
(
!
defined
$::FORM
{
'comment'
}
||
$::FORM
{
'comment'
}
=~
/^\s*$/
))
{
ThrowUserError
(
'comment_required'
);
}
else
{
AppendComment
(
$id
,
$::COOKIE
{
'Bugzilla_login'
},
$::FORM
{
'comment'
},
$::FORM
{
'commentprivacy'
},
$timestamp
,
$::FORM
{
'work_time'
});
if
(
$::FORM
{
'work_time'
}
!=
0
)
{
$::FORM
{
'commentprivacy'
},
$timestamp
,
$::FORM
{
'work_time'
});
if
(
$::FORM
{
'work_time'
})
{
LogActivityEntry
(
$id
,
"work_time"
,
""
,
$::FORM
{
'work_time'
},
$whoid
,
$timestamp
);
$bug_changed
=
1
;
...
...
showdependencytree.cgi
View file @
1e400dc0
...
...
@@ -164,7 +164,7 @@ sub GetBug {
$bug
->
{
'assignee_email'
})
=
FetchSQLData
();
}
$bug
->
{
'open'
}
=
IsOpenedState
(
$bug
->
{
'status'
});
$bug
->
{
'open'
}
=
$bug
->
{
'exists'
}
&&
IsOpenedState
(
$bug
->
{
'status'
});
$bug
->
{
'dependencies'
}
=
[]
;
return
$bug
;
...
...
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