summaryrefslogtreecommitdiffstats
path: root/editvalues.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2005-08-09 20:23:38 +0200
committerbugreport%peshkin.net <>2005-08-09 20:23:38 +0200
commit6a41ecbaec4ec4e4ed9e3b2005a7f447383b85a0 (patch)
treee8d106b301f6ffe06cbec9e521e040e721e2da83 /editvalues.cgi
parent42a0e99d5c916b4123719d7a362e12e65e15fc2f (diff)
downloadbugzilla-6a41ecbaec4ec4e4ed9e3b2005a7f447383b85a0.tar.gz
bugzilla-6a41ecbaec4ec4e4ed9e3b2005a7f447383b85a0.tar.xz
Backout of bug 303669 which broke AppendComment and possibly a number
of other items.
Diffstat (limited to 'editvalues.cgi')
-rwxr-xr-xeditvalues.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/editvalues.cgi b/editvalues.cgi
index 897498db3..cd73daeab 100755
--- a/editvalues.cgi
+++ b/editvalues.cgi
@@ -39,14 +39,14 @@ our @valid_fields = ('op_sys', 'rep_platform', 'priority', 'bug_severity',);
######################################################################
# Returns whether or not the specified table exists in the @tables array.
-sub FieldExists {
+sub FieldExists ($) {
my ($field) = @_;
return lsearch(\@valid_fields, $field) >= 0;
}
# Same as FieldExists, but emits and error and dies if it fails.
-sub FieldMustExist {
+sub FieldMustExist ($) {
my ($field)= @_;
$field ||
@@ -58,7 +58,7 @@ sub FieldMustExist {
}
# Returns if the specified value exists for the field specified.
-sub ValueExists {
+sub ValueExists ($$) {
my ($field, $value) = @_;
FieldMustExist($field);
trick_taint($field);
@@ -75,7 +75,7 @@ sub ValueExists {
}
# Same check as ValueExists, emits an error text and dies if it fails.
-sub ValueMustExist {
+sub ValueMustExist ($$) {
my ($field, $value)= @_;
# Values may not be empty (it's very difficult to deal