diff options
author | lpsolit%gmail.com <> | 2007-10-09 15:34:41 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-10-09 15:34:41 +0000 |
commit | 1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3 (patch) | |
tree | fa2b295246b059f0a3524c74972566c14b59ce1f /Bugzilla/Bug.pm | |
parent | 73553366455cb23a6df1847d67bde74386c87742 (diff) | |
download | bugs-1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3.tar bugs-1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3.tar.gz bugs-1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3.tar.bz2 bugs-1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3.tar.xz bugs-1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3.zip |
Bug 387672: Move BUG_STATE_OPEN and is_open_state() into Status.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-x | Bugzilla/Bug.pm | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index e1b4a6e55..c394ea8a8 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -53,7 +53,6 @@ use base qw(Bugzilla::Object Exporter); bug_alias_to_id ValidateBugID RemoveVotes CheckIfVotedConfirmed LogActivityEntry - BUG_STATE_OPEN is_open_state editable_bug_fields SPECIAL_STATUS_WORKFLOW_ACTIONS ); @@ -223,12 +222,6 @@ use constant SPECIAL_STATUS_WORKFLOW_ACTIONS => qw( clearresolution ); -sub BUG_STATE_OPEN { - # XXX - We should cache this list. - my $dbh = Bugzilla->dbh; - return @{$dbh->selectcol_arrayref('SELECT value FROM bug_status WHERE is_open = 1')}; -} - ##################################################################### sub new { @@ -2428,12 +2421,6 @@ sub EmitDependList { return $list_ref; } -# Tells you whether or not the argument is a valid "open" state. -sub is_open_state { - my ($state) = @_; - return (grep($_ eq $state, BUG_STATE_OPEN) ? 1 : 0); -} - sub ValidateTime { my ($time, $field) = @_; |