Pull view_testopia setting into a hook

git-svn-id: svn://10.0.0.236/trunk@255721 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ghendricks%novell.com
2009-01-06 00:06:18 +00:00
parent 8361ff72b6
commit 127ed9fc1e
2 changed files with 28 additions and 16 deletions

View File

@@ -0,0 +1,28 @@
#!/usr/bin/perl -w
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Bugzilla Testopia System.
#
# The Initial Developer of the Original Code is Greg Hendricks.
# Portions created by Greg Hendricks are Copyright (C) 2009
# Novell. All Rights Reserved.
#
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib '.';
use Bugzilla;
use Bugzilla::User::Setting;
add_setting('view_testopia', ['on', 'off'], 'on');

View File

@@ -115,22 +115,6 @@ diff -u -r1.23.2.1 Error.pm
}
exit;
}
Index: Bugzilla/Install.pm
===================================================================
RCS file: /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install.pm,v
retrieving revision 1.17
diff -u -r1.17 Install.pm
--- Bugzilla/Install.pm 28 Nov 2007 16:35:57 -0000 1.17
+++ Bugzilla/Install.pm 18 Dec 2008 22:33:01 -0000
@@ -60,6 +60,8 @@
# 2006-12-10 LpSolit@gmail.com -- Bug 297186
lang => { subclass => 'Lang',
default => ${Bugzilla->languages}[0] },
+ view_testopia => { options => ['on', 'off'],
+ default => 'on' },
# 2007-07-02 altlist@gmail.com -- Bug 225731
quote_replies => { options => ['quoted_reply', 'simple_reply', 'off'],
default => "quoted_reply" }
Index: Bugzilla/User.pm
===================================================================
RCS file: /cvsroot/mozilla/webtools/bugzilla/Bugzilla/User.pm,v