diff options
author | terry%netscape.com <> | 1999-01-28 05:17:06 +0000 |
---|---|---|
committer | terry%netscape.com <> | 1999-01-28 05:17:06 +0000 |
commit | 903f703c12a4f310658ef0abeed6cd9f9e1fc97f (patch) | |
tree | 6515cd54357f378680bc193f60e3e9d9a1ea32a7 /globals.pl | |
parent | a7ac06a61d2e7b17c62cb31c7c09a60c34d0ab68 (diff) | |
download | bugs-903f703c12a4f310658ef0abeed6cd9f9e1fc97f.tar bugs-903f703c12a4f310658ef0abeed6cd9f9e1fc97f.tar.gz bugs-903f703c12a4f310658ef0abeed6cd9f9e1fc97f.tar.bz2 bugs-903f703c12a4f310658ef0abeed6cd9f9e1fc97f.tar.xz bugs-903f703c12a4f310658ef0abeed6cd9f9e1fc97f.zip |
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.pl | 12 |
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'"; |