haikuwebkit/Websites/bugs.webkit.org/editvalues.cgi

192 lines
5.2 KiB
Plaintext
Raw Permalink Normal View History

#!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict;
use warnings;
use lib qw(. lib);
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Constants;
use Bugzilla::Token;
use Bugzilla::Field;
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
use Bugzilla::Field::Choice;
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
###############
# Subroutines #
###############
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
sub display_field_values {
my $vars = shift;
my $template = Bugzilla->template;
$vars->{'values'} = $vars->{'field'}->legal_values;
$template->process("admin/fieldvalues/list.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
exit;
}
######################################################################
# Main Body Execution
######################################################################
# require the user to have logged in
my $user = Bugzilla->login(LOGIN_REQUIRED);
my $dbh = Bugzilla->dbh;
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
my $vars = {};
# Replace this entry by separate entries in templates when
# the documentation about legal values becomes bigger.
$vars->{'doc_section'} = 'administering/field-values.html';
print $cgi->header();
$user->in_group('admin')
|| ThrowUserError('auth_failure', {group => "admin",
action => "edit",
object => "field_values"});
#
# often-used variables
#
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
my $action = trim($cgi->param('action') || '');
my $token = $cgi->param('token');
#
# field = '' -> Show nice list of fields
#
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
if (!$cgi->param('field')) {
my @field_list =
@{ Bugzilla->fields({ is_select => 1, is_abnormal => 0 }) };
$vars->{'fields'} = \@field_list;
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
$template->process("admin/fieldvalues/select-field.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
exit;
}
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
# At this point, the field must be defined.
my $field = Bugzilla::Field->check($cgi->param('field'));
if (!$field->is_select || $field->is_abnormal) {
ThrowUserError('fieldname_invalid', { field => $field });
}
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
$vars->{'field'} = $field;
#
# action='' -> Show nice list of values.
#
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
display_field_values($vars) unless $action;
#
# action='add' -> show form for adding new field value.
# (next action will be 'new')
#
if ($action eq 'add') {
$vars->{'token'} = issue_session_token('add_field_value');
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
$template->process("admin/fieldvalues/create.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
exit;
}
#
# action='new' -> add field value entered in the 'action=add' screen
#
if ($action eq 'new') {
check_token_data($token, 'add_field_value');
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
my $created_value = Bugzilla::Field::Choice->type($field)->create({
value => scalar $cgi->param('value'),
sortkey => scalar $cgi->param('sortkey'),
is_open => scalar $cgi->param('is_open'),
visibility_value_id => scalar $cgi->param('visibility_value_id'),
});
delete_token($token);
$vars->{'message'} = 'field_value_created';
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
$vars->{'value'} = $created_value;
display_field_values($vars);
}
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
# After this, we always have a value
my $value = Bugzilla::Field::Choice->type($field)->check($cgi->param('value'));
$vars->{'value'} = $value;
#
# action='del' -> ask if user really wants to delete
# (next action would be 'delete')
#
if ($action eq 'del') {
# If the value cannot be deleted, throw an error.
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
if ($value->is_static) {
ThrowUserError('fieldvalue_not_deletable', $vars);
}
$vars->{'token'} = issue_session_token('delete_field_value');
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
$template->process("admin/fieldvalues/confirm-delete.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
exit;
}
#
# action='delete' -> really delete the field value
#
if ($action eq 'delete') {
check_token_data($token, 'delete_field_value');
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
$value->remove_from_db();
delete_token($token);
$vars->{'message'} = 'field_value_deleted';
$vars->{'no_edit_link'} = 1;
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
display_field_values($vars);
}
#
# action='edit' -> present the edit-value form
# (next action would be 'update')
#
if ($action eq 'edit') {
$vars->{'token'} = issue_session_token('edit_field_value');
$template->process("admin/fieldvalues/edit.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
exit;
}
#
# action='update' -> update the field value
#
if ($action eq 'update') {
check_token_data($token, 'edit_field_value');
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
$vars->{'value_old'} = $value->name;
my %params = (
name => scalar $cgi->param('value_new'),
sortkey => scalar $cgi->param('sortkey'),
visibility_value => scalar $cgi->param('visibility_value_id'),
);
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
if ($cgi->should_set('is_active')) {
$params{is_active} = $cgi->param('is_active');
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
}
$value->set_all(\%params);
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
$vars->{'changes'} = $value->update();
delete_token($token);
$vars->{'message'} = 'field_value_updated';
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
display_field_values($vars);
}
# No valid action found
Upgrade bugs.webkit.org to Bugzilla 4.2 <http://webkit.org/b/55882> Upgrade to Bugzilla 4.2.1. Conflicts: .htaccess Bugzilla.pm Bugzilla/Auth.pm Bugzilla/Auth/Login/CGI.pm Bugzilla/Auth/Persist/Cookie.pm Bugzilla/Bug.pm Bugzilla/BugMail.pm Bugzilla/CGI.pm Bugzilla/Config/Attachment.pm Bugzilla/Config/Common.pm Bugzilla/Config/General.pm Bugzilla/Constants.pm Bugzilla/DB/Mysql.pm Bugzilla/DB/Oracle.pm Bugzilla/DB/Schema.pm Bugzilla/DB/Schema/Oracle.pm Bugzilla/Error.pm Bugzilla/Flag.pm Bugzilla/FlagType.pm Bugzilla/Hook.pm Bugzilla/Install/DB.pm Bugzilla/Install/Filesystem.pm Bugzilla/Install/Localconfig.pm Bugzilla/Install/Requirements.pm Bugzilla/Install/Util.pm Bugzilla/Mailer.pm Bugzilla/Product.pm Bugzilla/Search.pm Bugzilla/Search/Quicksearch.pm Bugzilla/Search/Saved.pm Bugzilla/Series.pm Bugzilla/Template.pm Bugzilla/Template/Plugin/Hook.pm Bugzilla/Token.pm Bugzilla/User.pm Bugzilla/Util.pm Bugzilla/WebService.pm Bugzilla/WebService/Bug.pm Bugzilla/WebService/Bugzilla.pm Bugzilla/WebService/Constants.pm Bugzilla/WebService/Product.pm Bugzilla/WebService/User.pm attachment.cgi buglist.cgi checksetup.pl colchange.cgi collectstats.pl contrib/bugzilla_ldapsync.rb contrib/bzdbcopy.pl contrib/gnats2bz.pl contrib/recode.pl contrib/sendbugmail.pl contrib/yp_nomail.sh docs/en/xml/Bugzilla-Guide.xml docs/en/xml/about.xml docs/en/xml/installation.xml docs/en/xml/security.xml docs/en/xml/troubleshooting.xml editflagtypes.cgi editparams.cgi editproducts.cgi editvalues.cgi editwhines.cgi email_in.pl enter_bug.cgi extensions/BmpConvert/Config.pm extensions/OldBugMove/template/en/default/admin/params/oldbugmove.html.tmpl extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl extensions/example/code/webservice-error_codes.pl extensions/example/version.pl images/favicon.ico importxml.pl index.cgi install-module.pl js/field.js js/util.js long_list.cgi mod_perl.pl post_bug.cgi process_bug.cgi quips.cgi sanitycheck.cgi show_bug.cgi showattachment.cgi sidebar.cgi skins/contrib/Dusk/global.css skins/contrib/Dusk/index.css skins/standard/global.css skins/standard/show_bug.css t/008filter.t template/en/custom/attachment/review.html.tmpl template/en/default/account/prefs/saved-searches.html.tmpl template/en/default/admin/classifications/delete.html.tmpl template/en/default/admin/classifications/edit-common.html.tmpl template/en/default/admin/classifications/footer.html.tmpl template/en/default/admin/components/create.html.tmpl template/en/default/admin/components/edit.html.tmpl template/en/default/admin/params/attachment.html.tmpl template/en/default/admin/sanitycheck/messages.html.tmpl template/en/default/admin/users/confirm-delete.html.tmpl template/en/default/admin/workflow/edit.html.tmpl template/en/default/attachment/created.html.tmpl template/en/default/attachment/diff-header.html.tmpl template/en/default/attachment/edit.html.tmpl template/en/default/attachment/list.html.tmpl template/en/default/attachment/updated.html.tmpl template/en/default/bug/comments.html.tmpl template/en/default/bug/create/create-guided.html.tmpl template/en/default/bug/create/create.html.tmpl template/en/default/bug/create/created.html.tmpl template/en/default/bug/edit.html.tmpl template/en/default/bug/field.html.tmpl template/en/default/bug/process/header.html.tmpl template/en/default/bug/show.html.tmpl template/en/default/bug/show.xml.tmpl template/en/default/config.rdf.tmpl template/en/default/email/whine.txt.tmpl template/en/default/filterexceptions.pl template/en/default/flag/list.html.tmpl template/en/default/global/common-links.html.tmpl template/en/default/global/confirm-action.html.tmpl template/en/default/global/field-descs.none.tmpl template/en/default/global/footer.html.tmpl template/en/default/global/header.html.tmpl template/en/default/global/user-error.html.tmpl template/en/default/global/userselect.html.tmpl template/en/default/list/edit-multiple.html.tmpl template/en/default/list/list.html.tmpl template/en/default/pages/fields.html.tmpl template/en/default/pages/release-notes.html.tmpl template/en/default/search/boolean-charts.html.tmpl template/en/default/search/form.html.tmpl template/en/default/search/search-report-graph.html.tmpl template/en/default/search/search-report-table.html.tmpl template/en/default/setup/strings.txt.pl token.cgi userprefs.cgi xml.cgi xmlrpc.cgi Canonical link: https://commits.webkit.org/155623@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-16 16:00:58 +00:00
ThrowUserError('unknown_action', {action => $action});