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
fa2c1163
Commit
fa2c1163
authored
Oct 16, 2003
by
timeless%mozdev.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 108528 - knob is not defined doesn't explain to 2001110503 users what to do
patch by caduvall@glue.umd.edu r=timeless a=justdave
parent
c07813cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
CGI.pl
CGI.pl
+2
-1
process_bug.cgi
process_bug.cgi
+1
-1
code-error.html.tmpl
template/en/default/global/code-error.html.tmpl
+6
-1
No files found.
CGI.pl
View file @
fa2c1163
...
...
@@ -111,10 +111,11 @@ sub CheckFormField (\%$;\@) {
sub
CheckFormFieldDefined
(\%$) {
my
(
$formRef
,
# a reference to the form to check (a hash)
$fieldname
,
# the fieldname to check
$info
,
# (optional) error message to give
)
=
@_
;
if
(
!
defined
$formRef
->
{
$fieldname
})
{
ThrowCodeError
(
"undefined_field"
,
{
field
=>
$fieldname
});
ThrowCodeError
(
"undefined_field"
,
{
field
=>
$fieldname
,
info
=>
$info
});
}
}
...
...
process_bug.cgi
View file @
fa2c1163
...
...
@@ -858,7 +858,7 @@ if (defined $::FORM{newcc} || defined $::FORM{removecc} || defined $::FORM{massc
}
CheckFormFieldDefined
(
\%::
FORM
,
'knob'
);
CheckFormFieldDefined
(
\%::
FORM
,
'knob'
,
"check that \"Leave as...\" was selected."
);
SWITCH:
for
(
$::FORM
{
'knob'
})
{
/^none$/
&&
do
{
last
SWITCH
;
...
...
template/en/default/global/code-error.html.tmpl
View file @
fa2c1163
...
...
@@ -208,7 +208,12 @@
I was unable to retrieve your old password from the database.
[% ELSIF error == "undefined_field" %]
[% field FILTER html %] was not defined; [% Param('browserbugmessage') %]
[% field FILTER html %] was not defined;
[% IF info %]
[% info FILTER html %]
[% ELSE %]
[% Param('browserbugmessage') %]
[% END %]
[% ELSIF error == "unknown_action" %]
[% IF action %]
...
...
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