summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorterry%netscape.com <>1999-01-28 06:17:06 +0100
committerterry%netscape.com <>1999-01-28 06:17:06 +0100
commit903f703c12a4f310658ef0abeed6cd9f9e1fc97f (patch)
tree6515cd54357f378680bc193f60e3e9d9a1ea32a7 /globals.pl
parenta7ac06a61d2e7b17c62cb31c7c09a60c34d0ab68 (diff)
downloadbugzilla-903f703c12a4f310658ef0abeed6cd9f9e1fc97f.tar.gz
bugzilla-903f703c12a4f310658ef0abeed6cd9f9e1fc97f.tar.xz
Added three new fields (which appear in the UI only if params are
turned on): target_milestone, qa_contact, and status_whiteboard.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index 3c8bf252a..b924831b8 100644
--- a/globals.pl
+++ b/globals.pl
@@ -25,6 +25,7 @@ use strict;
use Mysql;
use Date::Format; # For time2str().
+# use Carp; # for confess
# Contains the version string for the current running Bugzilla.
$::param{'version'} = '2.1';
@@ -286,6 +287,14 @@ sub GenerateVersionTable {
}
print FID GenerateCode('%::proddesc');
+ if (Param("usetargetmilestone")) {
+ my $last = Param("nummilestones");
+ my $i;
+ for ($i=1 ; $i<=$last ; $i++) {
+ push(@::legal_target_milestone, "M$i");
+ }
+ print FID GenerateCode('@::legal_target_milestone');
+ }
print FID "1;\n";
close FID;
rename $tmpname, "data/versioncache" || die "Can't rename $tmpname to versioncache";
@@ -452,6 +461,9 @@ sub SplitEnumType {
sub SqlQuote {
my ($str) = (@_);
+# if (!defined $str) {
+# confess("Undefined passed to SqlQuote");
+# }
$str =~ s/([\\\'])/\\$1/g;
$str =~ s/\0/\\0/g;
return "'$str'";